Think before you speak, read before you think.

ubuntu 官方源 | sources.list

这里只记录官方源,就是以 .ubuntu.com 形式的源,其他源就不用了,还是官方的靠谱

2012年3月追加11.10官方源

deb http://security.ubuntu.com/ubuntu oneiric-security main restricted
deb-src http://security.ubuntu.com/ubuntu oneiric-security main restricted
deb http://security.ubuntu.com/ubuntu oneiric-security universe
deb-src http://security.ubuntu.com/ubuntu oneiric-security universe
deb http://security.ubuntu.com/ubuntu oneiric-security multiverse
deb-src http://security.ubuntu.com/ubuntu oneiric-security multiverse

 

2012年3月4日追加12.04官方源

deb http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse

如提示:
W: GPG 错误:http://archive.ubuntu.com precise Release: 由于没有公钥,无法验证下列签名: NO_PUBKEY 40976EAF437D05B5
则执行:sudo apt-key adv –keyserver keyserver.ubuntu.com –recv 40976EAF437D05B5

清理 apt deb 缓存文件,释放磁盘空间

apt-get clean

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *