Parrot更换更新源

更换Parrot的默认更新源

首先要注意Parrot官方软件库的默认更新源文件不在

/etc/apt/sources.list 

而是

/etc/apt/sources.list.d/parrot.list

打开系统/etc/apt/目录下名为sources.list.parrot的文件
会看到如下说明


# This file is empty, feel free to
# add here your custom APT repositories
# The standard Parrot repositories
# are NOT here. If you want to
# edit them, take a look into
#                /etc/apt/sources.list.d/parrot.list
# If you want to change the
# default parrot repositories by selectng
# another localized mirror,
# then use the command
#                     parrot-mirror-selector
#
# and see its usage message to
# know what mirrors are available
etc/apt/sources.list 

可被用来添加用户自己需要的apt源

注意

3.7版本去掉了parrot-mirror-selector这个工具,而是通过服务器根据ip自动重定向到最近的更新源,直接使用

apt update

即可

如果有必要,请参考
镜像列表选择离你最近的更新源手动添加到/etc/apt/souces.list.d/parrot.list并注释掉原文件中的内容。

(例)修改更新源:

sudo vim /etc/apt/sources.list.d/parrot.list

注释原有内容,添加

deb http://mirrors.tuna.tsinghua.edu.cn/parrot/ parrot main contrib non-free

适用于3.6及以下版本

使用

parrot-mirror-selector

更改默认的更新源

终端输入

parrot-mirror-selector

会列出所有可用更新源

Parrot Mirror Selector - set up the APT mirror you desire
MIRRORS
         ID    -     region      -    country      -    speed   -   provider
          1    - North America   -  Massachussetts -   1 Gbps   -  SIPB MIT
          2    - North America   -   California    -   1 Gbps   -  Berkeley
          3    - North America   -    Virginia     -   1 Gbps   -  JMU
          4    - North America   -    New York     -   1 Gbps   -  Clarkson
          5    - North America   -     Canada      - 250 Mbps   -  Parrot Project
          6    - South America   -     Ecuador     - 100 Mbps   -  CEDIA
          7    - South America   -     Ecuador     - 100 Mbps   -  UTA
          8    - South America   -     Ecuador     - 100 Mbps   -  UEB
          9    -    Europe       -    Germany      -  20 Gbps   -  Halifax RWTH-Aachen
          10   -    Europe       -     Italy       -  10 Gbps   -  GARR Consortium
          11   -    Europe       -    Germany      -  10 Gbps   -  Esslingen University
          12   -    Europe       -   Netherlands   -  10 Gbps   -  Nluug
          13   -    Europe       -   Netherlands   -  10 Gbps   -  Babylon.network
          14   -    Europe       -     Sweden      -  10 Gbps   -  Umea University (ACC UMU)
          15   -    Europe       -    Ireland      -  10 Gbps   -  Heanet
          16   -    Europe       -     Poland      -  10 Gbps   -  Onet
          17   -    Europe       -     France      -  10 Gbps   -  Babylon.network
          18   -    Europe       - United Kingdom  -   1 Gbps   -  Warwick University
          19   -    Europe       -     Greece      -   1 Gbps   -  University of Crete
          20   -    Europe       -    Germany      -   1 Gbps   -  Dasaweb eu2
          21   -    Europe       -     France      - 250 Mbps   -  Dasaweb eu1
          22   -    Europe       -     France      - 250 Mbps   -  Parrot Project
          23   -     Asia        -    Taiwan       -  10 Gbps   -  NCHC
          24   -     Asia        -   Singapore     -  10 Gbps   -  0x
          25   -     Asia        -     China       -   2 Gbps   -  TUNA Tsinghua
          26   -     Asia        -     China       -   1 Gbps   -  USTC
          27   -     Asia        -    Russia       -   1 Gbps   -  Yandex
          28   -     Asia        -   Bangladesh    -   1 Gbps   -  Amberit (Dhakacom)
          29   -   Oceania       -  New Caledonia  -   1 Gbps   -  Lagoon
          30   -  Middle East    -     Iran        -   1 Gbps   -  ASIS
          0    -     Global Distributed CDN        - edge cache - Cloudflare
BRANCHES
	current supported branches are
		parrot   - our stable archive
                stable   - same as parrot
		testing  - our development tree
AREAS
	current supported parameters are
		free     - includes only the main area
		nonfree  - includes main contrib non-free
USAGE
 	 parrot-mirror-selector <ID> [branch] [archive area]
EXAMPLE
 	 parrot-mirror-selector 0 stable free
  • 对于普通用户

最简单的方法:根据自己所在地区选择源,如选择清华源,在命令后加上对应的id参数回车即可
parrot-mirror-selector 25

  • 对于高级用户

如果你确实有特殊需要,那么你一定也能看懂参数的说明

之后查看/etc/apt/sources.list.d 已经被更改

# parrot repository
# this file was automatically generated by parrot-mirror-selector
deb https://mirrors.tuna.tsinghua.edu.cn/parrot/ parrot main contrib non-free
#deb-src https://mirrors.tuna.tsinghua.edu.cn/parrot/ parrot main contrib non-free
2 个赞

我一直用的是parrot.list :joy::joy::joy:
一个官方,一个中国,一个清华的,

加一个源就够了。。。。

官方的源国内更新龟速,3.7版本
置顶贴最好提供个中国源地址和源更新方法。
Linux主要是解决源的问题,源不解决的版本没有用的。

置顶帖Parrot系统常用初始配置已经修改

在更改/etc/ssh/sshd_config的PerminRootLogin yes外,还需要将其前面的#去除,最新版本此文件配置前默认加了#,此外将PasswordAuthentication yes前的#也去除,再执行service ssh restart才能顺利连接xshell

1 个赞

deb https://mirrors.tuna.tsinghua.edu.cn/parrot/ parrot main contrib non-free
改为
deb https://mirrors.tuna.tsinghua.edu.cn/parrot/ rolling main contrib non-free

2 个赞

rolling是滚动更新的源,还有一个 rolling-security 的源

2 个赞

多谢了我一直换不了谢谢你


服务器资源由ZeptoVM赞助

Partners Wiki Discord