SSH and Yum don't work in clean CentOS 7

General support questions
gfnord
Posts: 1
Joined: 2014/09/11 19:01:38

Re: SSH and Yum don't work in clean CentOS 7

Post by gfnord » 2014/09/11 19:03:45

I use Parallels Desktop 10 and have the same problem with my VMs.

Total download size: 77 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/29): glibc-devel-2.17-55.el7_0.1.x86_64.rpm | 1.0 MB 00:00:00
Traceback (most recent call last):x86_64.rpm 34% [================================- ] 23 MB/s | 27 MB 00:00:02 ETA
File "/usr/libexec/urlgrabber-ext-down", line 75, in <module>
main()
File "/usr/libexec/urlgrabber-ext-down", line 61, in main
fo = PyCurlFileObject(opts.url, opts.filename, opts)
File "/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line 1258, in __init__
self._do_open()
File "/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line 1589, in _do_open
self._do_grab()
File "/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line 1723, in _do_grab
self._do_perform()
File "/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line 1517, in _do_perform
raise KeyboardInterrupt
KeyboardInterrupt


Exiting on user cancel


But I didn't touch the keyboard. This error occurs using SSH or directly at console.

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: SSH and Yum don't work in clean CentOS 7

Post by TrevorH » 2014/09/11 19:40:30

There is a bug in python-urlgrabber that is used by yum that results in the wrong error being generated. It was noticed during the el7 beta and reported but it appears not to have been fixed. The problem is that the mirror that you are connecting to is interrupting the connection and yum currently sees that as an error and terminates rather than just trying another mirror.

If you don't mind editing files that are meant to be owned by the rpm then you can fix this or at least mitigate its effects. Edit /usr/lib/python2.7/site-packages/urlgrabber/grabber.py and find line 1510 where it currently says

Code: Select all

            elif errcode in (42, 55, 56):
and change that back to what it was before

Code: Select all

            elif errcode == 42:
Hopefully Redhat will get around to fixing this in 7.1 or in an update to python-urlgrabber prior to that.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

walkingzen
Posts: 1
Joined: 2014/09/17 11:22:16

Re: SSH and Yum don't work in clean CentOS 7

Post by walkingzen » 2014/09/17 11:29:38

Thank you TrevorH.
It worked. I hope updated version of grabber file will be coming soon.

Thanks and Regards,
Walking Zen

Locked