我在树莓派上从源代码安装了一些 ROS 组件。当我遇到以下问题时,我正在检查并安装所需的依赖项:
sudo apt install -o Debug::pkgProblemResolver=true -o Debug::Acquire::http=true libgpg-error-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Starting pkgProblemResolver with broken count: 1
Starting 2 pkgProblemResolver with broken count: 1
Investigating (0) libgpg-error-dev:armhf < none -> 1.26-2 @un puN Ib >
Broken libgpg-error-dev:armhf Depends on libgpg-error0:armhf < 1.35-1~bpo9+1 @ii mK > (= 1.26-2)
Considering libgpg-error0:armhf 106 as a solution to libgpg-error-dev:armhf 9999
Done
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:
libgpg-error-dev : Depends: libgpg-error0 (= 1.26-2) but 1.35-1~bpo9+1 is to be installed
E: Unable to correct problems, you have held broken packages.
我不确定发生了什么事,也不知道如何解决这个问题。有什么建议吗?
答案1
安装的版本libgpg-error0
是向后移植的版本,因此您需要安装匹配的版本libgpg-error-dev
:
sudo apt install -t stretch-backports libgpg-error-dev