我正在尝试使用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与系统上安装的模块无关,但我可以看到rpmb可以用于chroot env。任何人都可以告诉我为什么我会收到此错误?任何指针都将受到赞赏。