CentOS 7.0 yum install 错误http://vault.centos.org/centos/7/os/Source/repodata/repomd.xml: [Errno 14]
2017-02-09 11:34
906 查看
执行yum install vconfig时老是报错:
http://vault.centos.org/centos/7/os/Source/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not
Found
经过分析:
原因是标准的CentOS 7.0 Build1406里面很多的仓库已经被CentOS移除了,转到CentOS 7.1 Build1503和CentOS7.2 Build1503了。
因此需要手工更改仓库文件/etc/yum.d.repo/CentOS-Sources.repo,
更改之前,先备份下
#cp CentOS-Sources.repo CentOS-Sources.repo.bak
然后开始编辑CentOS-Sources.repo文件。
将文件中的“$releasever”全部替换成“7.2.1511”或者“7.1.1503”。
[base-source]
name=CentOS-7.2.1511 - Base Sources
baseurl=http://vault.centos.org/centos/7.2.1511/os/Source/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#released updates
[updates-source]
name=CentOS-7.2.1511 - Updates Sources
baseurl=http://vault.centos.org/centos/7.2.1511/updates/Source/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#additional packages that may be useful
[extras-source]
name=CentOS-7.2.1511 - Extras Sources
baseurl=http://vault.centos.org/centos/7.2.1511/extras/Source/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#additional packages that extend functionality of existing packages
[centosplus-source]
name=CentOS-7.2.1511 - Plus Sources
baseurl=http://vault.centos.org/centos/7.2.1511/centosplus/Source/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
更改完成后执行
#yum clean
#yum update
http://vault.centos.org/centos/7/os/Source/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not
Found
经过分析:
原因是标准的CentOS 7.0 Build1406里面很多的仓库已经被CentOS移除了,转到CentOS 7.1 Build1503和CentOS7.2 Build1503了。
因此需要手工更改仓库文件/etc/yum.d.repo/CentOS-Sources.repo,
更改之前,先备份下
#cp CentOS-Sources.repo CentOS-Sources.repo.bak
然后开始编辑CentOS-Sources.repo文件。
将文件中的“$releasever”全部替换成“7.2.1511”或者“7.1.1503”。
[base-source]
name=CentOS-7.2.1511 - Base Sources
baseurl=http://vault.centos.org/centos/7.2.1511/os/Source/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#released updates
[updates-source]
name=CentOS-7.2.1511 - Updates Sources
baseurl=http://vault.centos.org/centos/7.2.1511/updates/Source/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#additional packages that may be useful
[extras-source]
name=CentOS-7.2.1511 - Extras Sources
baseurl=http://vault.centos.org/centos/7.2.1511/extras/Source/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#additional packages that extend functionality of existing packages
[centosplus-source]
name=CentOS-7.2.1511 - Plus Sources
baseurl=http://vault.centos.org/centos/7.2.1511/centosplus/Source/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
更改完成后执行
#yum clean
#yum update
相关文章推荐
- 安装时遇到:正在尝试其它镜像。 http://mirrors.btte.net/centos/7.2.1511/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.btte.net; 未知的错误"
- 【CentOS7】yum安装时出现错误Errno 14 Couldn't resolve host的解决办法
- 【CentOS6.5】安装之DNS配置错误,yum install 软件报错:ERROR 6或者56错误提示”could not retrieve mirrorlist http://mirrorlist.centos.org ***”
- CentOS [Errno 14] PYCURL ERROR 6 错误如何解决
- [Errno 14] curl#6 - "Could not resolve host: centos.ustc.edu.cn; 未知的错误"
- CentOS 使用yum命令安装出现错误提示”could not retrieve mirrorlist http://mirrorlist.centos.org ***” - ybq155
- 解决 CentOS 7.0 在VMware 10下安装 WMware Tools错误的问题
- IIS_7.0_为宿主的网站时出现错误消息:“HTTP_Error_500.19_-_内部服务器错误”
- 当您访问在 IIS 7.0 上承载的 Web 站点时收到错误消息:"HTTP 错误 500.19 – 内部服务器错误"
- centos 6 尝鲜纪实 - [Errno 14] PYCURL ERROR 6 - ""
- yum 安装时错误 Errno 14 Couldn't resolve host 解决办法(转)
- GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-
- CentOS [Errno 14] PYCURL ERROR 6 - ""
- IIS 7.0 HTTP 错误 404.3 - Not Found解决办法
- Xcode7.0上面使用http进行请求错误
- yum 安装时错误 Errno 14 Couldn't resolve host 解决办法
- CentOS 使用yum命令安装出现错误提示”could not retrieve mirrorlist http://mirrorlist.centos.org
- 访问 IIS 7.0 SSL站点时报“HTTP 错误 403.16-禁止访问”的解决办法
- 关于yum源设置因缺代理产生Errno 14错误
- 当您访问在 IIS 7.0 上承载的 Web 站点时收到错误消息:"HTTP 错误 500.19 – 内部服务器错误"