Skip to content

Instantly share code, notes, and snippets.

@yoshiya54
Created June 8, 2017 14:31
Show Gist options
  • Save yoshiya54/0c277d8b6442c76e7404e6160b1af01f to your computer and use it in GitHub Desktop.
Save yoshiya54/0c277d8b6442c76e7404e6160b1af01f to your computer and use it in GitHub Desktop.
Vagrantのyumでハマった。 ref: http://qiita.com/yoshiya64/items/99efd0e95c395ae729bf
[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
[root@localhost ~]# yum -y install httpd
Geladene Plugins: fastestmirror
base | 3.6 kB 00:00:00
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=extras&infra=stock error was
14: curl#52 - "Empty reply from server"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment