repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: mirrors.cloud.aliyuncs.com
yum安装报错,一直在尝试其他镜像然后报下面这个错误
mirrors.njupt.edu.cn/centos/7.7.1908/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - “Could not resolve host: mirrors.cloud.aliyuncs.com; 未知的错误”
或
http://mirrors.aliyun.com/non-supported/rhel/7/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
正在尝试其它镜像。
1.删除老仓库文件
cd /etc/yum.repos.d
rm .
2.卸载yum包
rpm -qa yum yum-3.4.3-150.el7.centos.noarch
卸载安装组件
rpm -qa | grep yum | xargs rpm -e --nodeps
rpm -qa yum
3.下载最新的rpm包
在http://mirrors.163.com/centos/7/os/x86_64/Packages/ 这个目录下 找最新的rpm包,并下载。
yum-最新版.centos.noarch.rpm
我下载的是:
链接: http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-3.4.3-168.el7.centos.noarch.rpm.
yum-metadata-parser-最新版.x86_64.rpm
我下载的是:
链接: http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-metadata-parser-1.1.4-10.el7.x86_64.rpm.
yum-plugin-fastestmirror-最新版.noarch.rpm
我下载的是:
链接: http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.31-54.el7_8.noarch.rpm.
下载 wget 跟你找到最新软件包名称
4 安装yum
rpm -ivh yum-*
查看安装是否成功
rpm -qa yum
5. 导入证书
rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-7
6.添加阿里的源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
7.清除缓存 生成新的缓存
yum clean all
yum makecache
标签:x86,centos,rpm,yum,com,报错,64,安装 From: https://www.cnblogs.com/chengfo/p/17036830.html