1

我有一个 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

我发现了一个类似问题的问题,但这对我没有太大帮助。
所以我的问题是“我如何开始纠正这个问题并让它发挥作用?”

编辑 1

如果它是相关的,那么问题似乎来自 Debian Jessie 发行版,我无法获得 crossbuild-essential-armel。

编辑 2

我尝试为损坏的软件包安装测试和不稳定分支。他们正在安装,但之后,编译仍然无法正常工作。

4

0 回答 0