ubuntu 16.0.4.1
-
apt-get
filepath:/etc/apt/source.list
先备份后,将source.list
中的内容删除,添加镜像:网易镜像( 会出现一部分hash值不匹配,未解决,但是不影响软件安装)
添加内核:在添加源的时候需要看内核的名称:使用lsb_release -a
再根据内核名称添加源。下面的内核名为wily而我电脑的内核名为xenial因此会出现hash不匹配
deb http://mirrors.163.com/ubuntu/ wily main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ wily-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ wily-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ wily-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ wily-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ wily main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ wily-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ wily-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ wily-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ wily-backports main restricted universe multiverse
- python pip source
filepath=~/.pip/pip.config
添加豆瓣镜像
[global]
index-url = http://pypi.douban.com/simple
网友评论