依赖性libmpc2 Debian 8.3

时间:2016-11-10 12:46:59

标签: debian

我正在尝试使用apt-get,cpp-4.7.arm-linux-gnueabihfgcc-4.7.arm-linux-gnueabihf在Debian 8.3 Jessie中安装一些开发工具,但我遇到libmpc2的依赖问题。

root@debian-host:~# apt-get install cpp-4.7.arm-linux-gnueabihf gcc-4.7.arm-linux-gnueabihf
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'cpp-4.7-arm-linux-gnueabihf' for regex 'cpp-4.7.arm-linux-gnueabihf'
Note, selecting 'gcc-4.7-arm-linux-gnueabihf' for regex 'gcc-4.7.arm-linux-gnueabihf'
Note, selecting 'gcc-4.7-arm-linux-gnueabihf-base' for regex 'gcc-4.7.arm-linux-gnueabihf'
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:
cpp-4.7-arm-linux-gnueabihf : Depends: libmpc2 but it is not installable
gcc-4.7-arm-linux-gnueabihf : Depends: libmpc2 but it is not installable
                           Recommends: libc6-dev-armhf-cross (>= 2.13-5) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

现在看来这个Debian版本只有libmpc3可用,我如何指向新版本并解决这些依赖性问题?

谢谢

1 个答案:

答案 0 :(得分:0)

根据debian-wiki-CrossToolchains,您需要添加Debian Cross-toolchains存储库:

nano /etc/apt/sources.list.d/crosstools.list

添加以下行:

deb http://emdebian.org/tools/debian/ jessie main

导入密钥:

curl http://emdebian.org/tools/debian/emdebian-toolchain-archive.key | sudo apt-key add -

然后运行:

sudo apt-get update
sudo apt-get -f install
sudo dpkg --add-architecture armhf
sudo apt-get update
sudo apt-get install crossbuild-essential-armhf
  

这将引入所需的包以交叉构建目标体系结构,即libc6-dev:,gcc - ,g++ - 和dpkg-cross。 (请注意,dpkg-cross已从jessie中删除,但仍保留在Debian Cross-toolchains存储库中)。