"破包"不要让我安装包

时间:2016-04-04 13:14:55

标签: linux raspberry-pi debian

我试图在我的覆盆子pi中设置一个运行raspbian的mjpg-streamer时遇到了一些问题。当我尝试安装软件包时,出现以下错误:

sudo apt-get install libjpeg-dev

Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libjpeg8-dev' instead of 'libjpeg-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 to resolve the situation:

 The following packages have unmet dependencies:
 libjpeg8-dev : Depends: libjpeg8 (= 8d-1+deb7u1) but 8d1-2 is to be installed
E: Unable to correct problems, you have held broken packages.

我在谷歌上看了很多建议,并尝试了诸如 apt-get update dpkg --get-selections | grep hold (什么都没有显示)。我真的尝试了很多东西,没有运气。

有人有什么建议吗?

谢谢大家

1 个答案:

答案 0 :(得分:2)

如上所述,这是一个依赖性问题,要解决它你可以使用aptitude。

安装aptitude:

sudo apt-get install aptitude

使用aptitude:

sudo aptitude install package_name-normaly_dev