Description:
I am trying to install Oracle JDK 7u80 (jdk-7u80-linux-x64.rpm
) on Rocky Linux 9, but the installation fails with dependency issues. The error message suggests missing /bin/*
utilities, such as /bin/basename
, /bin/cp
, /bin/ls
, /bin/mkdir
, etc.
However, these utilities exist under /usr/bin/
, and Rocky Linux 9 uses a unified /usr
structure.
System Information:
- OS: Rocky Linux 9
- Kernel Version:
5.14.0-503.19.1.el9_5.cloud.1.0.x86_64
- JDK Package:
jdk-7u80-linux-x64.rpm
- Installation Command:
yum install -d10 jdk-7u80-linux-x64.rpm
Error Output:
[root@vadi-rocky-linux9-testing ~]# yum install -d10 jdk-7u80-linux-x64.rpm
timer: config: 2 ms
Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, groups-manager, needs-restarting, playground, repoclosure, repodiff, repograph, repomanage, reposync, system-upgrade
YUM version: 4.14.0
Command: yum install -d10 jdk-7u80-linux-x64.rpm
Installroot: /
Releasever: 9
cachedir: /var/cache/dnf
Base command: install
Extra commands: ['install', '-d10', 'jdk-7u80-linux-x64.rpm']
User-Agent: constructed: 'libdnf (Rocky Linux 9.5; generic; Linux.x86_64)'
repo: using cache for: cloud-kernel
cloud-kernel: using metadata from Wed 19 Feb 2025 06:48:36 PM UTC.
repo: using cache for: google-compute-engine
google-compute-engine: using metadata from Tue 29 Feb 1972 12:39:03 PM UTC.
repo: using cache for: google-cloud-sdk
google-cloud-sdk: using metadata from Wed 01 Jul 1992 04:30:46 AM UTC.
repo: using cache for: google-cloud-ops-agent
google-cloud-ops-agent: using metadata from Wed 19 Sep 1973 04:13:58 PM UTC.
repo: using cache for: baseos
baseos: using metadata from Thu 20 Mar 2025 03:41:01 AM UTC.
repo: using cache for: appstream
appstream: using metadata from Thu 27 Mar 2025 01:16:26 AM UTC.
repo: using cache for: extras
extras: using metadata from Fri 28 Mar 2025 04:10:56 PM UTC.
Last metadata expiration check: 0:05:09 ago on Mon 31 Mar 2025 11:17:24 AM UTC.
timer: sack setup: 263 ms
Excludes in repo baseos: kernel*
--> Starting dependency resolution
--> Finished dependency resolution
timer: depsolve: 56 ms
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/dnf/cli/main.py", line 130, in cli_run
ret = resolving(cli, base)
File "/usr/lib/python3.9/site-packages/dnf/cli/main.py", line 166, in resolving
base.resolve(cli.demands.allow_erasing)
File "/usr/lib/python3.9/site-packages/dnf/base.py", line 931, in resolve
raise exc
dnf.exceptions.DepsolveError:
Problem: conflicting requests
- nothing provides /bin/basename needed by jdk-2000:1.7.0_80-fcs.x86_64 from @commandline
- nothing provides /bin/cp needed by jdk-2000:1.7.0_80-fcs.x86_64 from @commandline
- nothing provides /bin/ls needed by jdk-2000:1.7.0_80-fcs.x86_64 from @commandline
- nothing provides /bin/mkdir needed by jdk-2000:1.7.0_80-fcs.x86_64 from @commandline
- nothing provides /bin/mv needed by jdk-2000:1.7.0_80-fcs.x86_64 from @commandline
- nothing provides /bin/pwd needed by jdk-2000:1.7.0_80-fcs.x86_64 from @commandline
- nothing provides /bin/sort needed by jdk-2000:1.7.0_80-fcs.x86_64 from @commandline
Error:
Problem: conflicting requests
- nothing provides /bin/basename needed by jdk-2000:1.7.0_80-fcs.x86_64 from @commandline
- nothing provides /bin/cp needed by jdk-2000:1.7.0_80-fcs.x86_64 from @commandline
- nothing provides /bin/ls needed by jdk-2000:1.7.0_80-fcs.x86_64 from @commandline
- nothing provides /bin/mkdir needed by jdk-2000:1.7.0_80-fcs.x86_64 from @commandline
- nothing provides /bin/mv needed by jdk-2000:1.7.0_80-fcs.x86_64 from @commandline
- nothing provides /bin/pwd needed by jdk-2000:1.7.0_80-fcs.x86_64 from @commandline
- nothing provides /bin/sort needed by jdk-2000:1.7.0_80-fcs.x86_64 from @commandline
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
Cleaning up.
Plugins were unloaded.
[root@vadi-rocky-linux9-testing ~]#
Troubleshooting Steps Taken:
Commands like /bin/basename
already exist, but JDK 7 installer still fails.
Example:
[root@vadi-rocky-linux9-testing ~]# ll /usr/bin/basename /bin/basename
-rwxr-xr-x. 1 root root 36544 Nov 6 16:29 /bin/basename
-rwxr-xr-x. 1 root root 36544 Nov 6 16:29 /usr/bin/basename
[root@vadi-rocky-linux9-testing ~]#
Questions for the Community:
- Does Rocky Linux 9 fully support JDK 7u80, or is there a compatibility issue?
- Is there a recommended workaround to install JDK 7 on Rocky Linux 9?
- Could this be related to Rocky Linux’s
/usr
unification changes?
Any guidance would be appreciated! Thanks in advance.