我有一个docker容器,我用它来交叉编译Debian-jessie的应用程序。我最近没遇到任何问题,但现在看来我有无法解决的无法解决的依赖关系:
The following packages have unmet dependencies: crossbuild-essential-armel :
Depends: gcc-arm-linux-gnueabi (>= 4.9.1-1) but it is not going to be installed
Depends: g++-arm-linux-gnueabi (>= 4.9.1-1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
我尝试在其他安装(VM)上执行此操作,但我的结果完全相同。
下面我粘贴出现错误的构建步骤:
Step 14 : RUN apt-get update && apt-get install --yes crossbuild-essential-armel
---> Running in b523b225cfdd
Hit http://emdebian.org jessie InRelease
Get:1 http://security.debian.org jessie/updates InRelease [63.1 kB]
Ign http://httpredir.debian.org jessie InRelease
Get:2 http://emdebian.org jessie/main amd64 Packages [17.2 kB]
Get:3 http://httpredir.debian.org jessie-updates InRelease [145 kB]
Get:4 http://emdebian.org jessie/main armel Packages [8215 B]
Hit http://httpredir.debian.org jessie Release.gpg
Get:5 http://security.debian.org jessie/updates/main amd64 Packages [644 kB]
Hit http://httpredir.debian.org jessie Release
Get:6 http://httpredir.debian.org jessie-updates/main amd64 Packages [23.1 kB]
Get:7 http://security.debian.org jessie/updates/main armel Packages [626 kB]
Get:8 http://httpredir.debian.org jessie-updates/main armel Packages [23.7 kB]
Get:9 http://httpredir.debian.org jessie/main amd64 Packages [9064 kB]
Get:10 http://httpredir.debian.org jessie/main armel Packages [8868 kB]
Fetched 19.5 MB in 26s (747 kB/s)
Reading package lists...
W: Size of file /var/lib/apt/lists/httpredir.debian.org_debian_dists_jessie-updates_main_binary-amd64_Packages.gz is not what the server reported 23088 23096
W: Size of file /var/lib/apt/lists/httpredir.debian.org_debian_dists_jessie-updates_main_binary-armel_Packages.gz is not what the server reported 23657 23707
Reading package lists...
Building dependency tree...
Reading state information...
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:
crossbuild-essential-armel : Depends: gcc-arm-linux-gnueabi (>= 4.9.1-1) but it is not going to be installed
Depends: g++-arm-linux-gnueabi (>= 4.9.1-1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
The command '/bin/sh -c apt-get update && apt-get install --yes crossbuild-essential-armel' returned a non-zero code: 100
我发现question有类似的问题,但对我来说并不是很有帮助。
所以我的问题是"我如何开始纠正这个并使其有效?"
修改1
如果它是相关的,似乎问题来自Debian Jessie发行版,我无法获得crossbuild-essential-armel。
修改2
我尝试为损坏的软件包安装测试和unstable分支。他们正在安装,但之后,编译仍然无效。