centos6.10 yum报错解决办法
下载软件或者yum makecache时会报错(或者类似错误)
我试了很多方法,最后重装成功了
1.卸载之前的yum
rpm -qa|grep yum|xargs rpm -e --allmatches --nodeps
rm -rf /etc/yum.repos.d/*
whereis yum|xargs rm -rf
2.安装yum
a.创建yum目录,存rpm包
mkdir /usr/local/src/yum
b.切换到yum目录
cd /usr/local/src/yum/
c.下载rpm包
wget https://mirrors.aliyun.com/centos-vault/6.10/os/x86_64/Packages/yum-3.2.29-81.el6.centos.noarch.rpm
wget https://mirrors.aliyun.com/centos-vault/6.10/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
wget https://mirrors.aliyun.com/centos-vault/6.10/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-41.el6.noarch.rpm
d.rpm安装yum
rpm -ivh yum-*
3.测试结果
yum
有结果即可
4.配置阿里云源
cd /etc/yum.repos.d
wget http://mirrors.aliyun.com/repo/Centos-vault-6.10.repo?spm=a2c6h.25603864.0.0.3d975969BCUhhv
mv ./Centos-vault-6.10.repo\?spm\=a2c6h.25603864.0.0.3d975969BCUhhv CentOS-Base.repo
把刚才下载下来的文件重命名为CentOS-Base.repo
yum makecache
完成
标签:centos6.10,6.10,repo,yum,vault,报错,rpm From: https://www.cnblogs.com/chunyouqudongwuyuan/p/16977711.html