Apt-fast script that combines the power of the axel download manager with the stability of apt-get.
Install axel in ubuntu
First you need to install axel in ubuntu using the following comamnd from your terminal
sudo apt-get install axel
Now you need to download apt-fast script from here .Then, just place the script somewhere (/usr/bin or /usr/sbin is ideal), rename it to apt-fast (without the .sh extension)
sudo mv apt-fast.sh apt-fast
now you need to change the permissions to downloaded script
sudo chmod +x apt-fast
Using apt-fast
Once done, just use it like apt-get. To install a single package, make sure your database is up to date (apt-fast update), and run apt-fast install packagenamehere. Watch it download with incredible speed, and install your requested packages. To upgrade or dist-upgrade, do the same thing. Just use apt-fast dist-upgrade or apt-fast upgrade.
Should your download stall for any number of reasons, you'll need to do an apt-fast clean.
提速方法二:
apt-get now supports a 'mirror' method that will automatically select a good mirror based on your location. Putting:
deb http://ap-northeast-1.ec2.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse deb http://ap-northeast-1.ec2.archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse deb http://ap-northeast-1.ec2.archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
on the top in your /etc/apt/sources.list
file should be all that is needed to make it automatically pick a mirror for you based on your geographical location.
Lucid (10.04), Maverick (10.10), Natty (11.04), And Oneiric (11.10) users can replace precise
with the appropriate name.