Find the answer to your Linux question:
Results 1 to 3 of 3
Hi all, I've done something to yum and it's not playing nice. So far, I've tried: Code: #yum clean all #rm -f /var/lib/rpm/__db* #rpmdb -vv --rebuilddb And... Code: yum clean ...
  1. #1
    Just Joined!
    Join Date
    May 2009
    Posts
    8

    Angry [SOLVED] I've broken my YUM

    Hi all,

    I've done something to yum and it's not playing nice.

    So far, I've tried:

    Code:
    #yum clean all
    #rm -f /var/lib/rpm/__db*
    #rpmdb -vv --rebuilddb
    And...
    Code:
    yum clean all
    rm -f /var/lib/rpm/__db*
    rpm --rebuilddb
    Here's the error I get when running a yum update (multiple packages removed):

    Code:
    Traceback (most recent call last):
      File "/usr/bin/yum", line 29, in <module>
        yummain.user_main(sys.argv[1:], exit_code=True)
      File "/usr/share/yum-cli/yummain.py", line 229, in user_main
        errcode = main(args)
      File "/usr/share/yum-cli/yummain.py", line 145, in main
        (result, resultmsgs) = base.buildTransaction()
      File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 649, in buildTransaction
        (rescode, restring) = self.resolveDeps()
      File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 704, in resolveDeps
        for po, dep in self._checkFileRequires():
      File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 901, in _checkFileRequires
        for pkg in self.rpmdb.returnPackages():
      File "/usr/lib/python2.5/site-packages/yum/rpmsack.py", line 297, in returnPackages
        self._makePackageObject(hdr, idx)
      File "/usr/lib/python2.5/site-packages/yum/rpmsack.py", line 430, in _makePackageObject
        po = RPMInstalledPackage(hdr, index, self)
      File "/usr/lib/python2.5/site-packages/yum/rpmsack.py", line 37, in __init__
        YumInstalledPackage.__init__(self, rpmhdr)
      File "/usr/lib/python2.5/site-packages/yum/packages.py", line 1205, in __init__
        YumHeaderPackage.__init__(self, fakerepo, hdr)
      File "/usr/lib/python2.5/site-packages/yum/packages.py", line 981, in __init__
        self.summary = misc.share_data(self.hdr['summary'].replace('\n', ''))
    AttributeError: 'NoneType' object has no attribute 'replace'

    Thanks,
    S

  2. #2
    Linux Newbie rituraj.goswami's Avatar
    Join Date
    Aug 2008
    Location
    Guwahati
    Posts
    133
    reboot your machine. ths command sometimes behaves erratically but works fine after a reboot. looks like redhat needs to fix it.
    There is nothing impossible, for everything is possible; the impossible only takes a bit longer than the possible.

  3. #3
    Just Joined!
    Join Date
    May 2009
    Posts
    8
    I fixed this with some help over at Fedorfourums.org.

    I had to RPM -e --nodeps yum*rpm

    Then reinstall all the yum dependancies (about10) and then RPM yum back in.


    Long way round but it work. I suspect Python was the root cause.

    S

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...