Find the answer to your Linux question:
Results 1 to 4 of 4
I finally got around to updating my 2 Linux servers this one crashed during the update and logged me out but i think it finished the updates however i can ...
  1. #1
    Just Joined!
    Join Date
    Jul 2009
    Posts
    3

    [SOLVED] yum update fails: AttributeError: CHECKSUM_VALUE

    I finally got around to updating my 2 Linux servers this one crashed during the update and logged me out but i think it finished the updates however i can not do any more updates. i have centos 5

    Code:
    [HSCR tmp]# yum -y update
    Loading "installonlyn" plugin
    Setting up Update Process
    Setting up repositories
    base                                                     | 1.1 kB     00:00
    updates                                                  |  951 B     00:00
    addons                                                   |  951 B     00:00
    extras                                                   | 1.1 kB     00:00
    Reading repository metadata in from local files
    primary.xml.gz                                           | 878 kB     00:01
    base      : ################################################## 2508/2508
    primary.xml.gz                                           | 211 kB     00:00
    updates   : ################################################## 311/311
    primary.xml.gz                                           |  157 B     00:00
    primary.xml.gz                                           | 100 kB     00:00
    extras    : ################################################## 311/311
    Traceback (most recent call last):
      File "/usr/bin/yum", line 29, in ?
        yummain.main(sys.argv[1:])
      File "/usr/share/yum-cli/yummain.py", line 94, in main
        result, resultmsgs = base.doCommands()
      File "/usr/share/yum-cli/cli.py", line 381, in doCommands
        return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
      File "/usr/share/yum-cli/yumcommands.py", line 150, in doCommand
        return base.updatePkgs(extcmds)
      File "/usr/share/yum-cli/cli.py", line 684, in updatePkgs
        obsoleting_pkg = self.getPackageObject(obsoleting)
      File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 1473, in getPackageObject
        pkgs = self.pkgSack.searchPkgTuple(pkgtup)
      File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 66, in searchPkgTuple
        return self.searchNevra(name=n, arch=a, epoch=e, ver=v, rel=r)
      File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 232, in searchNevra
        return self._computeAggregateListResult("searchNevra", name, epoch, ver, rel, arch)
      File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 369, in _computeAggregateListResult
        sackResult = apply(method, args)
      File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 574, in searchNevra
        returnList.append(self.pc(rep,self.db2class(x)))
      File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 431, in db2class
        y.checksum = {'pkgid': 'YES','type': db.checksum_type,
      File "/usr/lib/python2.4/site-packages/sqlite/main.py", line 97, in __getattr__
        raise AttributeError, key
    AttributeError: CHECKSUM_VALUE
    [HSCR tmp]#
    things i tried

    Code:
    yum clean all
    rm -f /var/lib/rpm/__db*
    rpmdb -vv --rebuilddb
    
    rpm -qa | grep yum-metadata-parser
    rpm -ev --nodeps yum-metadata-parser-VERSIONFROMABOVECMD
    
    cd /tmp
    wget ft*://ftp.univie.ac.at/systems/linux...8.fc6.i386.rpm
    rpm -iv ./yum-metadata-parser-1.0-8.fc6.i386.rpm 
    yum check-update
    i even tried the old windows trick of rebooting and it still does not work

  2. #2
    Linux Guru waterhead's Avatar
    Join Date
    Jul 2004
    Location
    Franklin, Wisconsin
    Posts
    4,577
    In the last line, with wget, I see mention of fc6. Fedora Core 6 is not supported anymore. If you are trying to connect to FC6 repositories, it may be giving you errors. Use this command to print the repositories that it is configured to use. Then check to see if they actually exist.
    Code:
    yum repolist
    Also, after running the cleanall command, rebuild the data with this command:
    Code:
    yum makecache
    Paul

    Please do not send Private Messages to me with requests for help. I will not reply.

  3. #3
    Just Joined!
    Join Date
    Jul 2009
    Posts
    3
    here is the repolist
    Code:
    [HSCR ~]# ls -l /etc/yum.repos.d/
    total 16
    -rw-r--r-- 1 root root 2323 Mar 16 21:30 CentOS-Base.repo
    -rw-r--r-- 1 root root  626 Mar 16 21:30 CentOS-Media.repo
    [HSCR ~]#
    the next part looked like it worked (output)
    Code:
    [HSCR ~]# yum clean all
    Loading "installonlyn" plugin
    Cleaning up Everything
    [HSCR ~]# yum makecache
    Loading "installonlyn" plugin
    Setting up repositories
    base                                                                                                                                  | 1.1 kB     00:00
    updates                                                                                                                               |  951 B     00:00
    addons                                                                                                                                |  951 B     00:00
    extras                                                                                                                                | 1.1 kB     00:00
    primary.xml.gz                                                                                                                        | 878 kB     00:00
    base      : ################################################## 2508/2508
    primary.xml.gz                                                                                                                        | 211 kB     00:00
    updates   : ################################################## 311/311
    primary.xml.gz                                                                                                                        |  157 B     00:00
    primary.xml.gz                                                                                                                        | 100 kB     00:00
    extras    : ################################################## 311/311
    filelists.xml.gz                                                                                                                      | 2.8 MB     00:02
    base      : ################################################## 2508/2508
    filelists.xml.gz                                                                                                                      | 1.6 MB     00:00
    updates   : ################################################## 311/311
    filelists.xml.gz                                                                                                                      |  150 B     00:00
    filelists.xml.gz                                                                                                                      | 138 kB     00:00
    extras    : ################################################## 311/311
    other.xml.gz                                                                                                                          | 8.1 MB     00:04
    base      : ################################################## 2508/2508
    other.xml.gz                                                                                                                          | 5.2 MB     00:03
    updates   : ################################################## 311/311
    other.xml.gz                                                                                                                          |  145 B     00:00
    other.xml.gz                                                                                                                          | 577 kB     00:00
    extras    : ################################################## 311/311
    Metadata Cache Created
    this is what i get when i try the updates again
    Code:
    [HSCR ~]# yum -y update
    Loading "installonlyn" plugin
    Setting up Update Process
    Setting up repositories
    Reading repository metadata in from local files
    Traceback (most recent call last):
      File "/usr/bin/yum", line 29, in ?
        yummain.main(sys.argv[1:])
      File "/usr/share/yum-cli/yummain.py", line 94, in main
        result, resultmsgs = base.doCommands()
      File "/usr/share/yum-cli/cli.py", line 381, in doCommands
        return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
      File "/usr/share/yum-cli/yumcommands.py", line 150, in doCommand
        return base.updatePkgs(extcmds)
      File "/usr/share/yum-cli/cli.py", line 684, in updatePkgs
        obsoleting_pkg = self.getPackageObject(obsoleting)
      File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 1473, in getPackageObject
        pkgs = self.pkgSack.searchPkgTuple(pkgtup)
      File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 66, in searchPkgTuple
        return self.searchNevra(name=n, arch=a, epoch=e, ver=v, rel=r)
      File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 232, in searchNevra
        return self._computeAggregateListResult("searchNevra", name, epoch, ver, rel, arch)
      File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 369, in _computeAggregateListResult
        sackResult = apply(method, args)
      File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 574, in searchNevra
        returnList.append(self.pc(rep,self.db2class(x)))
      File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 431, in db2class
        y.checksum = {'pkgid': 'YES','type': db.checksum_type,
      File "/usr/lib/python2.4/site-packages/sqlite/main.py", line 97, in __getattr__
        raise AttributeError, key
    AttributeError: CHECKSUM_VALUE

  4. #4
    Just Joined!
    Join Date
    Jul 2009
    Posts
    3
    fixed it by reloading the os

Posting Permissions

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