Bobcares

Updating Plesk or system packages on CentOS 8 server fails

by | Apr 25, 2022

Stuck with Updating Plesk or system packages on CentOS 8 server fails? We can help you.

At Bobcares, we offer solutions for every query, big and small, as a part of our Server Management Service.

Let’s take a look at how our Support Team assist with this query.

How to resolve Updating Plesk or system packages fails?

Plesk is a commercial web hosting and server data center automation software with a control panel developed for Linux and Windows-based retail hosting service providers.

Plesk automates various tasks and processes on a single or multiple servers.

Basically, after updating Plesk or system packages either via Tools & Settings > System Updates or manually with dnf update on a server with CentOS 8 fails with below 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:

Today, let us see the steps followed by our Support techs to resolve it:

  • Convert the server in-place to AlmaLinux 8, 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.
    1. Firstly, connect to the server using SSH.
    2. Then, 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

[Looking for a solution to another query? We are just a click away.]

Conclusion

To sum up, our skilled Support Engineers at Bobcares demonstrated how to resolve Updating Plesk or system packages.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.