|-摘 Centos8 更新yum或安装软件时提示 Failed to download metadata for repo 'PowerTools':(已解决)
Cannot prepare internal mirrorlist: No URLs in mi|||Centos8更换yum源
Centos8 更新yum或安装软件时提示 Failed to download metadata for repo 'PowerTools': Cannot prepare internal mirrorlist: No URLs in mi
网上查到了最终的解决办法
Step 1:Go to the/etc/yum.repos.d/
directory.
[root@autocontroller ~]# cd /etc/yum.repos.d/
Step 2:Run the below commands
[root@autocontroller ~]# sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
[root@autocontroller ~]# sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
Step 3:Now run the yum update
[root@autocontroller ~]# yum update -y
That’s it! ...
浏览更多内容请先登录。
立即注册
更新于:2022-04-21 10:13:27
相关内容
Centos7利用yum安装apache+mysql8+php7 一篇搞定!
Centos 服务器搭建(Centos8服务器搭建遇到的各种问题及解决方法)
Centos8 更新yum或安装软件时提示 Failed to download metadata for repo...
从CentOS 8到CentOS Stream,到底发生什么事了?
CentOS8出现“ Error: Failed to download metadata for repo ‘AppStrea...
如何将CentOS 8转换为CentOS Stream(202205实测有效)
Centos中查看nginx、apache、php、mysql配置文件路径
Centos7 安装Apache过程详解
推荐内容