gpt4 book ai didi

python - Fedora 22 : ERROR: No module named '_rpmb' while building docker

转载 作者:行者123 更新时间:2023-12-02 20:27:30 40 4
gpt4 key购买 nike

我正在尝试使用 mock/scm 集成在 Fedora 22 上构建 docker。我在这里遇到的错误是:

DEBUG: Preparing SCM sources
ERROR: No module named '_rpmb'
Traceback (most recent call last):
File "/usr/sbin/mock", line 829, in <module>
main()
File "/usr/lib/python3.4/site-packages/mockbuild/trace_decorator.py", line 84, in trace
result = func(*args, **kw)
File "/usr/sbin/mock", line 650, in main
run_command(options, args, config_opts, commands, buildroot, state)
File "/usr/lib/python3.4/site-packages/mockbuild/trace_decorator.py", line 84, in trace
result = func(*args, **kw)
File "/usr/sbin/mock", line 663, in run_command
(options.sources, options.spec) = scmWorker.prepare_sources()
File "/usr/lib/python3.4/site-packages/mockbuild/trace_decorator.py", line 84, in trace
result = func(*args, **kw)
File "/usr/lib/python3.4/site-packages/mockbuild/scm.py", line 134, in prepare_sources
rpm_spec = ts.parseSpec(self.spec)
File "/usr/lib64/python3.4/site-packages/rpm/transaction.py", line 40, in parseSpec
import _rpmb
ImportError: No module named '_rpmb'

现在,我的系统上有 rpmb 可用:
[root@localhost peeyush]# sudo find / -name "*rpmb*"
/usr/lib64/librpmbuild.so.3
/usr/lib64/librpmbuild.so
/usr/lib64/librpmbuild.so.3.3.1
/usr/lib64/python2.7/site-packages/rpm/_rpmb.so
/usr/lib64/python3.4/site-packages/rpm/_rpmb.cpython-34m.so

虽然 mock 与系统上安装的模块无关,但正如我所见,chroot env 可以获取 rpmb。谁能告诉我为什么会出现这个错误?任何指针将不胜感激。

最佳答案

这纯粹是一个 RPM 错误。看:
https://bugzilla.redhat.com/show_bug.cgi?id=1236493

关于python - Fedora 22 : ERROR: No module named '_rpmb' while building docker,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29888739/

40 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com