Yum failed whilst installing cPanel

Meerkat

Member
Dec 1, 2011
10
0
51
cPanel Access Level
Root Administrator
Hello,

I've just tried installing cPanel on my VPS, during the installation it fails and returns this error:

2011-12-01 11:40:24 240 (DEBUG): Trying other mirror.
2011-12-01 11:40:24 240 (DEBUG): http://pubmirrors.reflected.net/cen.../kernel-headers-2.6.18-274.12.1.el5.i386.rpm: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
2011-12-01 11:40:24 240 (DEBUG): Trying other mirror.
2011-12-01 11:40:24 240 (DEBUG): http://yum.singlehop.com/CentOS/5.7/updates/i386/RPMS/kernel-headers-2.6.18-274.12.1.el5.i386.rpm: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
2011-12-01 11:40:24 240 (DEBUG): Trying other mirror.
2011-12-01 11:40:24 240 (DEBUG):
2011-12-01 11:40:24 240 (DEBUG):
2011-12-01 11:40:24 240 (DEBUG): Error Downloading Packages:
2011-12-01 11:40:24 240 (DEBUG): kernel-headers-2.6.18-274.12.1.el5.i386: failure: RPMS/kernel-headers-2.6.18-274.12.1.el5.i386.rpm from updates: [Errno 256] No more mirrors to try.
2011-12-01 11:40:24 240 (DEBUG):
2011-12-01 11:40:24 240 (ERROR): - ssystem [EXIT_CODE] '/usr/bin/yum' exited with 1 (ignored)
2011-12-01 11:40:24 240 (DEBUG): - ssystem [END]
2011-12-01 11:40:24 244 (FATAL): yum failed 6 times. Cannot continue!
yum works fine when named is running, but cPanel appears to shut it down prior to installing, is there any work around for this?
 

NixTree

Well-Known Member
Aug 19, 2010
413
5
143
Gods Own Country
cPanel Access Level
Root Administrator
Twitter
Hello,

Yes, it looks like you have some name resolution issues on the server. Just run the following commands on your server and it will resolve the name resolution issues ( it will set up the name servers for your server ).

#echo "nameserver 8.8.8.8" >> /etc/resolv.conf
#echo "nameserver 8.8.4.4" >> /etc/resolv.conf

Thank you,
Nibin.