手机
当前位置:查字典教程网 >操作系统 >Ubuntu/Debian >安装使用apt-spy来为Ubuntu配置最快的软件源
安装使用apt-spy来为Ubuntu配置最快的软件源
摘要:1、更新软件包列表并安装apt-spy#apt-getinstallapt-spy2、自动下载列表并使用apt-spy测试最快的源#apt-...

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

【安装使用apt-spy来为Ubuntu配置最快的软件源】相关文章:

Ubuntu 15.04升级到Ubuntu 15.10的详细教程

Ubuntu系统中使用apt-file命令来查找缺失文件

vmware10安装ubuntu13.10的详细步骤(多图)

Debian中安装使用apt-p2p来构建软件包缓存的教程

在Ubuntu下安装使用MegaCli来管理磁盘

在Ubuntu系统中使用APT-mirror本地软件仓库的教程

ahjesus安装mongodb企业版for ubuntu的步骤

安装Aptik来备份Ubuntu系统上的软件

在Ubuntu系统下安装使用PCMan资源管理器

ubuntu配置ssh server的详细步骤

精品推荐
分类导航