Failed to download metadata for repo 'appstream' CentOS

Вывод команды с ошибкой:

[root@tdshost var]# dnf install bind bind-utils
CentOS Linux 8 - AppStream                                                                              235  B/s |  38  B     00:00
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist

Выполняем переход в каталог конфигурации репозиториев

[root@tdshost var]# cd /etc/yum.repos.d/ 

Выполняем замену с помощью двух команд:

[root@tdshost yum.repos.d]# sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
[root@tdshost yum.repos.d]# sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* 

Выполняем установку нужных пакетов:

[root@tdshost yum.repos.d]# dnf install bind bind-utils
CentOS Linux 8 – AppStream 4.0 MB/s | 8.4 MB 00:02
CentOS Linux 8 – BaseOS 4.3 MB/s | 4.6 MB 00:01
CentOS Linux 8 – Extras 29 kB/s | 10 kB 00:00
Extra Packages for Enterprise Linux 8 – x86_64 102 kB/s | 23 kB 00:00
Extra Packages for Enterprise Linux 8 – x86_64 4.0 MB/s | 11 MB 00:02
Extra Packages for Enterprise Linux Modular 8 – x86_64 115 kB/s | 28 kB 00:00
Extra Packages for Enterprise Linux Modular 8 – x86_64 1.2 MB/s | 1.0 MB 00:00
Package bind-utils-32:9.11.26-6.el8.x86_64 is already installed.
Dependencies resolved.
==================================================================================================================================== Package Architecture Version Repository Size
====================================================================================================================================
Installing: bind x86_64 32:9.11.26-6.el8 appstream 2.1 M

Transaction Summary
====================================================================================================================================
Install 1 Package

Total download size: 2.1 M
Installed size: 4.5 M
Is this ok [y/N]: y
Downloading Packages:
bind-9.11.26-6.el8.x86_64.rpm 3.1 MB/s | 2.1 MB 00:00
————————————————————————————————————————————————————————————————————
Total 3.1 MB/s | 2.1 MB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction Preparing : 1/1 Running scriptlet: bind-32:9.11.26-6.el8.x86_64 1/1 Installing : bind-32:9.11.26-6.el8.x86_64 1/1 Running scriptlet: bind-32:9.11.26-6.el8.x86_64 1/1 Verifying : bind-32:9.11.26-6.el8.x86_64 1/1

Installed: bind-32:9.11.26-6.el8.x86_64

Complete!

Проблема решена.


← Старые Новые →