$ cd /etc/apt
1.备份旧的
cp sources.list sources.list-old
2.vi sources.list,添加
deb precise
main restricted
deb-src
precise main restricted
deb
precise-updates main restricted
deb-src
precise-updates main restricted
deb precise
universe
deb-src
precise universe
deb
precise-updates universe
deb-src
precise-updates universe
deb precise
multiverse
deb-src
precise multiverse
deb
precise-updates multiverse
deb-src
precise-updates multiverse
deb
precise-backports main restricted universe multiverse
deb-src
precise-backports main restricted universe multiverse
deb
precise-security main restricted
deb-src
precise-security main restricted
deb
precise-security universe
deb-src
precise-security universe
deb
precise-security multiverse
deb-src
precise-security multiverse
deb precise
main
deb-src
precise main
3.sudo apt-get update
Precise(12.04)版本
将上述列表地址中的 quantal 替换为 precise 即可
Oneiric(11.10)版本 将上述列表地址中的 quantal 替换为 oneiric 即可
Lucid(10.04) 版本 将上述列表地址中的 quantal 替换为 lucid 即可
Hardy(8.04) 版本 将上述列表地址中的 quantal 替换为 hardy 即可
karmic(9.10)
版本 将上述列表地址中的 quantal 替换为 karmic即可
阅读(1710) | 评论(0) | 转发(0) |