这显然是一个非常常见的问题,但我无法通过其他问题解决我的特定问题。我在 ubuntu 16.04 上。
我开始尝试使用安装 opencv本教程。一开始我尝试
sudo apt-get install libtiff-dev
我得到了
kpierce@dw7mhal3:~$ sudo apt-get install libtiff-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libtiff5-dev' instead of 'libtiff-dev'
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 resolve the situation:
The following packages have unmet dependencies:
libtiff5-dev : Depends: libtiff5 (= 4.0.6-1) but 4.0.6-1ubuntu0.4 is to be installed
Depends: zlib1g-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
好的,我持有损坏的包裹,所以我尝试修复它们:
sudo apt-get update –fix-missing
sudo dpkg –configure -a
sudo apt-get install -f
这不会导致任何改变。
我可以在这里做什么?
编辑:
kpierce@dw7mhal3:~$ sudo apt-cache policy
Package files:
100 /var/lib/dpkg/status
release a=now
500 https://cloud.r-project.org/bin/linux/ubuntu xenial/ Packages
release v=16.04,o=CRAN,a=xenial,n=xenial,l=CRAN,c=
origin cloud.r-project.org
500 http://mirror.it.ubc.ca/ubuntu xenial/multiverse i386 Packages
release v=16.04,o=Ubuntu,a=xenial,n=xenial,l=Ubuntu,c=multiverse,b=i386
origin mirror.it.ubc.ca
500 http://mirror.it.ubc.ca/ubuntu xenial/multiverse amd64 Packages
release v=16.04,o=Ubuntu,a=xenial,n=xenial,l=Ubuntu,c=multiverse,b=amd64
origin mirror.it.ubc.ca
500 http://mirror.it.ubc.ca/ubuntu xenial/universe i386 Packages
release v=16.04,o=Ubuntu,a=xenial,n=xenial,l=Ubuntu,c=universe,b=i386
origin mirror.it.ubc.ca
500 http://mirror.it.ubc.ca/ubuntu xenial/universe amd64 Packages
release v=16.04,o=Ubuntu,a=xenial,n=xenial,l=Ubuntu,c=universe,b=amd64
origin mirror.it.ubc.ca
500 http://mirror.it.ubc.ca/ubuntu xenial/restricted i386 Packages
release v=16.04,o=Ubuntu,a=xenial,n=xenial,l=Ubuntu,c=restricted,b=i386
origin mirror.it.ubc.ca
500 http://mirror.it.ubc.ca/ubuntu xenial/restricted amd64 Packages
release v=16.04,o=Ubuntu,a=xenial,n=xenial,l=Ubuntu,c=restricted,b=amd64
origin mirror.it.ubc.ca
500 http://mirror.it.ubc.ca/ubuntu xenial/main i386 Packages
release v=16.04,o=Ubuntu,a=xenial,n=xenial,l=Ubuntu,c=main,b=i386
origin mirror.it.ubc.ca
500 http://mirror.it.ubc.ca/ubuntu xenial/main amd64 Packages
release v=16.04,o=Ubuntu,a=xenial,n=xenial,l=Ubuntu,c=main,b=amd64
origin mirror.it.ubc.ca
Pinned packages:
kpierce@dw7mhal3:~$