99问答网
所有问题
centos7用yum安装httpd出错显示repo 'AppStream'下载元数据失败怎么解决?
如题所述
举报该问题
推荐答案 2020-04-16
错误:为 repo ‘base’ 下载
元数据
失败
解决方法:
大家可以按照如下流程修改源
1.备份现有源
mv /etc/yum.repos.d /etc/yum.repos.d.backup
2.设置新的yum目录
mkdir /etc/yum.repos.d
3.安装wget(我没安装,也没事,可能是我以前安装过)
yum install -y wget
4.就是坑了我一晚上的下载配置(大家一定要区分自己的系统版本,不然肯定不通过)
CentOS 5
wget -O /etc/yum.repos.d/CentOS-Base.repo
http://mirrors.aliyun.com/repo/Centos-5.repo
CentOS 6
wget -O /etc/yum.repos.d/CentOS-Base.repo
http://mirrors.aliyun.com/repo/Centos-6.repo
CentOS 7
wget -O /etc/yum.repos.d/CentOS-Base.repo
http://mirrors.aliyun.com/repo/Centos-7.repo
CentOS 8
wget -O /etc/yum.repos.d/CentOS-Base.repo
http://mirrors.aliyun.com/repo/Centos-8.repo
5.清除文件并重建元数据缓存
yum clean all
yum makecache
6.最后更新软件包,这一步要下载安扎ung或升级一百多个软件包,比较费时间,大概三五分钟吧!
yum update -y
原文链接:
https://blog.csdn.net/VictorIs/article/details/104400362/
温馨提示:答案为网友推荐,仅供参考
当前网址:
http://99.wendadaohang.com/zd/WOOjtjttzetWjBveBeO.html
相似回答
linux搭建本地
yum
仓库,提示为
repo下载元数据失败怎么
办?
答:
1,仓库名不要用空格分开。2,确定ios版本与当前系统一致。清除文件并重建元数据缓存
一起学习linux yum clean all yum makecache
大家正在搜
centos7安装yum
centos安装yum命令
centos本地yum源安装
centos7挂载本地yum源
centos和ubuntu哪个好
yum centos
centos7本地yum源
centos7更换yum源
centos7本地yum源搭建
相关问题
软件,硬件,网络,操作系统的关系是什么
网络软件的网络操作系统
网络操作系统与网络应用软件有何区别
网络软件一般包括网络操作系统、_______(填空)、通信软...
网络操作系统都有那些?
操作系统为什么不能像软件一样通过网络更新
什么是网络操作系统网络
网络操作系统是计算机系统软件吗