Symptoms
Plesk update fails on server that runs a RHEL-based OS, while displaying an error that is similar to the following in the update logs:
Repository extras is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository extras is listed more than once in the configurationThe repository name is duplicated in the default CentOS repository file
/etc/yum.repos.d/CentOS-Base.repo:name=CentOS-$releasever - Extras
And in one of the custom repository files, e.g.
/etc/yum.repos.d/myrepo.repo:name=CentOS-$releasever - Extras
Cause
A duplication of the repository name within the operating system package manager configuration.
Resolution
Connect to the server via SSH
Remove the redundant repository file:
# mv /etc/yum.repos.d/myrepo.repo ~/
Clear cache of the package manager:
# yum clean all
Install Plesk updates:
# plesk installer update --repatch