Page MenuHomeDevCentral

Provide a clean packages installation on Openfire image
Open, NormalPublic

Description

Initially reported on GitHub by Jonathan GUILLOT (joggee-fr)

The dependencies for .deb packages are broken, as the openfire package requires a JDK.

This is caused by the use of dpkg -i --force-depends /tmp/openfire_${OPENFIRE_VERSION}_all.deb, asking to ignore dependencies.

Openfire container
$ apt install vim
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 openfire : PreDepends: default-jre-headless (>= 11) but it is not going to be installed or
                        java11-runtime-headless or
                        java11-runtime or
                        java13-runtime-headless or
                        java13-runtime or
                        java16-runtime-headless or
                        java16-runtime or
                        java17-runtime-headless or
                        java17-runtime
 vim : Depends: vim-common (= 2:8.2.2434-3+deb11u1) but it is not going to be installed
       Depends: vim-runtime (= 2:8.2.2434-3+deb11u1) but it is not going to be installed
       Depends: libgpm2 (>= 1.20.7) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

One offered solution is to mock the OpenJDK package using equivs, so the system knows there is this package, but that package doesn't install anything. That's an acceptable solution, but it's not clear where to implement it (openfire? a new nasqueron/java base image? docker library base image?).

References: