Applicable to:
- Plesk for Linux
Symptoms
-
After January 31st, 2022, updating Plesk or system packages either via Tools & Settings > System Updates or manually with
dnf update
on a server with CentOS 8 fails:PLESK_ERROR: Failed to check system configuration - Yum utility finished with errors. Installation may fail.
dnf.exceptions.RepoError: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
Plesk pre-upgrade check
Error: Cache-only enabled but no cache for 'appstream'
WARNING: Unable to detect package duplicates: /usr/bin/package-cleanup --dupes returns 1.Output is:Note: repository name in the error may be different, for example,
baseos
orpowertools
. -
In the Tools & Settings > Updates menu buttons may be greyed out and the following error may be present:
PLESK_WARN: There are no products for your operating system
( 'CentOS' 'Linux' '8.2.2004' 'x86_64' ) available
from the selected source.
Cause
CentOS 8 reached its end-of-life on December 31st, 2021, and thus, since January 31st, 2022, repositories for that OS were disabled by its vendor and archived to https://vault.centos.org/.
Resolution
Use one of the solutions:
-
Convert the server in-place to AlmaLinux 8 (recommended), Rocky Linux 8, or CloudLinux 8 (note that CloudLinux is a paid OS).
-
Deploy a new Plesk server with a supported operating system and migrate to it using Plesk Migrator.
-
Temporary solution: configure archived repositories (not recommended)
-
Connect to the server using SSH.
-
Edit the files
/etc/yum.repos.d/CentOS-Linux-AppStream.repo
,/etc/yum.repos.d/CentOS-Linux-BaseOS.repo
, and/etc/yum.repos.d/CentOS-Linux-PowerTools.repo
so they look like below:-
/etc/yum.repos.d/CentOS-Linux-AppStream.repo
:[appstream]
name=CentOS Linux $releasever - AppStream
baseurl=http://vault.centos.org/$contentdir/$releasever/AppStream/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial -
/etc/yum.repos.d/CentOS-Linux-BaseOS.repo
:[baseos]
name=CentOS Linux $releasever - BaseOS
baseurl=http://vault.centos.org/$contentdir/$releasever/BaseOS/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial -
/etc/yum.repos.d/CentOS-Linux-PowerTools.repo
:[powertools]
name=CentOS Linux $releasever - PowerTools
baseurl=http://vault.centos.org/$contentdir/$releasever/PowerTools/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
-
-
Comments
3 comments
The temporary solution does not work:
Errors during downloading metadata for repository 'AppStream':
- Status code: 404 for http://asi-fs-n.contabo.net/centos/8/AppStream/x86_64/os/repodata/repomd.xml (IP: 79.143.183.106)
Error: Failed to download metadata for repo 'AppStream': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Hi @Ignacio Ortiz de Zúñiga!
You still have some mirror "asi-fs-n.contabo.net" in the URL instead of "vault.centos.org".
So, I recommend you to check that you have the below line in the file /etc/yum.repos.d/CentOS-Linux-AppStream.repo and don't have lines that start with "mirror" or "mirrorlist":
A few days ago, the mirror of Cent OS 8 was deactivated. For this reason, it may happen that you can no longer install packages because the package source is not found. In this case please change the source under /etc/yum.repos.d to another mirror. All available mirrors can be found at https://www.centos.org/download/mirrors/.
Please sign in to leave a comment.