Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-73202

Unable to remove java-21-openjdk

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • CentOS Stream 9, CentOS Stream 10
    • java-21-openjdk
    • None
    • No
    • None
    • rhel-sst-java
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      Remove java-21-openjdk package.

      What is the impact of this issue to you?

      Causes problems with testing Java packages.

      Please provide the package NVR for which the bug is seen:

      java-21-openjdk-21.0.5.0.11-2.el10.1
      java-21-openjdk-21.0.5.0.11-2.el9

      How reproducible is this bug?

      Always.

      Steps to reproduce

      Reproducible on the container images centos:stream9 and centos:stream10

      # dnf -y install java-21-openjdk
      ...
      # dnf remove java-21-openjdk
      Error: 
       Problem: The operation would result in removing the following protected packages: systemd-udev
      (try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
      

      Expected results

      Even if Java depends on systemd, it should be removable.

      Actual results

      Java can not be easily removed and dnf does not tell the user how to force the removal.

              rhn-engineering-ahughes Andrew Hughes
              mkoncek Marián Konček
              Andrew Hughes Andrew Hughes
              David Kutalek David Kutalek
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: