1.在终端执行以下命令:
sudo
cp /etc/apt/sources.list
/etc/apt/sources.list_backup
(备份现有服务器列表)
sudo gedit
/etc/apt/sources.list
(使用Gedit编辑更新源文件)
2.复制以下网易163更新服务器,覆盖sources.list里的所有内容:
deb
jaunty main restricted universe
multiverse
deb
jaunty-security main restricted
universe multiverse
deb
jaunty-updates main restricted
universe multiverse
deb
jaunty-proposed main restricted
universe multiverse
deb
jaunty-backports main restricted
universe multiverse
deb-src
jaunty main restricted universe
multiverse
deb-src
jaunty-security main restricted
universe multiverse
deb-src
jaunty-updates main restricted
universe multiverse
deb-src
jaunty-proposed main restricted
universe multiverse
deb-src
jaunty-backports main restricted
universe multiverse
保存!
3.更新源列表:
sudo apt-get update
附:
1.sudo apt-get dist-upgrade #更新软件,如果对新版本软件的需求不是那么迫切,可以不执行;
2.教育网源(中国科学技术大学):
deb hardy main restricted universe multiverse
deb hardy-backports restricted universe multiverse
deb hardy-proposed main restricted universe multiverse
deb hardy-security main restricted universe multiverse
deb hardy-updates main restricted universe multiverse
deb-src hardy main restricted universe multiverse
deb-src hardy-backports main restricted universe multiverse
deb-src hardy-proposed main restricted universe multiverse
deb-src hardy-security main restricted universe multiverse
deb-src hardy-updates main restricted universe multiverse
阅读(2307) | 评论(0) | 转发(0) |