Mixlib :: ShellOut :: ShellCommandFailed

时间:2017-11-17 05:31:25

标签: ruby chef

我在使用Linux中的配方安装软件包时遇到错误。

================================================================================[0m
    [31mError executing action `install` on resource 'package[libxslt]'[0m
    ================================================================================[0m

[0m    Mixlib::ShellOut::ShellCommandFailed[0m
    ------------------------------------[0m
    Expected process to exit with [0], but received '1'
[0m    ---- Begin output of /usr/bin/python /opt/chef/embedded/apps/chef/lib/chef/provider/package/yum-dump.py --options --installed-provides --yum-lock-timeout 30 ----
[0m    STDOUT: [option installonlypkgs] kernel kernel-bigmem installonlypkg(kernel-module) installonlypkg(vm) kernel-enterprise kernel-smp kernel-debug kernel-unsupported kernel-source kernel-devel kernel-PAE kernel-PAE-debug
[0m    STDERR: yum-dump Repository Error: failure: repodata/5c43262c2b560eb91f2874d3ef6e20536af2b9ec1421335130736b6d1e1a73a7-primary.sqlite.bz2 from pgdg93: [Errno 256] No more mirrors to try.
[0m    ---- End output of /usr/bin/python /opt/chef/embedded/apps/chef/lib/chef/provider/package/yum-dump.py --options --installed-provides --yum-lock-timeout 30 ----
[0m    Ran /usr/bin/python /opt/chef/embedded/apps/chef/lib/chef/provider/package/yum-dump.py --options --installed-provides --yum-lock-timeout 30 returned 1[0m

我正在使用厨师版11.18.12

有人可以向我解释原因和解决方案吗?

1 个答案:

答案 0 :(得分:0)

正如评论[Errno 256] No more mirrors to try.中所提到的,是Yum的真正错误,但是Chef 11很老,不受支持(并且不安全)所以我建议你尝试使用更新的东西。除此之外,您可能需要更新pgdg93回购的配置或回购可能存在服务器问题。