想在 Fedora 35 上安装 32 位构建依赖项,但失败了,这可能吗?有没有办法解决它?
[root@fedora etc]# setarch i686 dnf builddep wine-devel
enabling fedora-source repository
enabling fedora-modular-source repository
enabling updates-source repository
enabling updates-modular-source repository
enabling rpmfusion-nonfree-nvidia-driver-source repository
enabling rpmfusion-nonfree-steam-source repository
Copr repo for PyCharm owned by phracek 176 B/s | 341 B 00:01
Errors during downloading metadata for repository 'phracek-PyCharm':
- Status code: 404 for https://copr-be.cloud.fedoraproject.org/results/phracek/PyCharm/fedora-35-i386/repodata/repomd.xml (IP: 52.44.175.77)
Error: Failed to download metadata for repo 'phracek-PyCharm': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Fedora 35 - i386 8.4 kB/s | 92 kB 00:10
Errors during downloading metadata for repository 'fedora':
- Status code: 404 for https://mirrors.fedoraproject.org/metalink?repo=fedora-35&arch=i386 (IP: 152.19.134.142)
- Status code: 404 for https://mirrors.fedoraproject.org/metalink?repo=fedora-35&arch=i386 (IP: 8.43.85.67)
- Status code: 404 for https://mirrors.fedoraproject.org/metalink?repo=fedora-35&arch=i386 (IP: 38.145.60.21)
Error: Failed to download metadata for repo 'fedora': Cannot prepare internal mirrorlist: Status code: 404 for https://mirrors.fedoraproject.org/metalink?repo=fedora-35&arch=i386 (IP: 38.145.60.21)
[root@fedora etc]#
这不是您使用 Fedora 找到 32 位构建依赖项的方式。
这些存储库都没有提供 i386 版本的存储库。这样使用
setarch
会使 DNF 认为您在假设的 i386 系统上使用它,因此当它评估 dnf 变量时,它会将$basearch
repo 文件中的扩展为 i386 而不是 x86_64。Fedora 不提供 i386 存储库。它包括普通 x86_64 存储库中许多库的 i686 构建。我怀疑您正在使用 Debian 或其他发行版的一些方法。在 Fedora 中,您可以通过运行以下命令安装 32 位版本的软件包: