如何修复流浪汉中的“无法检索镜像列表”错误?

时间:2019-05-31 07:07:37

标签: vagrant yum

每当我无所事事时,都会出现以下错误。

==> default: [2019-05-30T13:09:31+00:00] INFO: Running queued delayed notifications before re-raising exception
==> default:
==> default: ================================================================================
==> default: Error executing action `create` on resource 'yum_repository[ius]'
==> default: ================================================================================
==> default:
==> default:
==> default: Mixlib::ShellOut::ShellCommandFailed
==> default: ------------------------------------
==> default: execute[yum-makecache-ius] (/tmp/vagrant-chef/bb6e5277837de973166d09e85978af4a/cookbooks/yum/providers/repository.rb line 55) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
==> default: ---- Begin output of yum -q makecache --disablerepo=* --enablerepo=ius ----
==> default: STDOUT: Could not retrieve mirrorlist http://mirrors.iuscommunity.org/mirrorlist/?repo=ius-el6&arch=x86_64&protocol=https error was
==> default: 14: problem making ssl connection
==> default: STDERR: Error: Cannot find a valid baseurl for repo: ius
==> default: ---- End output of yum -q makecache --disablerepo=* --enablerepo=ius ----
==> default: Ran yum -q makecache --disablerepo=* --enablerepo=ius returned 1
==> default:

此网址似乎有问题: http://mirrors.iuscommunity.org/mirrorlist/?repo=ius-el6&arch=x86_64&protocol=https

我尝试使用https和http。甚至尝试禁用sslverify false。

有人可以帮我吗?

1 个答案:

答案 0 :(得分:0)

您可能会遇到一些SSL证书和TLS问题。在终端上输入:

yum -y install ca-certificates openssl nss

再试一次