I have seen recent cPanel upgrade throwing errors are below :
root@server [~]# /scripts/upcp
/scripts/upcp syntax OK
Running Futex Check/Fix……Done
Undefined subroutine &Cpanel::Update::automatic_updates_enabled called at /scripts/upcp line 273.
This can be fixed using below :
wget -O /root/updatenow.static http://httpupdate.cpanel.net/cpanelsync/RELEASE/scripts/updatenow.static && perl /root/updatenow.static --manual
Upgrade the cPanel :
/scripts/upcp --force
This should fix the issue 🙂