Introduction

備忘録。

2021年12月31日に EOL を迎えた CentOS 8 で yum を使うと、こんなエラーが出た。

1
2
3
4
5
6
$ yum update
Repository AppStream is listed more than once in the configuration
Repository BaseOS is listed more than once in the configuration
CentOS-8 - AppStream 70 B/s | 38 B 00:00
Failed to download metadata for repo 'AppStream'
Error: Failed to download metadata for repo 'AppStream'

How to resolve?

単純にリポジトリの url が無効になっているというだけなので変更して対応する。
下記コマンドを実行。

1
2
$ 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-*;

変更後、エラーがなくなったのを確認。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$ yum update
CentOS-8 - AppStream 9.5 MB/s | 8.4 MB 00:00
CentOS-8 - Base 13 MB/s | 4.6 MB 00:00
CentOS-8 - Extras 49 kB/s | 10 kB 00:00
Docker CE Stable - x86_64 171 kB/s | 31 kB 00:00
Error:
Problem: package podman-3.3.1-9.module_el8.5.0+988+b1f0b741.x86_64 requires runc >= 1.0.0-57, but none of the providers can be installed
- package containerd.io-1.6.10-3.1.el8.x86_64 conflicts with runc provided by runc-1.0.0-60.rc8.module_el8.1.0+237+63e26edc.x86_64
- package containerd.io-1.6.10-3.1.el8.x86_64 obsoletes runc provided by runc-1.0.0-60.rc8.module_el8.1.0+237+63e26edc.x86_64
- package containerd.io-1.6.10-3.1.el8.x86_64 conflicts with runc provided by runc-1.0.2-1.module_el8.5.0+911+f19012f9.x86_64
- package containerd.io-1.6.10-3.1.el8.x86_64 obsoletes runc provided by runc-1.0.2-1.module_el8.5.0+911+f19012f9.x86_64
- cannot install the best update candidate for package runc-1.0.0-60.rc8.module_el8.1.0+237+63e26edc.x86_64
- cannot install the best update candidate for package podman-1.4.2-5.module_el8.1.0+237+63e26edc.x86_64
- package runc-1.0.0-66.rc10.module_el8.5.0+1004+c00a74f5.x86_64 is excluded
- package runc-1.0.0-72.rc92.module_el8.5.0+1006+8d0e68a2.x86_64 is excluded
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)