yum

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

Missing kernel-firmware 3.8.13-16.2.1.el6uek on Oracle Linux 6.5

You might stumble over this trying to execute a yum update on an orcl linux 6.5:

[root@xyz ~]# yum update
...
Error: Package: kernel-uek-debug-3.8.13-16.2.1.el6uek.x86_64 (public_ol6_UEKR3_latest)
Requires: kernel-firmware = 3.8.13-16.2.1.el6uek
Removing: kernel-uek-firmware-3.8.13-16.2.1.el6uek.noarch (@anaconda-UEK3/6.5)
kernel-firmware = 3.8.13-16.2.1.el6uek
Installed: kernel-uek-firmware-3.8.13-26.2.4.el6uek.noarch (@public_ol6_UEKR3_latest)
kernel-firmware = 3.8.13-26.2.4.el6uek
Installed: kernel-uek-firmware-3.8.13-35.1.2.el6uek.noarch (@public_ol6_UEKR3_latest)
kernel-firmware = 3.8.13-35.1.2.el6uek
...
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles –nodigest

(more…)