Plesk

After November 30th, 2020, updating system packages on Plesk server with CentOS 6 fails: Cannot find a valid baseurl for repo: base

Symptoms

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.

Temporary solution to continue using server on CentOS 6 (not recommended)

  1. Connect to the server using SSH.

  2. Open the file /etc/yum.repos.d/CentOS-Base.repo for editing.

  3. Change the content of that file so it looks like below:

    [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

Exit mobile version