- Plesk for Linux
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.
Plesk update fails with the following error:
PLESK_ERROR: There are no enabled Yum repositories. Installation is not possible.
The standard CentOS repository files are missing in the
/etc/yum.repos.d/ directory or
base repositories are disabled.
Connect to the server using SSH and enable base repositories as described here: 8.4.5. ADDING, ENABLING, AND DISABLING A YUM REPOSITORY
In case the repositories are not presented on the server at all, restore the default one from another server.
In this article, there is an example of restoring the repositories for Centos 7.5
- Log into the server via SSH.
- Find the package that is responsible for repositories:
# yum search centos-release
centos-release.x86_64 : CentOS Linux release file
- Remove this package without dependencies:
# rpm -e centos-release --nodeps
- Get the link to the package from the CentOS repository and install it as in example below:
# rpm -Uvh http://mirror.centos.org/centos/7/os/x86_64/Packages/centos-release-7-5.1804.el7.centos.x86_64.rpm
Note: Same actions are applicable for CentOS 6, but with the different links.
In case the error occurs on CentOS 5, check the following article: Plesk update on CentOS 5 fails: RepoError: Cannot find a valid baseurl for repo: base