Applicable to:
- Plesk for Linux
Symptoms
-
On a Plesk for Linux server, checking for system updates in Tools & Settings > System Updates fails:
PLESK_ERROR: Error: Unable to receive update information for the package(s)
-
Plesk Installer, or system update, or installing ASP.NET Core versions in the .NET Toolkit extension fails with the error message:
CONFIG_TEXT: failure: repodata/repomd.xml from mariadb: [Errno 256] No more mirrors to try.
http://yum.mariadb.org/10.1/centos7-amd64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
CONFIG_TEXT: failure: repodata/repomd.xml from mariadb: [Errno 256] No more mirrors to try.
http://yum.mariadb.org/10.2/centos7-amd64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
PLESK_WARN: There are no products for your operating system
( 'CentOS' 'Linux' '7.9.2009' 'x86_64' ) available
from the selected source.
You can try using another source
Cause
Due to the fact that MariaDB 10.1, 10.2, and 10.3 reached their end-of-life, the vendor have moved corresponding repositories to archive.
Resolution
It is strongly recommended to upgrade MariaDB server to the supported one (10.4 - 10.6, 10.11) using the steps from the article How to upgrade MySQL 5.5 to 5.6/5.7 or MariaDB 5.5 to 10.x on Linux?
If the upgrade is not possible for some reasons, apply the following workaround:
Warning: Applying the workaround is done with taking the risk of not getting further security updates for MariaDB.
-
Connect to the Plesk server using SSH.
-
Open the MariaDB repository file in a text editor. In this example, the vi editor is used:
# vi /etc/yum.repos.d/MariaDB.repo
-
Modify the option
baseurl
as described below:-
For MariaDB 10.1:
Note: 10.1.48 is the latest version in MariaDB 10.1 series. Example below is for CentOS 7.
CONFIG_TEXT: [mariadb]
name = MariaDB
baseurl = https://archive.mariadb.org/mariadb-10.1.48/yum/centos7-amd64/
gpgkey = https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgheck = 1
enabled = 1 -
For MariaDB 10.2:
CONFIG_TEXT: [mariadb]
name = MariaDB
baseurl = https://archive.mariadb.org/mariadb-10.2.44/yum/centos7-amd64/
gpgkey = https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgheck = 1
enabled = 1 -
For MariaDB 10.3:
CONFIG_TEXT: [mariadb]
name = MariaDB
baseurl = https://archive.mariadb.org/mariadb-10.3.39/yum/centos7-amd64/
gpgkey = https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgheck = 1
enabled = 1
-
-
Save the changes and close the file.
-
Rerun Plesk/system update.
Comments
0 comments
Please sign in to leave a comment.