在存储库';本地';上构建32位RPM:403时,模拟无法下载禁用插件模式 [英] Mock fails to download disable plugin patterns while building 32bit RPMs: 403 on repository 'local'
本文介绍了在存储库';本地';上构建32位RPM:403时,模拟无法下载禁用插件模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用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
这篇关于在存储库';本地';上构建32位RPM:403时,模拟无法下载禁用插件模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文