If your server uses CloudLinux, you may be trying to install cPanel fresh or update to the latest version when you receive an error that the update could not complete. An error similar to the following will be in the cPanel update logs:
[2022-05-24 00:39:39 -0700] E Sysup: Needed system packages were not installed: perl-IO-Tty, perl-Try-Tiny, perl-YAML-Syck
This often happens due to a yum plugin required by CloudLinux called "rhnplugin" becoming disabled. Certain packages have dependencies that are only served by this plugin, and when they cannot be installed or updated, the cPanel update fails.
- Make a copy of the rhnplugin's configuration file:
cp -pv /etc/yum/pluginconf.d/rhnplugin.conf /etc/yum/pluginconf.d/rhnplugin.conf.BAK
- Use your favorite text editor to change the line "
enabled = 0" to "
enabled = 1"
- Run the cPanel update again, the error should no longer occur: