分页: 1 / 1

大家一起来配置通过P2P来升级Ubuntu9.04

发表于 : 2009-04-14 15:50
mickeywaley
今天看到这P2P来升级Ubuntu的文章,自己也测试了下,速度还不错。
把自己的配置放这里备份下。
大家自己修改源地址

利用apt-p2p这个软件包,我们就可以利用P2P技术来升级Ubuntu,安装apt-p2p:

代码: 全选

$sudo apt-get install apt-p2p
安装好apt-p2p就该修改一下软件源为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

除了安全组件依旧从官方源中获得以外,其它的都是从P2P中获得啦。修改好源,根据你的网络特点还可能需要做些工作,如果你的Ubuntu处于外网,比如直接在Ubuntu中使用PPPoE连接接入互联网,则无需任何工作。如果你的Ubuntu机子处于路由器下的网络,你需要在路由器中设置端口映射9977。做好这些处理工作就可以像日常更新源的操作了:

代码: 全选

$sudo apt-get update

$sudo apt-get dist-upgrade
其实通过P2P来更新系统不算是一个非常可靠的更新方法,如果可以当然还是通过HTTP或者FTP下载一个新版Ubuntu的Alternate版ISO,然后再在Ubuntu中将这个ISO挂上去后将更新源设置为CDROM最为稳妥。

原帖地址:http://ubuntu.osgeeker.com/2009/04/p2pubuntu.html

Re: 大家一起来配置通过P2P来升级Ubuntu9.04

发表于 : 2009-04-15 3:17
mickeywaley

代码: 全选

#台湾的官方源速度也相当不错,有时甚至快于内地的:

deb http://tw.archive.ubuntu.com/ubuntu jaunty main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu jaunty-security main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu jaunty-updates main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu jaunty-backports main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu jaunty-proposed main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu jaunty main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu jaunty-security main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu jaunty-updates main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu jaunty-backports main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu jaunty-proposed 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

Re: 大家一起来配置通过P2P来升级Ubuntu9.04

发表于 : 2009-04-15 6:20
luojie-dune
顶下。我不用。更新速度1.7MB/s的飘过。

Re: 大家一起来配置通过P2P来升级Ubuntu9.04

发表于 : 2009-04-15 13:48
百草谷居士
其实通过P2P来更新系统不算是一个非常可靠的更新方法,如果可以当然还是通过HTTP或者FTP下载一个新版Ubuntu的Alternate版ISO,然后再在Ubuntu中将这个ISO挂上去后将更新源设置为CDROM最为稳妥。
都这么说,难道p2p下载的文件不进行校验不与服务器上的文件信息进行核对吗?这也太离谱了!

Re: 大家一起来配置通过P2P来升级Ubuntu9.04

发表于 : 2009-04-15 13:53
friend.ethan
还有专门的p2p的源么?直接安装个p2p不就好了?

Re: 大家一起来配置通过P2P来升级Ubuntu9.04

发表于 : 2009-06-22 16:50
foxhlchen
谢谢,楼主,真的非常非常感谢你!
特别是提供那个台湾的更新源,我能够达到300KB(ADSL)
要不是你我还在忍受2KB下载速度的苦恼!更本没法更新!

Re: 大家一起来配置通过P2P来升级Ubuntu9.04

发表于 : 2009-07-01 15:21
shy_sunhongyi
一般都是直接刻盘的。。。
不过也可以尝试一下楼主提供的方法。。。

Re: 大家一起来配置通过P2P来升级Ubuntu9.04

发表于 : 2009-07-06 14:07
LovE_buNtu
输入第一行代码提示未找到软件啊

Re: 大家一起来配置通过P2P来升级Ubuntu9.04

发表于 : 2009-07-19 20:07
tusooa
龟速

代码: 全选

Transport Packets Bytes Speed
Downloaded  694  226KiB  271B/sec
  Uploaded  3770  409KiB  490B/sec
PS:一秒钟调1B
but,用localhost:9977/tw.archive.ubuntu.com快

Re: 大家一起来配置通过P2P来升级Ubuntu9.04

发表于 : 2009-08-01 9:53
白鳍豚
用DownThemAll批量下载升级
FF的DownThemAll有从文件导入的功能
用新立得标记要升级的包,生成包下载脚本
打开生成的脚本删除wget -c ,另存为txt扩展名的文本或保存后加扩展名(保存需权限),用DownThemAll导入(FF工具→DownThemAll!工具→管理器→其他→从文件中导入→全部文件→开始),
那速度快多了,下好后,用新立得的加入下载的包功能安装,
或者直接把下载的包放到/var/cache/apt/archives里面直接

Re: 大家一起来配置通过P2P来升级Ubuntu9.04

发表于 : 2009-08-13 15:03
wenjianhn
cn99的源很快了

6MiB/S