- 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 reinstall base repositories for your OS version. In this article, there will be an example 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.