1.备份源文件;

root@localhost:~# cd /etc/apt/root@localhost:/etc/apt# lsapt.conf.d     sources.list   sources.list.20140731bk  trustdb.gpg trusted.gpg.dpreferences.d  sources.list~ sources.list.d          trusted.gpgroot@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 multiversedeb http://mirrors.163.com/ubuntu/saucy-security main restricted universe multiversedeb http://mirrors.163.com/ubuntu/saucy-updates main restricted universe multiversedeb http://mirrors.163.com/ubuntu/saucy-proposed main restricted universe multiversedeb http://mirrors.163.com/ubuntu/saucy-backports main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/saucy main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/saucy-security main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/saucy-updates main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/saucy-proposed main restricted universe multiversedeb-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