倡议: Debian/Ubuntu用户都来安装apt-p2p吧(系统-软件-p2p升级)

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
mickeywaley
帖子: 1427
注册时间: 2009-03-19 9:19
系统: ubuntu
来自: 江苏
联系:

倡议: Debian/Ubuntu用户都来安装apt-p2p吧(系统-软件-p2p升级)

#1

帖子 mickeywaley » 2009-08-19 15:28

虽然以前发过,但是估计现在用的人还是不多。还是来倡议下。 :em11 用的人多就快了。 :em09
转: http://hi.baidu.com/houxn22/blog/item/0 ... f1003.html
APT 是一套 Debian 所发展出来的套件管理系统,Ubuntu Linux 也使用它来处理程式跟系统上的安装、更新的工作。平常我们在 Ubuntu 上执行更新管理员或 Synaptic 套件管理程式,背后就是透过 APT 在努力工作。

apt-p2p 能透过 p2p 的原理,从其他 apt-p2p 的使用者(peers)那边取得需要的套件,有效减轻 Ubuntu 更新伺服器的负担,理论上也会更快。如果没有其他人有你需要的套件,apt-p2p 会自动回到原本的套件来源处下载。

因为学校的网路近来连接国外的速度颇慢,导致每次 Ubuntu 系统更新都要花上个几十分钟、甚至几小时,因此今天来尝试看看使用 apt-p2p 更新

参考原文:Using apt-p2p For Faster Upgrades From Intrepid to Jaunty | blog.chenhow.net

1. 首先先安装 apt-p2p

sudo apt-get install apt-p2p

2. 接着先备份软体来源设定档(source.list)

sudo cp /etc/apt/sources.list /etc/apt/sources.list-apt-p2p-backup

3. 编辑 souece.list 档桉,将每行的「http://」替换为「http://localhost:9977/」

sudo gedit /etc/apt/sources.list

deb http://localhost:9977/archive.ubuntu.com/ubuntu/ jaunty main universe restricted multiverse
deb http://localhost:9977/security.ubuntu.com/ubuntu/ jaunty-security universe main multiverse restricted
deb http://localhost:9977/ftp.twaren.net/ubuntu jaunty main universe restricted multiverse
……以下省略、依此类推……

4. 更新套件资讯

sudo apt-get update

此时已大功告成。好奇的话,可以使用浏览器开启
http://localhost:9977/
页面,看看 apt-p2p 的运作状况。

我的使用经验是,有超过 98% 的流量会透过 apt-p2p 从其他 peers 那边抓,只剩一点点会回到各个 Repository 那边去下载。
头像
tunpishuang
帖子: 45
注册时间: 2007-08-23 21:49
来自: chongqing
联系:

Re: 倡议: Debian/Ubuntu用户都来安装apt-p2p吧(系统-软件-p2p升级)

#2

帖子 tunpishuang » 2009-08-19 15:49

我发没有apt-get install下载的时候,也在上传。。。
头像
mickeywaley
帖子: 1427
注册时间: 2009-03-19 9:19
系统: ubuntu
来自: 江苏
联系:

Re: 倡议: Debian/Ubuntu用户都来安装apt-p2p吧(系统-软件-p2p升级)

#3

帖子 mickeywaley » 2009-08-19 15:53

http://140.116.54.68:9977/
http://79.210.219.213:9977/
http://222.185.87.144:9977/
http://128.111.69.199:9977/
http://60.241.249.107:9977/


给你几个地址看看,估计只有当天有效
Screenshot-25.png
Screenshot-25.png (10.37 KiB) 查看 455 次
上次由 mickeywaley 在 2009-08-19 16:36,总共编辑 3 次。
头像
tunpishuang
帖子: 45
注册时间: 2007-08-23 21:49
来自: chongqing
联系:

Re: 倡议: Debian/Ubuntu用户都来安装apt-p2p吧(系统-软件-p2p升级)

#4

帖子 tunpishuang » 2009-08-19 15:58

mickeywaley 写了:http://79.210.219.213:9977/
http://222.185.87.144:9977/

给你两个地址看看,估计只有当天有效
Screenshot-25.png
mirror , peer各占一半的样子,如果这个速度快的话,我就用官方的源了。。保持时时更新。。
头像
zasdfgbnm
帖子: 119
注册时间: 2009-04-18 18:30

Re: 倡议: Debian/Ubuntu用户都来安装apt-p2p吧(系统-软件-p2p升级)

#5

帖子 zasdfgbnm » 2009-09-06 11:09

为什么必须禁用第三方软件源呢?
Step 2: Disable 3rd Parties repositories

It is also very much recommended to disable 3rd party repositories! If you don't know exactely what you are doing, go to the 3rd Parties tab and deselect all of the entries there.
回复