Yum repository 'base' is absent, corrupted, or not enabled, installation may fail

Created:

2016-11-16 13:01:52 UTC

Modified:

2017-08-08 13:08:11 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Yum repository 'base' is absent, corrupted, or not enabled, installation may fail

Applicable to:

  • Plesk for Linux

Symptoms

Unable to install any or some packages using Plesk autoinstaller with errors like the following ones:

CONFIG_TEXT: WARNING: Yum repository 'base' is absent or not enabled, installation may fail.
WARNING: Yum repository 'updates' is absent or not enabled, installation may fail.

Cause

The standard CentOS repository files are missing in the /etc/yum.repos.d directory.

Resolution

Connect to the server using SSH and reinstall base repositories for your OS version. For example:

CentOS 6.7:

# cat /etc/redhat-release
CentOS release 6.7 (Final)
# yum reinstall http://vault.centos.org/6.7/os/x86_64/Packages/centos-release-6-7.el6.centos.12.3.x86_64.rpm

CentOS 7.3:

# cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
# yum install http://mirror.centos.org/centos/7/os/x86_64/Packages/centos-release-7-3.1611.el7.centos.x86_64.rpm

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