(1) Use pip install to install Python related library, foreign source slower, modified to domestic source (watercress source)
Edit the configuration file, if not, create a new copy:
VI ~/.pip/pip.conf
Add content as follows:
[Global]
Index-url = http://pypi.douban.com/simple
trusted-host = pypi.douban.com
(2) Modify Apt-get Source (reference: Apt-get switch domestic source)
Enter the following command:
sudo cp/etc/apt/sources.list/etc/apt/sources.list.backup
sudo vi/etc/apt/sources.list
Then change the source address in the file to the address of the domestic source. (Source list-Ubuntu Chinese)
Trusty (14.04) version address list:
Deb Http://mirrors.aliyun.com/ubuntu/trusty main restricted universe Multiverse
Deb http://mirrors.aliyun.com/ Ubuntu/trusty-security main restricted universe Multiverse
Deb Http://mirrors.aliyun.com/ubuntu/trusty-updates Main restricted universe Multiverse
Deb http://mirrors.aliyun.com/ubuntu/trusty-proposed main restricted universe Multiverse
Deb Http://mirrors.aliyun.com/ubuntu/trusty-backports main restricted universe multiverse
DEB-SRC http://mirrors.aliyun.com/ubuntu/trusty main restricted universe multiverse deb-src
Mirrors.aliyun.com/ubuntu/trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com /ubuntu/trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/trusty-backports Main Restricted Universe Multiverse
You can then enter the following command to test the update download speed
sudo apt-get update