Package does not match intended download on Oracle Linux 6.5


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

Advertisements

One comment

  1. Obviously, along with supplied patches for oracle-linux-(6/7)-java-1.(7|8).0-openjdk security updates, as published on the el-errata mailing list, the download no longer fails with any errors and the os update process runs smoothly to completion.
    Peter
    El-errata Digest, Vol 113, Issue 17

    Like

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s