大家一起来配置通过P2P来升级Ubuntu9.04
发表于 : 2009-04-14 15:50
今天看到这P2P来升级Ubuntu的文章,自己也测试了下,速度还不错。
把自己的配置放这里备份下。
大家自己修改源地址
利用apt-p2p这个软件包,我们就可以利用P2P技术来升级Ubuntu,安装apt-p2p:
安装好apt-p2p就该修改一下软件源为P2P源,修改之前先备份一下吧:
修改源:
替换为以下内容:
ubuntu9.04源地址:
除了安全组件依旧从官方源中获得以外,其它的都是从P2P中获得啦。修改好源,根据你的网络特点还可能需要做些工作,如果你的Ubuntu处于外网,比如直接在Ubuntu中使用PPPoE连接接入互联网,则无需任何工作。如果你的Ubuntu机子处于路由器下的网络,你需要在路由器中设置端口映射9977。做好这些处理工作就可以像日常更新源的操作了:
其实通过P2P来更新系统不算是一个非常可靠的更新方法,如果可以当然还是通过HTTP或者FTP下载一个新版Ubuntu的Alternate版ISO,然后再在Ubuntu中将这个ISO挂上去后将更新源设置为CDROM最为稳妥。
原帖地址:http://ubuntu.osgeeker.com/2009/04/p2pubuntu.html
把自己的配置放这里备份下。
大家自己修改源地址
利用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