Symptoms
When running ELevate, you encounter an error similar to the following.
* 2024-11-20 17:31:00 (5627) [ESC[31mERRORESC[0m] 127 package(s) installed from unsupported YUM repo 'centos7-els' from /etc/yum.repos.d/centos7-els.repo
Description
The ELevate script doesn't support the CentOS ELS repositories. Those repositories must be removed, and the packages installed from those repositories must be reinstalled from the supported repositories.
Workaround
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Remove the
els-define
package.yum remove els-define
- Remove the
centos-els-release
package.rpm -e --justdb --nodeps centos-els-release
- Remove the ELS token.
rm -rf /etc/yum/vars/elstoken
- Disable the CentOS ELS repos.
yum-config-manager --disable centos7-els*
yum-config-manager --disable centos7els*
- Remove the CentOS ELS repo file.
rm /etc/yum.repos.d/centos7-els.repo
- Clear the YUM cache.
yum clean all
yum clean metadata
rm -rf /var/cache/yum/*
- Rebuild the YUM cache.
yum makecache
- Reinstall the packages that were installed from the ELS repos.
yum distro-sync
Comments
0 comments
Article is closed for comments.