您现在的位置是:网站首页> 编程资料编程资料
安装使用apt-spy来为Ubuntu配置最快的软件源_Ubuntu/Debian_操作系统_
2024-03-15
135人已围观
简介 安装使用apt-spy来为Ubuntu配置最快的软件源_Ubuntu/Debian_操作系统_
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 没法安装的软件
如:
相关内容
- Ubuntu 14.04怎使用vsftpd搭建FTP服务?_Ubuntu/Debian_操作系统_
- Ubuntu16.04怎么将桌面左侧的启动器移动到屏幕底部?_Ubuntu/Debian_操作系统_
- 在Ubuntu系统上配置PXE服务器的教程_Ubuntu/Debian_操作系统_
- ubuntu虚拟系统怎么设置终端背景和字体颜色?_Ubuntu/Debian_操作系统_
- dnf累积在线得好礼活动怎么做 带人升级送好礼奖励内容介绍_网络游戏_游戏攻略_
- cf9月新版本更新内容介绍 新角色夏朵希新地图魔龙小镇_网络游戏_游戏攻略_
- 炉石传说第五赛季动物园卡组推荐_网络游戏_游戏攻略_
- dnf神圣黄金品级调整箱礼包价格介绍_网络游戏_游戏攻略_
- 剑灵白青山脉版本平民气功师首饰搭配推荐_网络游戏_游戏攻略_
- 魔兽世界6.0内容预览 格罗玛什是BOSS将有多件橙装_网络游戏_游戏攻略_
