1.备份源文件;
root@localhost:~# cd /etc/apt/ root@localhost:/etc/apt# ls apt.conf.d sources.list sources.list.20140731bk trustdb.gpg trusted.gpg.d preferences.d sources.list~ sources.list.d trusted.gpg root@localhost:/etc/apt# mv sources.listsources.list.20140731bk
2.创建并编辑源文件;
root@localhost:/etc/apt# vim sources.list 在文件内插入以下内容: deb http://mirrors.163.com/ubuntu/ saucymain restricted universe multiverse deb http://mirrors.163.com/ubuntu/saucy-security main restricted universe multiverse deb http://mirrors.163.com/ubuntu/saucy-updates main restricted universe multiverse deb http://mirrors.163.com/ubuntu/saucy-proposed main restricted universe multiverse deb http://mirrors.163.com/ubuntu/saucy-backports main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/saucy main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/saucy-security main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/saucy-updates main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/saucy-proposed main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/saucy-backports main restricted universe multiverse
#以上为163源,如需要更多源地址请转到http://chenrongya.blog.163.com/blog/static/87474196201392593446898/
3.更新源文件;
root@localhost:/etc/apt# apt-get update
本文出自 “jerry在路上” 博客,请务必保留此出处http://jerry0117.blog.51cto.com/1664014/1533383
原文地址:http://jerry0117.blog.51cto.com/1664014/1533383