我正在尝试使用SRPM为32位Fedora构建一些RPM。我试着运行Mock:-
mock -r fedora-32-i386 rebuild src.rpm它给出了以下错误:
No matches found for the following disable plugin patterns: local, spacewalk
local 83 B/s | 199 B 00:02
Errors during downloading metadata for repository 'local':
- Status code: 403 for https://kojipkgs.fedoraproject.org/repos/f32-build/latest/i386/repodata/repomd.xml (IP: 38.145.60.21)
Error: Failed to download metadata for repo 'local': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
ERROR: Command failed:
# /usr/bin/dnf --installroot /var/lib/mock/fedora-32-i686-bootstrap/root/ --releasever 32 --setopt=deltarpm=False --allowerasing --disableplugin=local --disableplugin=spacewalk install dnf dnf-plugins-core --setopt=tsflags=nocontexts
No matches found for the following disable plugin patterns: local, spacewalk
local 83 B/s | 199 B 00:02
Errors during downloading metadata for repository 'local':
- Status code: 403 for https://kojipkgs.fedoraproject.org/repos/f32-build/latest/i386/repodata/repomd.xml (IP: 38.145.60.21)
Error: Failed to download metadata for repo 'local': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried我尝试在/etc/dnf的conf文件中禁用最快的镜像,但没有成功。mock是否使用了与我当前安装不同的repo文件?我该如何解决这个问题?
发布于 2021-09-14 12:29:21
Mock使用目录/etc/mock/中的配置,因此对于fedora-32-i386,该配置为/etc/mock/fedora-32-i386.cfg,该配置包含在安装buildroot期间使用的yum配置。
更多关于模拟配置的信息:https://github.com/rpm-software-management/mock/wiki#generate-custom-config-file
https://stackoverflow.com/questions/69145396
复制相似问题