[Yum] Yum 2.0.7 traceback on empty header file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I just ran "yum update" using a custom yum 2.0.7 packages, which got updated
to the Fedora Core 2 one, and all went fine. Right after, I ran "yum clean
all" as often since I'm short on disk space (my laptop), and to my surprise,
there was a damaged header (zero byte file) which made yum unhappy. Simply
removing it fixed the problem.

Worth ignoring? Trying to fetch the damaged header file again and replace
it? Other ideas?

Matthias

--

[root@python2 root]# yum clean all
Gathering header information file(s) from server(s)
Server: Fedora Core 2 - i386 - Base
Server: Fedora Core 2 - i386 - Released Updates
Finding updated packages
Cleaning packages and old headers
Damaged Header /var/cache/yum/base/headers/epic-4-1.0.1-17.i386.hdr
Traceback (most recent call last):
  File "/usr/bin/yum", line 30, in ?
    yummain.main(sys.argv[1:])
  File "/usr/share/yum/yummain.py", line 296, in main
    HeaderInfo, rpmDBInfo, obsoleted)
  File "/usr/share/yum/clientStuff.py", line 1156, in take_action
    clean_up_old_headers(rpmDBInfo, HeaderInfo)
  File "/usr/share/yum/clientStuff.py", line 772, in clean_up_old_headers
    (e, n, v, r, a) = getENVRA(hdr)
  File "/usr/share/yum/clientStuff.py", line 67, in getENVRA
    if header[rpm.RPMTAG_EPOCH] == None:
TypeError: unsubscriptable object
[root@python2 root]# 

Andd right after :

[root@python2 root]# rm /var/cache/yum/base/headers/epic-4-1.0.1-17.i386.hdr
rm: remove regular empty file `/var/cache/yum/base/headers/epic-4-1.0.1-17.i386.hdr'? y
[root@python2 root]# yum clean all
 
Unable to find pid
Gathering header information file(s) from server(s)
Server: Fedora Core 2 - i386 - Base
Server: Fedora Core 2 - i386 - Released Updates
Finding updated packages
Cleaning packages and old headers
[root@python2 root]#

-- 
Clean custom Red Hat Linux rpm packages : http://freshrpms.net/
Fedora Core release 2 (Tettnang) - Linux kernel 2.6.5-1.358
Load : 0.25 0.69 0.74

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux