倡议: Debian/Ubuntu用户都来安装apt-p2p吧(系统-软件-p2p升级)
发表于 : 2009-08-19 15:28
虽然以前发过,但是估计现在用的人还是不多。还是来倡议下。
用的人多就快了。
转: 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 那边去下载。


转: 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 那边去下载。