Symptoms
Package updates on CloudLinux 7 operating systems fail with errors similar to the following:
* 2024-10-31 22:21:17 (7675) [INFO] Error: Invalid version flag: if
* 2024-10-31 22:21:17 (7675) [INFO] (XID dynaau) �/usr/bin/yum� reported error code �1� when it ended:
* 2024-10-31 22:21:17 (7692) [INFO]
* 2024-10-31 22:21:17 (7581) [INFO] Sending notification: Failed to update to CloudLinux 8
Description
This issue occurs when the wrong release file is installed on CloudLinux 7.
Workaround
- Connect to the server via SSH as "root".
-
Reinstall the OS release file with the following command:
rpm -Uhv --nodeps --force --ignoreos https://repo.cloudlinux.com/cloudlinux/7.9/os/x86_64/Packages/cloudlinux-release-7.9-1.el7.x86_64.rpm
- Move any
almalinux*
repo files in/etc/yum.repos.d/
out of the way:mv -vi /etc/yum.repos.d/almalinux-*{,.bkp}
- Re-register the server in CLN:
/usr/sbin/clnreg_ks --force
Comments
0 comments
Article is closed for comments.