【问题标题】:"Broken packages" do not let me install packages“破包”不让我安装包
【发布时间】:2016-07-24 01:24:42
【问题描述】:

我在尝试在运行 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.

我在 google 上查看了很多建议,并尝试了 apt-get updatedpkg --get-selections | grep 持有(什么都没有出现)。我真的尝试了很多东西,没有运气。

大家有什么建议吗?

谢谢大家

【问题讨论】:

  • 您需要 libjpeg8 作为依赖项。
  • 我已经安装了 libjpeg8,还需要做其他事情吗?谢谢!

标签: linux raspberry-pi debian


【解决方案1】:

如前所述,这是一个依赖问题,可以使用 aptitude 来解决。

要安装 aptitude:

sudo apt-get install aptitude

使用能力:

sudo aptitude install package_name-normaly_dev

【讨论】:

猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-03-12
  • 2018-10-28
  • 2011-03-29
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多