See my update in the comment section below…
yum
updating an Oracle Linux 6.5 to the latest available version, which is 6.7, errored out with:
(122/426): java-1.6.0-openjdk-1.6.0.38-1.13.10.0.el6_7.x86_64.rpm | 3.5 kB 00:00
http://public-yum.oracle.com/repo/OracleLinux/OL6/latest/x86_64/getPackage/java-1.6.0-openjdk-1.6.0.38-1.13.10.0.el6_7.x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum –enablerepo=public_ol6_latest clean metadata
Trying other mirror.
(123/426): java-1.7.0-openjdk-1.7.0.95-2.6.4.0.0.1.el6_7.x86_64.rpm | 3.5 kB 00:00
http://public-yum.oracle.com/repo/OracleLinux/OL6/latest/x86_64/getPackage/java-1.7.0-openjdk-1.7.0.95-2.6.4.0.0.1.el6_7.x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum –enablerepo=public_ol6_latest clean metadata
Trying other mirror.
then
Error Downloading Packages:
1:java-1.6.0-openjdk-1.6.0.38-1.13.10.0.el6_7.x86_64: failure: getPackage/java-1.6.0-openjdk-1.6.0.38-1.13.10.0.el6_7.x86_64.rpm from public_ol6_latest: [Errno 256] No more mirrors to try.
1:java-1.7.0-openjdk-1.7.0.95-2.6.4.0.0.1.el6_7.x86_64: failure: getPackage/java-1.7.0-openjdk-1.7.0.95-2.6.4.0.0.1.el6_7.x86_64.rpm from public_ol6_latest: [Errno 256] No more mirrors to try.
for the given file as well as for java-1.7.0-openjdk-1.7.0.95-2.6.4.0.0.1.el6_7.x86_64.rpm
. Following the advice in the error message itself, namely:
yum --enablerepo=public_ol6_latest clean metadata
did not help further. Yet another hint on the web, to execute:
yum clean all
neither resolved the problem. Checking SHA hashes for a failed match, as one may be oriented to try out according to the error message, showed no differences.
Since the rpm’s in question are easily downloadable from http://public-yum.oracle.com/repo/OracleLinux/OL6/latest/x86_64/index.html, I just grabbed the packages and manually (replace-)copied both of them into /var/cache/yum/x86_64/6Server/public_ol6_latest/packages
. The next
yum update
worked as expected.
Have fun, Peter