我刚刚在我的电脑上安装了CentOS 7。安装完成后,我尝试使用yum update
命令更新CentOS:
Downloading packages:
No Presto metadata available for base
warning: /var/cache/yum/x86_64/7/base/packages/dhclient-4.2.5-36.el7.centos.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Public key for dhclient-4.2.5-36.el7.centos.x86_64.rpm is not installed
(1/320): dhclient-4.2.5-36.el7.centos.x86_64.rpm | 278 kB 00:03
(2/320): dhcp-common-4.2.5-36.el7.centos.x86_64.rpm | 171 kB 00:04
(3/320): dmraid-events-1.0.0.rc16-25.el7.x86_64.rpm | 21 kB 00:01
(4/320): dmraid-1.0.0.rc16-25.el7.x86_64.rpm | 150 kB 00:02
(5/320): dhcp-libs-4.2.5-36.el7.centos.x86_64.rpm | 127 kB 00:02
Traceback (most recent call last): ] 508 kB/s | 5.3 MB 09:41 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
显示此错误:
No Presto metadata available for base
为什么会出现此错误?
答案 0 :(得分:3)
此问题是由于urlgrabber python脚本中的错误引起的: 要缓解此问题,您可以编辑/usr/lib/python2.7/site-packages/urlgrabber/grabber.py中的第1510行
然后更换行号1510:
elif errcode in (42, 55, 56):
用这个:
elif errcode == 42:
我最近遇到了这个问题,并在CentOS论坛中找到了这个解决方案,您可以在其中详细了解该问题:https://www.centos.org/forums/viewtopic.php?f=47&t=47372&start=10