Docker/centos:修订间差异
来自康健生活
< Docker
创建页面,内容为“{{shc|<syntaxhighlight lang="bash"> yum clean all</syntaxhighlight>|$|/home/kangkk}}” |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
{{shc|<syntaxhighlight lang="bash"> | {{shc|<syntaxhighlight lang="bash"> | ||
yum clean all</syntaxhighlight>|$|/home/kangkk}} | yum clean all</syntaxhighlight>|$|/home/kangkk}} | ||
== error == | |||
1. <pre> | |||
Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist...</pre> | |||
{{shc|<syntaxhighlight lang="bash"> | |||
cd /etc/yum.repos.d/ | |||
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* | |||
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* | |||
yum makecache | |||
yum update -y | |||
</syntaxhighlight>|$|/home/kangkk}} | |||
2023年6月27日 (二) 04:20的版本
/home/kangkk
yum clean all
error
1.
Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist...
/home/kangkk
cd /etc/yum.repos.d/
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
yum makecache
yum update -y
No categories