想要在 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]#
答案1
这不是您查找 Fedora 32 位构建依赖关系的方式。
这些存储库都不提供 i386 版本存储库。这样使用setarch
会让 DNF 认为您在假设的 i386 系统上使用它,因此当它评估 dnf 变量时,它会将$basearch
repo 文件中的 扩展为 i386 而不是 x86_64。 Fedora 不提供 i386 存储库。它包括普通 x86_64 存储库中许多库的 i686 版本。
我怀疑您正在使用 Debian 或其他发行版的某些方法。在 Fedora 中,您可以通过运行以下命令来安装软件包的 32 位版本:
dnf install wine-devel.i686