0
点赞
收藏
分享

微信扫一扫

Linux常见问题

钎探穗 2022-02-04 阅读 99
[root@localhost ~]# yum -y install epel-release && yum -y update
CentOS Linux 8 - AppStream                                                                                                                                                     60  B/s |  38  B     00:00
错误:为 repo 'appstream' 下载元数据失败 : Cannot prepare internal mirrorlist: No URLs in mirrorlist

解决方法:

运行一下命令,就能解决:

sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-*

sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-Linux-*

之后,不会收到更新,需要重新安装包,运行下面安装包:

sudo dnf install centos-release-stream -y
sudo dnf swap centos-{linux,stream}-repos -y
sudo dnf distro-sync -y
举报

相关推荐

linux系统常见问题

麒麟Linux常见问题

Linux常见问题记录

常见问题

mysql常见问题

ZigBee常见问题

go常见问题

0 条评论