解决Ubuntu/debian的Apt-get 由于依赖关系安装失败的问题
来源:互联网 发布:c 多线程编程 视频 编辑:程序博客网 时间:2024/05/22 10:39
我的ubuntu偶而的会升级一下软件包,结果今天装libqt4-dev时遇到下面的问题,错误提示为:
- apt-get install libqt4-dev
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- 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:
- libqt4-dev: Depends: libpq-dev but it is not going to be installed
- Depends: libssl-dev but it is not going to be installed
- E: Broken packages
再往下一查,发现:
- # apt-get install libpq-dev
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- 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:
- libpq-dev: Depends: libpq5 (= 8.4.1-1) but 8.4.4-0ubuntu9.10 is to be installed
- Depends: libssl-dev but it is not going to be installed
- Depends: libkrb5-dev but it is not going to be installed
- E: Broken packages
意思就是,虽然我的软件包更新,但是-dev的包就要求是那个旧一点儿的版本。。
怎么解决呢?
网上有个相关的帖子:
http://daway320.blog.163.com/blog/static/3878369920107331733393/
其中最有用的一句应该是这条命令:
- aptitude install libqt4-dbus=4.4.3-1
这让我想起来可以用这个方法来给各个软件包降级。
比如处理libpq的问题:
apt-get install libpq5=8.4.1-1
接下来要手工降级好多库,如果再有自动化一点儿的方法就好了。 T_T
0 0
- 解决Ubuntu/debian的Apt-get 由于依赖关系安装失败的问题
- 解决Ubuntu/debian的Apt-get 由于依赖关系安装失败的问题
- 解决Ubuntu/debian的Apt-get 由于依赖关系安装失败的问题
- 解决Ubuntu/debian的Apt-get 由于依赖关系安装失败的问题
- 解决Ubuntu/debian的Apt-get 由于依赖关系安装失败的问题
- Ubuntu apt-get 版本依赖的问题
- apt-get依赖库版本过高问题的解决(如何处理libqt4-dev在ubuntu的安装问题)
- apt-get依赖库版本过高问题的解决(如何处理libqt4-dev在ubuntu的安装问题)
- sudo apt-get installl XXX 需要依赖关系的解决。
- 解决ubuntu无法apt-get的问题
- ubuntu apt-get update 失败解决。安装新的ubuntu时出现 mirror连接不上
- ubuntu apt-get update 失败解决。安装新的ubuntu时出现 mirror连接不上
- Ubuntu 16.04 apt-get无法自动解决依赖的解决方法
- Debian用apt-get 安装软件时出现的问题!
- 关于Ubuntu sudo apt-get update失败的解决
- 解决apt-get install出现依赖包的问题
- ubuntu采用apt-get安装软件出现依赖问题的解决方案
- ubuntu采用apt-get安装软件出现依赖问题的解决方案
- int socket( int family, int type, int,protocol)
- Screen Resolution Problem with Ubuntu 14.04 and VirtualBox
- sqlite 的数据类型 与 python 的数据类型
- 在虚拟机中ubuntu版本的Spark配置
- LCD驱动中pixclock的计算
- 解决Ubuntu/debian的Apt-get 由于依赖关系安装失败的问题
- cocos2dx wp8 中文字体 解决方案
- Qt Udp聊天室
- 字符串转十六进制 十六进制转字符串
- oracle存储过程3
- http://blog.csdn.net/huangyanbin123/article/details/38943575
- Digital Raw Capture 笔记
- UVa 10285 Longest Run on a Snowboard [DP]
- hdu 2112 最短路 dijkstra优先队列