如何在epel-7中使用mock

时间:2015-05-29 09:16:41

标签: fedora rhel chroot epel

我一直在尝试使用mock为epel-7创建一个chroot。点击此链接:http://miroslav.suchy.cz/blog/archives/2015/05/20/why_mock_does_not_work_on_el_6_and_el7_and_how_to_fix_it/index.html 我改变了我的.cfg文件。现在当我创建chroot时,我收到以下错误:

 sudo ./create_chroot.sh epel-7
INFO: mock.py version 1.2.8 starting (python version = 2.7.8)...
Start: init plugins
INFO: selinux enabled
Finish: init plugins
Start: run
Start: clean chroot
Finish: clean chroot
Start: chroot init
INFO: calling preinit hooks
INFO: enabled root cache
INFO: enabled yum cache
Start: cleaning yum metadata
Finish: cleaning yum metadata
INFO: enabled ccache
Mock Version: 1.2.8
INFO: Mock Version: 1.2.8
Start: yum install
Error: Nothing to do
ERROR: Command failed. See logs for output.

由于我已经在/etc/mock/*.cfg文件中进行了更改,我不确定为什么我仍然会收到此错误。你能帮我弄清楚其他必要的变化吗? TIA

1 个答案:

答案 0 :(得分:0)

原因是没有正确配置回购。更改了回购,一切正常。感谢。