更换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
 
      
    