Installing or updating java-1.7.0-openjdk to java-1.7.0-openjdk-1.7.0.191-2.6.15.4.el6_10 fails in error
Environment
- Red Hat Enterprise Linux 6
- java-1.7.0-openjdk-1.7.0.191-2.6.15.4.el6_10
Issue
-
Installing or updating java-1.7.0-openjdk to java-1.7.0-openjdk-1.7.0.191-2.6.15.4.el6_10 fails in error
# yum -y install java-1.7.0-openjdk [...] Downloading Packages: java-1.7.0-openjdk-1.7.0.191-2.6.15.4.el6_10.x86_64.rpm | 27 MB 00:00 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Error in PRETRANS scriptlet in rpm package 1:java-1.7.0-openjdk-1.7.0.191-2.6.15.4.el6_10.x86_64 error: lua script failed: /usr/libexec/copy_jdk_configs.lua:272: attempt to index global 'file' (a nil value) Verifying : 1:java-1.7.0-openjdk-1.7.0.191-2.6.15.4.el6_10.x86_64 1/1 Failed: java-1.7.0-openjdk.x86_64 1:1.7.0.191-2.6.15.4.el6_10 Complete!
Resolution
-
Prior to installing or updating the package, create the
/var/lib/rpm-state
directory, as shown below# mkdir -p /var/lib/rpm-state
Root Cause
- The issue is tracked by BZ 1620053
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments