国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 系統 > Ubuntu > 正文

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

2020-10-18 20:37:33
字體:
來源:轉載
供稿:網友

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

復制代碼
代碼如下:

#apt-get install apt-spy

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

復制代碼
代碼如下:

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

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

復制代碼
代碼如下:

#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

幾個比較快的

復制代碼
代碼如下:

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、由于依賴關系安裝失敗的問題
由于ubuntu/debian軟件庫中有時候不同的庫更新速度不一致,apt-get 出出現如下的錯誤提示
 
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
這個時候應該請令一個工具出馬了:"aptitude"
使用這個工具,當某個庫依賴的庫與當前版本不一致時,aptitude 會嘗試降級當前這個庫的版本,同時解決降級這個庫對其它軟件的依賴性的影響, 最終成功安裝apt-get 沒法安裝的軟件
如:

復制代碼
代碼如下:
#aptitude install vim-gnome

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 梓潼县| 沁阳市| 建水县| 神木县| 江华| 叶城县| 兰坪| 顺平县| 璧山县| 南郑县| SHOW| 新田县| 永新县| 郸城县| 邹城市| 英德市| 于都县| 潍坊市| 晋城| 历史| 沅江市| 广东省| 襄汾县| 筠连县| 东光县| 平远县| 德格县| 外汇| 南投市| 伊吾县| 大名县| 前郭尔| 常德市| 张家界市| 中江县| 河北省| 仙居县| 武隆县| 确山县| 黑龙江省| 聊城市|