把自己的配置放这里备份下。
大家自己修改源地址
利用apt-p2p这个软件包,我们就可以利用P2P技术来升级Ubuntu,安装apt-p2p:
代码: 全选
$sudo apt-get install apt-p2p
代码: 全选
$sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
代码: 全选
$sudo gedit /etc/apt/sources.list
ubuntu9.04源地址:
代码: 全选
#常州本地cn99源P2P来升级Ubuntu
deb http://ubuntu.cn99.com/ubuntu/ jaunty-security main restricted universe multiverse
deb http://localhost:9977/ubuntu.cn99.com/ubuntu/ jaunty main restricted universe multiverse
deb http://localhost:9977/ubuntu.cn99.com/ubuntu/ jaunty-updates main restricted universe multiverse
deb http://localhost:9977/ubuntu.cn99.com/ubuntu/ jaunty-proposed main restricted universe multiverse
deb http://localhost:9977/ubuntu.cn99.com/ubuntu/ jaunty-backports main restricted universe multiverse
#国外官方源P2P来升级Ubuntu
deb http://security.ubuntu.com/ubuntu/ jaunty-security universe main multiverse restricted
deb http://localhost:9977/archive.ubuntu.com/ubuntu/ jaunty main universe restricted multiverse
deb http://localhost:9977/archive.ubuntu.com/ubuntu/ jaunty-updates universe main multiverse restricted
deb http://localhost:9977/archive.ubuntu.com/ubuntu/ jaunty-backports universe main multiverse restricted
deb http://localhost:9977/archive.canonical.com/ubuntu jaunty partner
代码: 全选
$sudo apt-get update
$sudo apt-get dist-upgrade
原帖地址:http://ubuntu.osgeeker.com/2009/04/p2pubuntu.html