Applicable to:
- Plesk for Linux
Symptoms
-
Plesk is installed on a server with CentOS 6.
-
After November 30th, 2020, updating system packages in Tools & Settings > System Updates fails:
PLESK_ERROR: INFO: pum is called with arguments: ['--list', '--repo-info', '--json']
ERROR: Cannot find a valid baseurl for repo: base
ERROR: Exited with returncode 1.Updating Plesk also fails with the same error.
-
Updating packages manually in the server console using YUM also fails:
CONFIG_TEXT: YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/extras/mirrorlist.txt
Cause
CentOS 6 reached its end-of-life on November 30th, 2020.
Since that date, repositories for that OS are available only at https://vault.centos.org/.
Resolution
Deploy a new Plesk server with a supported operating system and migrate to it using Plesk Migrator.
-
Connect to the server using SSH.
-
Open the file
/etc/yum.repos.d/CentOS-Base.repo
for editing. -
Change the content of that file so it looks like below:
CONFIG_TEXT: [base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
baseurl=http://vault.centos.org/6.10/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
[updates]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
baseurl=https://vault.centos.org/6.10/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
[extras]
name=CentOS-$releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
baseurl=https://vault.centos.org/6.10/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Comments
0 comments
Please sign in to leave a comment.