Bug 208547 - Metadata file does not match checksum
Metadata file does not match checksum
Status: CLOSED DUPLICATE of bug 206755
Product: Red Hat Network
Classification: Red Hat
Component: RHN/Backend (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Bryan Kearney
Red Hat Network Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2006-09-29 07:15 EDT by Ola Thoresen
Modified: 2013-01-10 05:11 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-09-29 09:00:17 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Ola Thoresen 2006-09-29 07:15:23 EDT
Description of problem:
We are unable to use yum on a RHEL-5-beta due to wrong checksum

Version-Release number of selected component (if applicable):

# rpm -q redhat-release

# rpm -qa | grep yum

How reproducible:

Steps to Reproduce:
1. Run yum update (or any other yum command)
2. Error
Actual results:

[Errno -1] Metadata file does not match checksum
Trying other mirror.
Error: failure: repodata/primary.xml.gz from rhel-i386-server-5-beta: [Errno
256] No more mirrors to try.

Expected results:
yum should do its thing

Additional info:
This also affects rhn_check as it uses yum as a backend:

# rhn_check 
Traceback (most recent call last):
  File "/usr/sbin/rhn_check", line 314, in ?
  File "/usr/sbin/rhn_check", line 194, in handle_action
    (status, message, data) = run_action(method, params)
  File "/usr/sbin/rhn_check", line 150, in run_action
    (status, message, data) = do_call(method, params)   
  File "/usr/sbin/rhn_check", line 68, in do_call
    retval = apply(method, params)
  File "/usr/share/rhn/actions/packages.py", line 171, in update
    return runTransaction(transaction_data)
  File "/usr/share/rhn/actions/packages.py", line 196, in runTransaction
    yum_base = YumAction()
  File "/usr/share/rhn/actions/packages.py", line 50, in __init__
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 312, in doSackSetup
  File "/usr/lib/python2.4/site-packages/yum/repos.py", line 200, in populateSack
    sack.populate(repo, with, callback, cacheonly)
  File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 88, in populate
    xml = repo.getPrimaryXML()
  File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 655, in getPrimaryXML
    return self.retrieveMD('primary')
  File "/usr/lib/yum-plugins/rhnplugin.py", line 153, in retrieveMD
    return YumRepository.retrieveMD(self, mdtype)
  File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 642, in retrieveMD
    cache=self.http_caching == 'all')
  File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 458, in __get
    raise Errors.RepoError, "failure: %s from %s: %s" % (relative, self.id, e)
yum.Errors.RepoError: failure: repodata/primary.xml.gz from
rhel-i386-server-supplementary-5-beta: [Errno 256] No more mirrors to try.

The checksum is indeed wrong:

# cat /var/cache/yum/rhel-i386-server-5-beta/repomd.xml 
<?xml version="1.0" encoding="UTF-8"?>
<repomd xmlns="http://linux.duke.edu/metadata/repo">
  <data type="filelists">
    <location href="repodata/filelists.xml.gz"/>
    <checksum type="sha">ea14a7d159442b132ec43d00410b879d2335ef54</checksum>
  <data type="primary">
    <location href="repodata/primary.xml.gz"/>
    <checksum type="sha">a3a9f2c503eca6c338ec1fa338f7e075648d9699</checksum>

# sha1sum /var/cache/yum/rhel-i386-server-5-beta/primary.xml.gz 
Comment 1 James Bowes 2006-09-29 09:00:17 EDT

*** This bug has been marked as a duplicate of 206755 ***

Note You need to log in before you can comment on or make changes to this bug.