Bug#930019: default-jre wants to uninstall sysvinit-core to install systemd
Le 18/07/2019 à 12:21, Trek a écrit : > going up the reverse dependency tree it happens: > > libpam-systemd (is needed by) > dbus-user-session > dconf-service >dconf-gsettings-backend > libgtk-3-common > libgtk-3-0 > openjdk-11-jre > default-jre Thank you for confirming my doubts. > so to resolve the issue, you have three options: There is also a 4th option, which is to fix #926316 since installing systemd isn't supposed to change the init system in the first place. Emmanuel Bourg
Bug#930019: default-jre wants to uninstall sysvinit-core to install systemd
On Wed, 17 Jul 2019 10:41:39 +0200 Emmanuel Bourg wrote: > I suspect openjdk-11 ends up pulling libpam-systemd in its dependency > graph, which triggers #926316. going up the reverse dependency tree it happens: libpam-systemd (is needed by) dbus-user-session dconf-service dconf-gsettings-backend libgtk-3-common libgtk-3-0 openjdk-11-jre default-jre so to resolve the issue, you have three options: 1. openjdk-11-jre depends on libgtk2.0-0 or libgtk-3-0, so to fix it you can install libgtk2.0-0 and not libgtk-3-0 2. libgtk-3-common depends on dconf-gsettings-backend or gsettings-backend (provided by gconf-gsettings-backend), so you can install libgtk-3-0 and gconf-gsettings-backend without dconf-gsettings-backend 3. dconf-service depends on default-dbus-session-bus or dbus-session-bus (provided by dbus-x11), again you can install dbus-x11 instead of dbus-user-session and it will not require systemd actually I prefer a fourth option, but it require a small patch to the libgtk-3-0 binary package, to remove gsettings-backend from dependencies and it runs fine, showing this message: GLib-GIO-Message: 11:19:12.298: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications. to apply the patch (attached) you should do as user: fakeroot apt download libgtk-3-common dpkg-deb -R libgtk-3-common_3.24.5-1_all.deb libgtk-3-common patch -d libgtk-3-common -p1 diff -urN a/DEBIAN/control b/DEBIAN/control --- a/DEBIAN/control 2019-02-05 18:02:24.0 +0100 +++ b/DEBIAN/control 2019-07-18 12:05:28.739714053 +0200 @@ -1,11 +1,10 @@ Package: libgtk-3-common Source: gtk+3.0 -Version: 3.24.5-1 +Version: 3.24.5-1++fix Architecture: all Maintainer: Debian GNOME Maintainers Installed-Size: 24939 -Depends: dconf-gsettings-backend | gsettings-backend -Recommends: libgtk-3-0 +Recommends: libgtk-3-0, dconf-gsettings-backend | gsettings-backend Section: misc Priority: optional Multi-Arch: foreign
Bug#930019: default-jre wants to uninstall sysvinit-core to install systemd
Hi Gianluigi, Thank you for the report. default-jre simply depends on the default OpenJDK package and doesn't interact with the initd system, the issue is actually with openjdk-11 or one of its dependencies. I suspect openjdk-11 ends up pulling libpam-systemd in its dependency graph, which triggers #926316. Emmanuel Bourg
Bug#930019: default-jre wants to uninstall sysvinit-core to install systemd
Package: default-jre Version: 2:1.11-71 Severity: important I've just installed buster and I'm using sysvinit-core instead of systemd, when I ask to install default-jre (without recommends) apt-get asks me to remove sysvinit-core and install systemd. Blacklisting systemd with apt pinning makes apt-get to install default-jre without touching sysvinit-core, but not always. Once I've got this error: The following packages have unmet dependencies: default-jre : Depends: openjdk-11-jre but it is not going to be installed Regards -- System Information: Debian Release: 10.0 APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 4.9.0-9-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) Versions of packages default-jre depends on: ii default-jre-headless 2:1.11-71 pn openjdk-11-jre default-jre recommends no packages. default-jre suggests no packages.