欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

安裝使用apt-spy來為Ubuntu配置最快的軟件源

qiujichun 的BLOG   發(fā)布時(shí)間:2015-12-29 11:05:54   作者:qiujichun   我要評論
這篇文章主要介紹了安裝使用apt-spy來為Ubuntu配置最快的軟件源的方法,當(dāng)然同時(shí)也適用于其他Debian系的Linux系統(tǒng),需要的朋友可以參考下

1、更新軟件包列表并安裝apt-spy

復(fù)制代碼
代碼如下:

#apt-get install apt-spy

2、自動下載列表并使用apt-spy測試最快的源

復(fù)制代碼
代碼如下:

#apt-spy update
#apt-spy -d stable -a Asia

3、查看生成的配置文件,里面是最快的源

復(fù)制代碼
代碼如下:

#cat /etc/apt/sources.list.d/apt-spy.list
#cp /etc/apt/sources.list.d/apt-spy.list /etc/apt/sources.list
#apt-get update

幾個(gè)比較快的

復(fù)制代碼
代碼如下:

deb ftp://ftp.cn.debian.org/debian/ stable main #contrib non-free
deb http://mirrors.163.com/debian/ stable main #contrib non-free
deb-src http://mirrors.163.com/debian/ stable main #contrib non-free
deb http://security.debian.org/ stable/updates main

4、由于依賴關(guān)系安裝失敗的問題
由于ubuntu/debian軟件庫中有時(shí)候不同的庫更新速度不一致,apt-get 出出現(xiàn)如下的錯(cuò)誤提示
 
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
 
The following packages have unmet dependencies:
  libssl-dev: Depends: libssl0.9.8 (= 0.9.8k-7ubuntu8) but 0.9.8k-7ubuntu8.5 is to be installed
這個(gè)時(shí)候應(yīng)該請令一個(gè)工具出馬了:"aptitude"
使用這個(gè)工具,當(dāng)某個(gè)庫依賴的庫與當(dāng)前版本不一致時(shí),aptitude 會嘗試降級當(dāng)前這個(gè)庫的版本,同時(shí)解決降級這個(gè)庫對其它軟件的依賴性的影響, 最終成功安裝apt-get 沒法安裝的軟件
如:

復(fù)制代碼
代碼如下:
#aptitude install vim-gnome

相關(guān)文章

最新評論