在文件头部添加 deb mirror://mirrors.ubuntu.com/mirrors.txt xenial main restricted universe multiverse deb mirror://mirrors.ubuntu.com/mirrors.txt xenial-updates main restricted universe multiverse deb mirror://mirrors.ubuntu.com/mirrors.txt xenial-backports main restricted universe multiverse deb mirror://mirrors.ubuntu.com/mirrors.txt xenial-security main restricted universe multiverse
Python:测试了一下豆瓣 pip 镜像站点速度比较快。
1 2 3 4 5 6
$ sudo mkdir /root/.pip/ $ sudo vim /root/.pip/pip.conf