http://mirrors.163.com/centos/7.6.1810/os/x86_64/repodata/repomd.xml: [Errno 14]

执行

vi /etc/yum.repos.d/CentOS-Base.repo

里面内容都清楚,然后把下面的复制粘贴上

# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[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

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
cat /etc/sysconfig/network-scripts/ifcfg-ens33

查看这四项是否正确

原文地址:https://www.cnblogs.com/King-boy/p/11610925.html

时间: 2024-10-31 22:34:26

http://mirrors.163.com/centos/7.6.1810/os/x86_64/repodata/repomd.xml: [Errno 14]的相关文章

[linux]Error: failure: repodata/repomd.xml from fedora: [Errno 256] No more mirrors to try.

在使用fedora17 系统的yum源的时候出现了如下错误: Error: failure: repodata/repomd.xml from fedora: [Errno 256] No more mirrors to try. 参照网上的做法: (一般yum有变更都需要这两个操作) yum clean all yum clean metadata 然后在使用 yum update 还是错误. 仔细看下错误: http://download.fedoraproject.org/pub/fedo

fedora18 [linux]Error: failure: repodata/repomd.xml from fedora: [Errno 256] No more mirrors to try.

在使用fedora17 系统的yum源的时候出现了如下错误: Error: failure: repodata/repomd.xml from fedora: [Errno 256] No more mirrors to try. 参照网上的做法: (一般yum有变更都需要这两个操作) [javascript] view plain copy print? yum clean all [javascript] view plain copy print? yum clean metadata 然

http://mirror.centos.org/centos/7.2.1511/os/x86_64/Packages/, 开源软件清单list

http://mirror.centos.org/centos/7.2.1511/os/x86_64/Packages/ http://vault.centos.org/7.2.1511/os/Source/SPackages/ Name Last modified Size Description Parent Directory   -   389-ds-base-1.3.4.0-19.el7.x86_64.rpm 2015-11-25 14:10 1.7M   389-ds-base-de

ftp://fr2.rpmfind.net/linux/centos/7.2.1511/os/x86_64, 开源软件清单list

ftp://fr2.rpmfind.net/linux/centos/7.2.1511/os/x86_64 Index of /linux/centos/7.2.1511/os/x86_64/Packages/ Name Size [parent directory]   389-ds-base-1.3.4.0-19.el7.x86_64.rpm 1.7 MB 389-ds-base-devel-1.3.4.0-19.el7.x86_64.rpm 178 kB 389-ds-base-libs-

Error: failure: repodata/repomd.xml from fedora: [Errno 256] No more mirrors to try.

记录一个小问题,重新买的linux换yum源的时候一直提示: Error: failure: repodata/repomd.xml from fedora: [Errno 256] No more mirrors to try. 一直说那个XML文件不存在,以为是yum源是去读取xml当中的数据然后去下载.确实自己去访问也是404.还以为是这阵子开会yum源都搞不能用了怎么.之前我用阿里用的挺好的. 搞来搞去.一恼火/yum.repos.d/目录下的文件全tmd删了.然后TMB的就可以用了.

CentOS yum 命令出现 [Errno 14] curl#6 - "Couldn't resolve host ..." 的解决方法

安装svn的时候,发现报错说一个地址无法訪问. # yum list | grep subversion http://opensource.wandisco.com/centos/7/svn-1.8/RPMS/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Couldn't resolve host 'opensource.wandisco.com'" 正在尝试其他镜像. One of the configured repositor

CentOS yum 命令出现 [Errno 14] curl#6 - "Couldn't resolve host ..." 的解决方法

安装svn的时候,发现报错说一个地址无法访问. # yum list | grep subversion http://opensource.wandisco.com/centos/7/svn-1.8/RPMS/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Couldn't resolve host 'opensource.wandisco.com'" 正在尝试其它镜像. One of the configured repositor

RHEL6使用163网站CentOS的对应版本作为yum源

#查看是否安装yum # rpm -qa | grep yum [[email protected] ~]# rpm -qa | grep yum #寻找适合自己操作系统的yum安装包(可以通过浏览器, 来翻开寻找)# http://mirror.centos.org/centos-6/6.5/os/x86_64/Packages/yum-3.2.29-40.el6.centos.noarch.rpm [[email protected] huxiaoming]# wget http://mir

CentOS系统yum源使用报错:Error: Cannot retrieve repository metadata (repomd.xml) for repository: rpmforge.

服务器上的yum突然不好使用,使用yum的时候报错如下:[[email protected] src]# yum list......Could not retrieve mirrorlist http://mirrorlist.repoforge.org/el6/mirrors-rpmforge error was14: PYCURL ERROR 7 - "couldn't connect to host"http://apt.sw.be/redhat/el6/en/x86_64/r