centos8常见报错处理

faild to download metadata for repo 'appstream'

具体报错如下

Failed to set locale, defaulting to C.UTF-8
CentOS Linux 8 - AppStream                                                                                                                                          52  B/s |  38  B     00:00    
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist

解决办法:执行如下命令将昂快更改成使用centos stream 8

dnf --disablerepo '*' --enablerepo=extras swap centos-linux-repos centos-stream-repos dnf distro-sync

你可能感兴趣的:(centos,stream,linux,docker)