Symptoms
The daily cPanel update fails with an error similar to the following.
[2024-04-19 04:16:02 +0700] E [/usr/local/cpanel/scripts/update-packages] The "/usr/local/cpanel/scripts/update-packages" command (process 4191455) reported error number 1 when it ended.
Description
The update-packages
script runs yum
/dnf
/apt
and will return an error if yum
/dnf
/apt
encounters an error.
Workaround
Run yum update
/dnf update
/apt update
and review the error returned. The specific error returned will have to be addressed.
Additional resources
cPanel update fails due to msodbcsql1x error while running /usr/local/cpanel/scripts/rpmup
Yum commands fail due to MariaDB repository archival.
[Imunify360]'s Yara Package Conflicting With [epel]'s, Breaks Yum Updates
CentOS/CloudLinux 8 - how to install packages via dnf that are not in enabled package streams
Error updating packages due to FleetSSL cPanel shutdown