之前從centos 8 升到 centos 8 stream 的几器最近無法更新
出現以下訊息
[root@localhost ~]# dnf -y update
Failed to set locale, defaulting to C.UTF-8
CentOS Linux 8 - AppStream 51 B/s | 38 B 00:00
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
重新執行以下指令
dnf --disablerepo '*' --enablerepo extras swap centos-linux-repos centos-stream-repos
dnf distro-sync
再 dnf -y update 就正常了
沒有留言:
張貼留言