【操作系統(一)】Ubuntu使用apt-get install安裝程序下載速度慢?apt-fast加速下載。

目錄

前言:

安裝方法:

使用方法:

可能出現的問題:


前言:

受到各種因素影響,有時ubuntu使用sudo apt-get install xx安裝程序,在下載軟件的時候會出現下載速度過慢的問題。

解決辦法:通過安裝apt-fast代替apt-get,可以使下載的速度有顯著的提升。

解釋:apt-fast採用aria2下載工具,可以通過增加線程的方式來加速apt-get/apt等命令。詳細信息,可以參考https://wiki.ubuntu.org.cn/Apt-fast

安裝方法:

ubuntu 11.04~13.10版本:

sudo apt-get install axel aria2
sudo apt-add-repository ppa:apt-fast/stable
sudo apt-get update
sudo apt-get install apt-fast

ubuntu 14.04及之後版本:

sudo add-apt-repository ppa:saiarcot895/myppa
sudo apt-get update
sudo apt-get install apt-fast
sudo apt-get -y install apt-fast

在安裝的過程中配置apt-fast:選擇apt-get。

鏈接數可以選5~16之間,推薦選擇16.

會話框隨便選擇,推薦選擇否。

到這,apt-fast就算安裝成功。

使用方法:

sudo apt-fast install xx

例如:更新

sudo apt-fast update

當然,apt-get命令也是可以使用的。

可能出現的問題:

沒有add-apt-repository

解決辦法:安裝python-software-properties

sudo apt-get install software-properties-common
sudo apt-get update

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章