Source

apt source

Source:USTC

sudo vim /etc/apt/source.list

or use the command:

sudo sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list

For Kali Linux:

deb https://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
deb-src https://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib

For more information USTC Open Source

Finally:

sudo apt-get update

pip source

pip install pythonModuleName -i https://pypi.douban.com/simple

gem source

gem source:

$ gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/
$ gem sources -l
*** CURRENT SOURCES ***

https://gems.ruby-china.org
# 请确保只有 gems.ruby-china.org
Last Updated: 4/28/2019, 9:57:40 AM