因为可能会在项目中应用到Qt的canvas,自然想在自己的VM上先装上来试试,
Nokia现在的SDK太能用了。
我的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
如果没装aptitude就先安装:
- sudo apt-get install aptitude
这让我想起来可以用这个方法来给各个软件包降级。
比如处理libpq的问题:
apt-get install libpq5=8.4.1-1
接下来要手工降级好多库,如果再有自动化一点儿的方法就好了。 T_T
(delphinew) |