我正在尝试使用SRPM为32位Fedora构建一些RPM。我尝试使用以下命令运行模拟:-
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文件?我如何修复此问题?
模拟正在使用/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