View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005248 | Rocky-Linux-8 | appstream | public | 2024-01-04 13:44 | 2024-01-04 13:44 |
Reporter | Per Lundberg | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
OS | Rocky Linux | OS Version | 8.9 | ||
Summary | 0005248: Tomcat brings in Java 8, despite Java 17 already isntalled | ||||
Description | dnf install tomcat installs java-1.8.0-openjdk-headless despite java-17-headless already being installed. | ||||
Steps To Reproduce | Launch a Rocky Linux LXD image like this: > lxc launch images:rockylinux/8 > lxc shell keen-mule Install install java-17-headless: [root@keen-mule ~]# dnf install java-17-headless Rocky Linux 8 - AppStream 11 MB/s | 9.6 MB 00:00 Rocky Linux 8 - BaseOS 2.6 MB/s | 3.9 MB 00:01 Rocky Linux 8 - Extras 41 kB/s | 14 kB 00:00 Dependencies resolved. ============================================================================================================================================================================================================================================== Package Architecture Version Repository Size ============================================================================================================================================================================================================================================== Installing: java-17-openjdk-headless x86_64 1:17.0.9.0.9-2.el8_8 appstream 46 M Installing dependencies: alsa-lib x86_64 1.2.9-1.el8 appstream 496 k avahi-libs x86_64 0.7-21.el8_9.1 baseos 61 k copy-jdk-configs noarch 4.0-2.el8 appstream 29 k cups-libs x86_64 1:2.2.6-54.el8_9 baseos 434 k javapackages-filesystem noarch 5.3.0-2.module+el8.3.0+125+5da1ae29 appstream 29 k lksctp-tools x86_64 1.0.18-3.el8 baseos 98 k lua x86_64 5.3.4-12.el8 appstream 191 k nspr x86_64 4.35.0-1.el8_8 appstream 142 k nss x86_64 3.90.0-3.el8_8 appstream 749 k nss-softokn x86_64 3.90.0-3.el8_8 appstream 1.2 M nss-softokn-freebl x86_64 3.90.0-3.el8_8 appstream 387 k nss-sysinit x86_64 3.90.0-3.el8_8 appstream 74 k nss-util x86_64 3.90.0-3.el8_8 appstream 138 k tzdata-java noarch 2023c-2.el8 appstream 186 k Enabling module streams: javapackages-runtime 201801 Transaction Summary ============================================================================================================================================================================================================================================== Install 15 Packages Total download size: 51 M Installed size: 207 M Is this ok [y/N]: y Downloading Packages: (1/15): copy-jdk-configs-4.0-2.el8.noarch.rpm 478 kB/s | 29 kB 00:00 (2/15): alsa-lib-1.2.9-1.el8.x86_64.rpm 4.8 MB/s | 496 kB 00:00 (3/15): javapackages-filesystem-5.3.0-2.module+el8.3.0+125+5da1ae29.noarch.rpm 201 kB/s | 29 kB 00:00 (4/15): nspr-4.35.0-1.el8_8.x86_64.rpm 2.9 MB/s | 142 kB 00:00 (5/15): lua-5.3.4-12.el8.x86_64.rpm 943 kB/s | 191 kB 00:00 (6/15): nss-3.90.0-3.el8_8.x86_64.rpm 10 MB/s | 749 kB 00:00 (7/15): nss-softokn-3.90.0-3.el8_8.x86_64.rpm 12 MB/s | 1.2 MB 00:00 (8/15): nss-softokn-freebl-3.90.0-3.el8_8.x86_64.rpm 4.6 MB/s | 387 kB 00:00 (9/15): nss-sysinit-3.90.0-3.el8_8.x86_64.rpm 3.9 MB/s | 74 kB 00:00 (10/15): tzdata-java-2023c-2.el8.noarch.rpm 7.7 MB/s | 186 kB 00:00 (11/15): avahi-libs-0.7-21.el8_9.1.x86_64.rpm 2.9 MB/s | 61 kB 00:00 (12/15): cups-libs-2.2.6-54.el8_9.x86_64.rpm 13 MB/s | 434 kB 00:00 (13/15): lksctp-tools-1.0.18-3.el8.x86_64.rpm 4.5 MB/s | 98 kB 00:00 (14/15): nss-util-3.90.0-3.el8_8.x86_64.rpm 754 kB/s | 138 kB 00:00 (15/15): java-17-openjdk-headless-17.0.9.0.9-2.el8_8.x86_64.rpm 24 MB/s | 46 MB 00:01 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 22 MB/s | 51 MB 00:02 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Running scriptlet: copy-jdk-configs-4.0-2.el8.noarch 1/1 Running scriptlet: java-17-openjdk-headless-1:17.0.9.0.9-2.el8_8.x86_64 1/1 Preparing : 1/1 Installing : nspr-4.35.0-1.el8_8.x86_64 1/15 Running scriptlet: nspr-4.35.0-1.el8_8.x86_64 1/15 Installing : nss-util-3.90.0-3.el8_8.x86_64 2/15 Installing : nss-softokn-freebl-3.90.0-3.el8_8.x86_64 3/15 Installing : nss-softokn-3.90.0-3.el8_8.x86_64 4/15 Installing : nss-3.90.0-3.el8_8.x86_64 5/15 Installing : nss-sysinit-3.90.0-3.el8_8.x86_64 6/15 Installing : lksctp-tools-1.0.18-3.el8.x86_64 7/15 Running scriptlet: lksctp-tools-1.0.18-3.el8.x86_64 7/15 Installing : avahi-libs-0.7-21.el8_9.1.x86_64 8/15 Installing : cups-libs-1:2.2.6-54.el8_9.x86_64 9/15 Installing : tzdata-java-2023c-2.el8.noarch 10/15 Installing : lua-5.3.4-12.el8.x86_64 11/15 Installing : copy-jdk-configs-4.0-2.el8.noarch 12/15 Installing : javapackages-filesystem-5.3.0-2.module+el8.3.0+125+5da1ae29.noarch 13/15 Installing : alsa-lib-1.2.9-1.el8.x86_64 14/15 Running scriptlet: alsa-lib-1.2.9-1.el8.x86_64 14/15 Installing : java-17-openjdk-headless-1:17.0.9.0.9-2.el8_8.x86_64 15/15 Running scriptlet: java-17-openjdk-headless-1:17.0.9.0.9-2.el8_8.x86_64 15/15 Running scriptlet: nss-3.90.0-3.el8_8.x86_64 15/15 Running scriptlet: copy-jdk-configs-4.0-2.el8.noarch 15/15 Running scriptlet: java-17-openjdk-headless-1:17.0.9.0.9-2.el8_8.x86_64 15/15 Verifying : alsa-lib-1.2.9-1.el8.x86_64 1/15 Verifying : copy-jdk-configs-4.0-2.el8.noarch 2/15 Verifying : java-17-openjdk-headless-1:17.0.9.0.9-2.el8_8.x86_64 3/15 Verifying : javapackages-filesystem-5.3.0-2.module+el8.3.0+125+5da1ae29.noarch 4/15 Verifying : lua-5.3.4-12.el8.x86_64 5/15 Verifying : nspr-4.35.0-1.el8_8.x86_64 6/15 Verifying : nss-3.90.0-3.el8_8.x86_64 7/15 Verifying : nss-softokn-3.90.0-3.el8_8.x86_64 8/15 Verifying : nss-softokn-freebl-3.90.0-3.el8_8.x86_64 9/15 Verifying : nss-sysinit-3.90.0-3.el8_8.x86_64 10/15 Verifying : nss-util-3.90.0-3.el8_8.x86_64 11/15 Verifying : tzdata-java-2023c-2.el8.noarch 12/15 Verifying : avahi-libs-0.7-21.el8_9.1.x86_64 13/15 Verifying : cups-libs-1:2.2.6-54.el8_9.x86_64 14/15 Verifying : lksctp-tools-1.0.18-3.el8.x86_64 15/15 Installed: alsa-lib-1.2.9-1.el8.x86_64 avahi-libs-0.7-21.el8_9.1.x86_64 copy-jdk-configs-4.0-2.el8.noarch cups-libs-1:2.2.6-54.el8_9.x86_64 java-17-openjdk-headless-1:17.0.9.0.9-2.el8_8.x86_64 javapackages-filesystem-5.3.0-2.module+el8.3.0+125+5da1ae29.noarch lksctp-tools-1.0.18-3.el8.x86_64 lua-5.3.4-12.el8.x86_64 nspr-4.35.0-1.el8_8.x86_64 nss-3.90.0-3.el8_8.x86_64 nss-softokn-3.90.0-3.el8_8.x86_64 nss-softokn-freebl-3.90.0-3.el8_8.x86_64 nss-sysinit-3.90.0-3.el8_8.x86_64 nss-util-3.90.0-3.el8_8.x86_64 tzdata-java-2023c-2.el8.noarch Complete! [root@keen-mule ~]# java -version openjdk version "17.0.9" 2023-10-17 LTS OpenJDK Runtime Environment (Red_Hat-17.0.9.0.9-1) (build 17.0.9+9-LTS) OpenJDK 64-Bit Server VM (Red_Hat-17.0.9.0.9-1) (build 17.0.9+9-LTS, mixed mode, sharing) Install the Tomcat package. It will install java-1.8.0-openjdk-headless as part of its dependencies: [root@keen-mule ~]# dnf install tomcat Last metadata expiration check: 0:00:25 ago on Thu 04 Jan 2024 01:31:55 PM UTC. Dependencies resolved. ============================================================================================================================================================================================================================================== Package Architecture Version Repository Size ============================================================================================================================================================================================================================================== Installing: tomcat noarch 1:9.0.62-27.el8_9 appstream 90 k Installing dependencies: ecj noarch 1:4.20-10.el8 appstream 2.0 M freetype x86_64 2.9.1-9.el8 baseos 393 k java-1.8.0-openjdk-headless x86_64 1:1.8.0.392.b08-4.el8_8 appstream 34 M javapackages-tools noarch 5.3.0-2.module+el8.3.0+125+5da1ae29 appstream 43 k libpng x86_64 2:1.6.34-5.el8 baseos 125 k tomcat-el-3.0-api noarch 1:9.0.62-27.el8_9 appstream 105 k tomcat-jsp-2.3-api noarch 1:9.0.62-27.el8_9 appstream 64 k tomcat-lib noarch 1:9.0.62-27.el8_9 appstream 5.9 M tomcat-servlet-4.0-api noarch 1:9.0.62-27.el8_9 appstream 285 k Transaction Summary ============================================================================================================================================================================================================================================== Install 10 Packages Total download size: 43 M Installed size: 130 M Is this ok [y/N]: ^COperation aborted. This is *despite* java-17-openjdk-headless already being installed. What could be causing this? According to the repoquery below, the Tomcat dependencies should be satisifed by Java 17 as well as Java 8. [root@keen-mule ~]# dnf repoquery --requires tomcat Last metadata expiration check: 0:10:05 ago on Thu 04 Jan 2024 01:31:55 PM UTC. (java-headless >= 1:1.8 or java-1.8.0-headless or java-11-headless or java-17-headless or java >= 1:1.8) /bin/bash /bin/sh javapackages-tools shadow-utils systemd tomcat-lib = 1:9.0.62-27.el8_9 tomcat-lib = 1:9.0.62-9.el8 | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2024-01-04 13:44 | Per Lundberg | New Issue |