1) Check your /etc/resolv.conf. If its missing valid nameservers this can be the cause
dig . NS
If this times out then this is the problem. You have to fix your /etc/resolv.conf
2) Make sure you aren’t missing perl modules or have 11.x scripts on a 10.x machine
run
/scripts/perlinstaller File::Copy::Recursive
/usr/local/cpanel/bin/checkperlmodules –bootstrap
/usr/local/cpanel/bin/checkperlmodules –full
If you want to keep 10.x:
echo “CPANEL=stable” >> /etc/cpupdate.conf
/scripts/upcp –force