安装旧包/存档包时如何修复损坏的依赖关系

安装旧包/存档包时如何修复损坏的依赖关系

我正在尝试安装 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.

我怎样才能修复这些损坏的依赖关系?

相关内容