If you get the following error while running the script following is the solution:
root [~]# /scripts/updatenow
Updating /scripts…rsync: failed to connect to rsync.cpanel.net: No route to host
rsync error: error in socket IO (code 10) at client-server.c(83)
Done
===================================
This error is caused when you have a firewall blocking connections to and from the cPanel
the server on ports 2080-2099. You should allow all outgoing connections through ports 2080 to 2099.
Most likely after you resolve this, you will also need to run these commands as root:
/usr/local/cpanel/cpkeyclt
rm -f /usr/local/cpanel/cpanel
/scripts/upcp