我尝试在我的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.
字符串
1条答案
按热度按时间yzuktlbb1#
我怀疑这里的问题是,你在Ubuntu 22.04(“jammy”)上,但你从https://askubuntu.com/a/1323570添加的
sources.list
条目是针对Ubuntu 20.04(“focal”)的,而且这两个仓库之间的软件包不兼容。你需要为匹配的Ubuntu版本添加arm64源列表条目。