After running cPanel updates, the below error appeared in the log files:
cPanel updates will try to ensure system requirements are installed during updates. If the system requirements cannot be updated or installed with YUM, the cPanel update will fail. In the above error message, the primary issue is the duplicate packages causing the process "/usr/bin/yum" to exit with error code 1.
This issue can usually be resolved a few different ways via SSH commands, but the most common are listed below.
Note: It is recommended that a certified systems administrator performs the below methods.
1. Repair the duplicate packages by completing any unfinished transactions.
Note: This command may indicate several transactions aren't complete. This means you may need to run the command several times until all transactions are completed. After the transactions are completed successfully, feel free to try the cPanel update once more.
2. Resolve the duplicate packages
To determine if your system has duplicate packages installed, use the following command:
If the above command lists any packages, you can then remove the duplicates with the following command:
If this command is successful, you have removed the duplicate packages from your system. Please re-attempt the cPanel update that resulted in this error initially.