ubuntu 在amd 64机器上安装libglib2.0-dev arm 64包导致错误

i1icjdpr  于 6个月前  发布在  其他
关注(0)|答案(1)|浏览(98)

我尝试在我的Ubuntu 22.04.1机器上安装libglib2.0-dev arm 64版本(用于交叉编译)。我已经按照https://askubuntu.com/a/1323570的说明为amd 64和arm 64设置了存储库。但是,当我运行sudo apt-get install libglib2.0-dev:arm64命令时,我得到了以下错误。我如何修复这个问题?

The following packages have unmet dependencies:
 libglib2.0-bin:arm64 : Depends: libglib2.0-0:arm64 (= 2.64.6-1~ubuntu20.04.4) but it is not going to be installed
                        Depends: libc6:arm64 (>= 2.17) but it is not installable
                        Depends: libelf1:arm64 (>= 0.142) but it is not going to be installed
 libglib2.0-dev:arm64 : Depends: libffi-dev:arm64 (>= 3.3) but it is not going to be installed
                        Depends: libglib2.0-0:arm64 (= 2.64.6-1~ubuntu20.04.4) but it is not going to be installed
                        Depends: libmount-dev:arm64 (>= 2.28) but it is not going to be installed
                        Depends: libpcre3-dev:arm64 (>= 1:8.31) but it is not going to be installed
                        Depends: libselinux1-dev:arm64 but it is not going to be installed
                        Depends: zlib1g-dev:arm64 but it is not going to be installed
 libglib2.0-dev-bin:arm64 : Depends: libc6:arm64 (>= 2.28) but it is not installable
                            Depends: libglib2.0-0:arm64 (>= 2.39.4) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

字符串

yzuktlbb

yzuktlbb1#

我怀疑这里的问题是,你在Ubuntu 22.04(“jammy”)上,但你从https://askubuntu.com/a/1323570添加的sources.list条目是针对Ubuntu 20.04(“focal”)的,而且这两个仓库之间的软件包不兼容。你需要为匹配的Ubuntu版本添加arm64源列表条目。

相关问题