![安装旧包/存档包时如何修复损坏的依赖关系](https://linux22.com/image/1328742/%E5%AE%89%E8%A3%85%E6%97%A7%E5%8C%85%2F%E5%AD%98%E6%A1%A3%E5%8C%85%E6%97%B6%E5%A6%82%E4%BD%95%E4%BF%AE%E5%A4%8D%E6%8D%9F%E5%9D%8F%E7%9A%84%E4%BE%9D%E8%B5%96%E5%85%B3%E7%B3%BB.png)
我正在尝试安装 opencv 版本 2.1。我的代码库需要 opencv 2.1,因此无法升级。具体来说,我正在尝试安装以下软件包:libhighgui2.1 libcvaux2.1 libcv-dev libcvaux-dev libhighgui-dev。
到目前为止,我的解决方案是将 /etc/apt/sources.list 更改为从http://archive.ubuntu.com/ubuntu/太棒了。但是,当我 时apt-get install libhighgui-dev
,我收到错误消息:
The following packages have unmet dependencies:
libhighgui-dev : Depends: libjpeg-dev
Depends: libtiff4-dev but it is not going to be installed
Depends: libjasper-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
在“apt-get install libjpeg-dev”上:
The following packages have unmet dependencies:
libjpeg62-dev : Depends: libjpeg62 (= 6b1-1ubuntu1) but 6b1-2ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.
我怎样才能修复这些损坏的依赖关系?