Unable to update cPanel to the latest release

dave_83

Member
Nov 10, 2016
15
2
3
Los Angeles, CA
cPanel Access Level
Root Administrator
Hello, I found some unauthorized entries under mysql remote access and I'm looking to upgrade WHM. When I try doing so, I get this error at 17%:

Code:
Running `/usr/local/cpanel/scripts/updatenow --upcp --log=/var/cpanel/updatelogs/update.1478799788.log` failed, exited with code 1 (signal = 0)
A couple FATAL errors show:
Code:
[20161110.095242] W Exit Code: 254
[20161110.095242] ***** FATAL: Test install failed:     package cpanel-perl-514-5.14.4-4.cp1146.x86_64 is already installed
Code:
[20161110.095242]   The Administrator will be notified to review this output when this script completes
[20161110.095242] ***** FATAL: Error testing if the RPMs will install: Test install failed:     package cpanel-perl-514-5.14.4-4.cp1146.x86_64 is already installed
I have tried via the CLI, and I have tried forcing the update, nothing is working.
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,222
463
Hello,

Please post the output from the following command so we can better understand your server enviorment:

Code:
grep '' /etc/redhat-release /usr/local/cpanel/version /var/cpanel/envtype ; grep CPANEL= /etc/cpupdate.conf
Thank you.
 

dave_83

Member
Nov 10, 2016
15
2
3
Los Angeles, CA
cPanel Access Level
Root Administrator
Here

Code:
/var/cpanel/envtype ; grep CPANEL= /etc/cpupdate.conf /usr/local/cpanel/version
/etc/redhat-release:CentOS release 6.8 (Final)
/usr/local/cpanel/version:11.46.1.3
/var/cpanel/envtype:virtuozzo
CPANEL=release
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,222
463
Hello,

Try running the following command to ensure there are no duplicate RPMs:

Code:
/scripts/autorepair fix_duplicate_cpanel_rpms
Thank you.
 

dave_83

Member
Nov 10, 2016
15
2
3
Los Angeles, CA
cPanel Access Level
Root Administrator
Hi, I ran that, and it did find some duplicates. But that didn't solve the problem, now I have a different error:

Code:
[20161110.144553]   All files Staged
[20161110.144553]   Testing if the newly downloaded RPMS can be installed without conflict
[20161110.144553]   Testing RPM transaction
[20161110.144553]   error: Failed dependencies:
[20161110.144553]     sendmail = 8.14.4-9.el6_8.1 is needed by (installed) sendmail-cf-8.14.4-9.el6_8.1.noarch
[20161110.144553] W Exit Code: 254
[20161110.144553] ***** FATAL: Test install failed: error: Failed dependencies:
[20161110.144553]     sendmail = 8.14.4-9.el6_8.1 is needed by (installed) sendmail-cf-8.14.4-9.el6_8.1.noarch
[20161110.144553]   The Administrator will be notified to review this output when this script completes
[20161110.144553] ***** FATAL: Error testing if the RPMs will install: Test install failed: error: Failed dependencies:
[20161110.144553]     sendmail = 8.14.4-9.el6_8.1 is needed by (installed) sendmail-cf-8.14.4-9.el6_8.1.noarch
[20161110.144553]   see http://go.cpanel.net/rpmcheckfailed for more information
[20161110.144553]   The Administrator will be notified to review this output when this script completes
[20161110.144553] E Detected events which require user notification during updatenow. Will send iContact the log
 

SysSachin

Well-Known Member
Aug 23, 2015
604
48
28
India
cPanel Access Level
Root Administrator
Twitter

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,222
463
sendmail = 8.14.4-9.el6_8.1 is needed by (installed) sendmail-cf-8.14.4-9.el6_8.1.noarch
Hello,

This isn't a package that's installed with cPanel by default. Are you using it for any specific purpose? If not, you can remove the sendmail-cf package on your system with a command such as:

Code:
rpm -e --nodeps sendmail-cf-8.14.4-9.el6_8.1.noarch
Otherwise, try temporarily adding the following entry to the "exclude=" line in your /etc/yum.conf file:

sendmail-cf*

This should address the YUM error, which you can then proceed to investigate further after the cPanel update completes.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,222
463
I'm happy to see the issue is now resolved. Thank you for updating us with the outcome.