如果你在Debian或Ubuntu系统上经常感觉到
apt-get 或
aptitude包安装速度过慢,那么这里就有几种改善这一情况的方法。你有没有考虑过改变正被使用的默认镜像站点?你有没有排除因特网连接的上游带宽成为瓶颈的可能?如果不是这些原因,你可以尝试第三个选择:使用apt-fast工具。apt-fast实际上是一个围绕apt-get和aptitude所写的shell脚本容器,它能加速包的下载速度。apt-fast本质上采用aria2下载工具,这款工具能够以“块”的方式从多个镜像并行下载一个文件(就像BitTorrent下载)。apt-fast - 用axel让apt-get多线程加速软件安装 http://www.linuxidc.com/Linux/2011-01/31815.htmUbuntu的apt加速工具:apt-fast http://www.linuxidc.com/Linux/2011-04/35020.htm安装apt-fast加快你的apt-get 下载速度 http://www.linuxidc.com/Linux/2011-07/38034.htmapt-fast:飞一般的apt-get http://www.linuxidc.com/Linux/2013-10/91797.htm使用apt-fast 来加速你的Ubuntu 的apt http://www.linuxidc.com/Linux/2013-11/92849.htm
在Debian或Ubuntu上安装apt-fast
下面是在基于Debian的Linux上安装apt-fast的步骤
Debian
- $ sudo apt-get install aria2
- $ wget https://github.com/ilikenwf/apt-fast/archive/master.zip
- $ unzip master.zip
- $ cd apt-fast-master
- $ sudo cp apt-fast /usr/bin
- $ sudo cp apt-fast.conf /etc
- $ sudo cp ./man/apt-fast.8/usr/share/man/man8
- $ sudo gzip /usr/share/man/man8/apt-fast.8
- $ sudo cp ./man/apt-fast.conf.5/usr/share/man/man5
- $ sudo gzip /usr/share/man/man5/apt-fast.conf.5
Ubuntu 14.04 以及更高版本
- $ sudo add-apt-repository ppa:saiarcot895/myppa
- $ sudo apt-get update
- $ sudo apt-get install apt-fast
Ubuntu 11.04 到 Ubuntu 13.10
- $ sudo add-apt-repository ppa:apt-fast/stable
- $ sudo apt-get update
- $ sudo apt-get install apt-fast
在安装期间,你需要选择一个默认的软件包管理器 (e.g., apt-get. aptitude ),还需要设置其余选项。但是你可以随时通过编辑配置文件 /etc/apt-fast/conf 来更改设置。
配置 apt-get
安装完成后,你需要在/etc/apt-fast.conf里配置
apt-fast使用的一系列镜像。你可以在下面的URL中找到一系列Debian/Ubuntu镜像。
- Debian: http://www.debian.org/mirror/list
- Ubuntu: https://launchpad.net/ubuntu/+archivemirrors
选择完那些地理上靠近你的镜像后,你需按照下面的格式将选择的镜像加入到/etc/apt-fast.conf。
- $ sudo vi /etc/apt-fast.conf
Debian:
- MIRRORS=("http://ftp.us.debian.org/debian/,http://carroll.aset.psu.edu/pub/linux/distributions/debian/,http://debian.gtisc.gatech.edu/debian/,http://debian.lcs.mit.edu/debian/,http://mirror.cc.columbia.edu/debian/")
Ubuntu/Mint:
- MIRRORS=("http://us.archive.ubuntu.com/ubuntu,http://mirror.cc.columbia.edu/pub/linux/ubuntu/archive/,http://mirror.cc.vt.edu/pub2/ubuntu/,http://mirror.umd.edu/ubuntu/,http://mirrors.mit.edu/ubuntu/")
如上面所示,对于一个特定档案的个别镜像,需要用逗号分割开来。你需要在/etc/apt/sources.list的MIRRORS字符串中包含默认的镜像指定站点。
更多详情见请继续阅读下一页的精彩内容: http://www.linuxidc.com/Linux/2014-11/109526p2.htm
介绍 Visual Studio 的 Android 模拟器Hyper-V安装RHEL集成服务相关资讯 Apt-fast
- 使用apt-fast 来加速你的Ubuntu 的 (11/17/2013 07:46:56)
- Apt-fast 1.8.1 发布 (12/13/2012 20:08:20)
- Apt-fast 1.6.2 发布-修复和优化( (06/16/2012 13:21:06)
| - apt-fast:飞一般的apt-get (10/22/2013 19:53:05)
- Apt-fast 1.6.4 发??-BUG修复和配 (06/25/2012 15:37:16)
- Apt-fast 1.6 发布 (06/15/2012 08:17:20)
|
本文评论 查看全部评论 (0)