ubuntu9.10使用apt-get时找不到下载源问题
来源:互联网 发布:udp端口号范围 编辑:程序博客网 时间:2024/05/16 18:03
ubuntu9.10使用apt-get时找不到下载源问题
(1)修改Ubuntu更新源sources.list,提高软件下载安装速度
sources.list在/etc/apt目录下
编辑/etc/apt/sources.list文件,把里面的默认的都用#号注释掉(或全删掉)然后添加以下几行:
##163
deb http://mirrors.163.com/ubuntu/ maverick main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ maverick-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ maverick-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ maverick-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ maverick-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ maverick main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ maverick-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ maverick-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ maverick-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ maverick-backports main restricted universe multiverse
(替换/etc/apt/sources.list)后使用apt-get update更新一下源
在手动添加外部源,或者更改相关的source之后,升级系统的时候。
如:
- sudo
cp /etc/apt/sources.list /etc/apt/sources.list_backup - sudo
emacs /etc/qpt/sources.list
执行
- sudo
apt- getupdate - sudo
apt- getupgrade
可能会出现:
W: GPG error: ftp://ftp.debian.org/ testing Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 010908312D230C5F W: There is no public key available for the following key IDs: 010908312D230C5F
关键点在,文件指纹不可被验证,因为没有获得相应的PUBKEY。
此时执行:
- gpg
--keyserver pgpkeys.mit.edu --recv-key 010908312D230C5F - gpg
-a --export 010908312D230C5F | sudo apt-key add -
注意其中Key ID需要被你所需要的那个替换。 问题:The following packages have unmet dependencies: libasound2: Breaks: bluez-alsa (<= 4.94-2) but 4.51-0ubuntu2 is to be installed由于ubuntu/debian软件库中有时候不同的库更新速度不一致,apt-get 出出现如下的错误提示 Some packages could not be installed. This may mean that you haverequested an impossible situation or if you are using the unstabledistribution that some required packages have not yet been createdor 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 会尝试降级当前这个库的版本,同时解决降级这个库对其它软件的依赖性的影响, 最终成功安装apt-get 没法安装的软件如:#aptitude install vim-gnome
http://blog.sina.com.cn/s/blog_c2f250bd0101gykd.html
参考:
http://liuzhigong.blog.163.com/blog/static/178272375201211131032368
http://blog.csdn.net/chao78787/article/details/6287606
http://tonychiu.blog.51cto.com/656605/654776
- ubuntu9.10使用apt-get时找不到下载源问题
- ubuntu9.10 apt-get 问题
- ubuntu9.10 apt-get update
- Ubuntu9.10用apt-get配置apache+php+mysql
- 下载apt-get源软件包
- apt-get 找不到文件
- apt-get源(更换apt-get下载地址)
- Linux使用apt-get安装软件时出现的问题
- [Linux] 配置apt-get高速下载源
- 配置apt-get告诉下载源
- 配置apt-get高速下载源
- apt-get使用的问题综合
- 使用ubuntu 9.10不能安装软件(apt-get下载提示Package has no installation candidate问题),使用apt-get upgrade/update 命令错
- 关于ubuntu更新sudo apt-get update和sudo apt-get upgrade下载缓慢的问题
- ubuntu14.04 apt-get由于源的问题导致无法下载问题解决
- ubuntu14.04 apt-get由于源的问题导致无法下载问题解决
- ubuntu14.04 apt-get由于源的问题导致无法下载问题解决
- 关于apt-get source下载源码包的问题
- jspatch 的简单原理理解
- Android官方开发文档Training系列课程中文版:与其它APP交互之允许其它APP启动你的Activity
- 机器人--机器视觉的魅力
- opengl之绘制一个矩形
- Struts2使用MethodFilterInterceptor来实现方法拦截器
- ubuntu9.10使用apt-get时找不到下载源问题
- c++Primer5,类设计者的工具
- CAGradientLayer基本使用方法
- 【暑假】[网络流]网络流知识总结
- 【暑假】[基本数据结构]根据BFS与DFS确定树
- 【暑假】[基本数据结构]根据in_order与post_order构树
- 【暑假】[基本数据结构]基本的数据结构知识点总结梳理
- 初学者关于ztree的浅谈
- 【暑假】[实用数据结构]动态连续和查询问题