当我运行yum update
或 时yum install
,我收到以下错误:
Traceback (most recent call last):
File "/bin/yum", line 29, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 355, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 261, in main
return_code = base.doTransaction()
File "/usr/share/yum-cli/cli.py", line 670, in doTransaction
problems = self.downloadPkgs(downloadpkgs, callback_total=self.download_callback_total_cb)
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 2434, in downloadPkgs
presto.rebuild(po)
File "/usr/lib/python2.7/site-packages/yum/drpm.py", line 289, in rebuild
self.dequeue_max()
File "/usr/lib/python2.7/site-packages/yum/drpm.py", line 325, in dequeue_max
if not self.dequeue(block=False):
File "/usr/lib/python2.7/site-packages/yum/drpm.py", line 331, in dequeue
self._wait()
File "/usr/lib/python2.7/site-packages/yum/drpm.py", line 259, in _wait
assert pid in self.jobs
AssertionError
有关更多信息,请参阅: https://bugzilla.redhat.com/show_bug.cgi?id=1090503
我怎样才能解决这个问题?
答案1
这个问题的解决方案是简单地运行:
yum clean all
或者
yum clean metadata
运行后我能够yum update
毫无问题地进行。