在 amd64 机器上安装 libglib2.0-dev arm64 包导致错误

在 amd64 机器上安装 libglib2.0-dev arm64 包导致错误

我正在尝试在我的 Ubuntu 22.04.1 机器上安装 libglib2.0-dev arm64 版本(用于交叉编译目的)。我已经按照以下说明为 amd64 和 arm64 设置了存储库https://askubuntu.com/a/1323570。但是,当我运行该命令时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.

相关内容