Home > OEL und OVM > Public YUM Medadaten Checksum Fehler

Public YUM Medadaten Checksum Fehler

Oracle Enterprise LinuxOracle Enterprise Linux

Oracle public YUM - Metadaten Checksum nicht korrekt

Wenn man OEL6up4 oder OEL6up5 installiert und dann auf das Oracle Public YUM zugreifft, bekommt man immer die Fehlermeldung, dass die Metadaten Checksummen nicht stimmen.
Dafür gibt es zwei Lösungsmöglichkeiten - eine "Quick & Dirty" und eine "sichere Variante".

Quick & Dirty

Das Problem ist, dass anschienend die Checksumme mit/ab OEL6up4 nicht korrekt eingetragen ist. Bei der "Quick & Dirty" Lösung weist man YUM einfach an, die Checksummen zu ignorieren.

cd /etc/yum.repos.d
vi *.repo

hier suchen welcher Eintrag "enabled=1" hat und bei diesen Eintrag gpgcheck=1 auf gpgcheck=0 ändern.

sichere Variante

Hier muss man sich zuerst die korrekten Checksummen manuell suchen und dann als die gültigen konfigurieren.

$ ### clean up yum cache directory
$ yum clean all
Loaded plugins: refresh-packagekit, security
Cleaning repos: ol6_UEK_latest ol6_latest
Cleaning up Everything
$ ### attempt to check for updates
$ yum check-update
Loaded plugins: refresh-packagekit, security
ol6_UEK_latest | 1.2 kB 00:00
ol6_UEK_latest/primary | 8.0 MB 00:00
ol6_UEK_latest 183/183
ol6_latest | 1.4 kB 00:00
ol6_latest/primary | 29 MB 00:02
http://public-yum.oracle.com/repo/OracleLinux/OL6/latest/x86_64/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
ol6_latest/primary | 29 MB 00:02
http://public-yum.oracle.com/repo/OracleLinux/OL6/latest/x86_64/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
Error: failure: repodata/primary.xml.gz from ol6_latest: [Errno 256] No more mirrors to try.

$ ### manually verify checksum by downloading gz for UEK repository
$ wget http://public-yum.oracle.com/repo/OracleLinux/OL6/UEK/latest/x86_64/repodata/primary.xml.gz
--2013-06-13 09:49:17-- http://public-yum.oracle.com/repo/OracleLinux/OL6/UEK/latest/x86_64/repodata/primary.xml.gz
Connecting to 10.87.79.250:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 8409269 (8.0M) [application/x-gzip]
Saving to: “primary.xml.gz”
100%[======================================================================>] 8,409,269 11.1M/s in 0.7s
2013-06-13 09:49:18 (11.1 MB/s) - “primary.xml.gz” saved [8409269/8409269]
$ ### now download xml for UEK repository
$ wget http://public-yum.oracle.com/repo/OracleLinux/OL6/UEK/latest/x86_64/repodata/repomd.xml
--2013-06-13 09:52:14-- http://public-yum.oracle.com/repo/OracleLinux/OL6/UEK/latest/x86_64/repodata/repomd.xml
Connecting to 10.87.79.250:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 1240 (1.2K) [text/xml]
Saving to: “repomd.xml”
100%[======================================================================>] 1,240 --.-K/s in 0s
2013-06-13 09:52:14 (106 MB/s) - “repomd.xml” saved [1240/1240]
$ ### get published checksum from xml
$ grep -nA1 primary.xml repomd.xml
16:
17- c8fc85aa170c9da4a04e8a58ab594f67c319e874
$ ### generate checksum for gz
$ sha1sum primary.xml.gz
c8fc85aa170c9da4a04e8a58ab594f67c319e874 primary.xml.gz
$ ### UEK checksums match, clean up UEK files from directory
$ rm primary.xml.gz repomd.xml

$ ### manually verify checksum by downloading gz for ol6 repository
$ wget http://public-yum.oracle.com/repo/OracleLinux/OL6/latest/x86_64/repodata/primary.xml.gz
--2013-06-13 10:04:59-- http://public-yum.oracle.com/repo/OracleLinux/OL6/latest/x86_64/repodata/primary.xml.gz
Connecting to 10.87.79.250:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 30474994 (29M) [application/x-gzip]
Saving to: “primary.xml.gz”
100%[======================================================================>] 30,474,994 6.64M/s in 4.5s
2013-06-13 10:05:04 (6.40 MB/s) - “primary.xml.gz” saved [30474994/30474994]
$ ### now download xml for ol6 repository
$ wget http://public-yum.oracle.com/repo/OracleLinux/OL6/latest/x86_64/repodata/repomd.xml
--2013-06-13 10:05:10-- http://public-yum.oracle.com/repo/OracleLinux/OL6/latest/x86_64/repodata/repomd.xml
Connecting to 10.87.79.250:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 1429 (1.4K) [text/xml]
Saving to: “repomd.xml”
100%[======================================================================>] 1,429 --.-K/s in 0s
2013-06-13 10:05:10 (55.7 MB/s) - “repomd.xml” saved [1429/1429]
$ ### get published checksum from xml
$ grep -nA1 primary.xml repomd.xml
16:
17- c8b3d8c353045b6e96f1eb6ed519c5d6e75faad3
$ ### generate checksum for gz
$ sha1sum primary.xml.gz
47c33491455170c1460646ab3652e40087a4aa19 primary.xml.gz
$ ### ol6 checksums do not match, clean up ol6 files from directory
$ rm primary.xml.gz repomd.xml
$