Plesk on CentOS 5 cannot be updated

Created:

2017-05-15 06:29:25 UTC

Modified:

2017-08-18 23:42:06 UTC

2

Was this article helpful?


Have more questions?

Submit a request

Plesk on CentOS 5 cannot be updated

Applicable to:

  • Plesk for Linux

Symptoms

Plesk 12.0/12.5 on Centos 5 cannot be updated:

# plesk installer
..
Loaded plugins: fastestmirror
Determining fastest mirrors
RepoError: Cannot find a valid baseurl for repo: base
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/
removing mirrorlist with no valid mirrors: /var/cache/yum/base/mirrorlist.txt
ERROR: The Yum utility failed to install the required packages.
Attention! Your software might be inoperable.
Please, contact product technical support.

Trying to display the configured software repositories:

# yum repolist
Loaded plugins: fastestmirror
Determining fastest mirrors
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/
removing mirrorlist with no valid mirrors: /var/cache/yum/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base

Trying to enable modsecurity, error will show:

PLESK_ERROR: Failed to install the ModSecurity rule set: modsecurity_ctl failed: gpg: key 4520AFA9: "Atomicorp (Atomicorp Official Signing Key) <support@atomicorp.com>" not changed gpg: Total number processed: 1 gpg: unchanged: 1 gpg: Signature made Wed May 24 19:53:48 2017 SGT using RSA key ID 4520AFA9 gpg: Good signature from "Atomicorp (Atomicorp Official Signing Key) <support@atomicorp.com>" gpg: WARNING: This key is not certified with a trusted signature! gpg: There is no indication that the signature belongs to the owner. Primary key fingerprint: 1818 66DF 9DAC A40E 5B42 9B08 FFBD 5D0A 4520 AFA9 TERM environment variable not set. Cannot find a valid baseurl for repo: base Command '/bin/bash < /tmp/tmp0k_H3A/aum-plesk-installer' returned non-zero exit status 1
Unable to download tortix rule set

Cause

CentOS 5 reached its end-of-life on March 31, 2017, and the mirrors for it are no longer maintained.

Resolution

Migrate to another Plesk server with a supported OS version.

As a temporary workaround:

1. Edit /etc/yum.repos.d/CentOS-Base.repo and comment out other baseurl and the mirrorlist directives:

#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/

2. In each enabled section add:

baseurl=http://vault.centos.org/5.11/os/$basearch, baseurl=http://vault.centos.org/5.11/updates/$basearch, etc.

Additional information

Plesk Lifecycle Policy

Plesk Migration Guide

Have more questions? Submit a request
Please sign in to leave a comment.