小编gro*_*uff的帖子

CentOS 8 中无法运行 yum update

我想在这篇文章的开头加上这样的免责声明:我对 yum 的功能有些不熟悉,也不熟悉自 CentOS 8 停产以来所需更改的细节。

大约一个月前,我的容器构建无法成功运行,因为当我进行 yum update 时,出现错误。我在这里找到了解决方案并将其添加到我的容器构建中:

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-*
Run Code Online (Sandbox Code Playgroud)

这让我度过了一段时间,直到今天,它似乎又崩溃了。

bash-4.4# yum update
CentOS Linux 8 - AppStream                                                                                                                                                                                   149 kB/s | 8.4 MB     00:58
CentOS Linux 8 - BaseOS                                                                                                                                                                                      113 kB/s | 4.6 MB     00:41
CentOS Linux 8 - Extras                                                                                                                                                                                      716  B/s |  10 kB     00:14
CentOS Linux 8 - PowerTools                                                                                                                                                                                  0.0  B/s |   0  B     01:26
Errors during downloading metadata for repository 'powertools':
  - Curl error (28): Timeout was reached …
Run Code Online (Sandbox Code Playgroud)

centos yum centos8

5
推荐指数
1
解决办法
2万
查看次数

标签 统计

centos ×1

centos8 ×1

yum ×1