[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#854041: systemd: dpkg fails for systemd package when upgrading from jessie to stretch



On 3 February 2017 at 08:03, Carsten Brandt <debian@cebe.cc> wrote:
>
> Package: systemd
> Version: 215-17+deb8u6
> Severity: normal
>
> Dear Maintainer,
>
> while upgrading from jessie to stretch I encounter the following error with dpkg trying to upgrade systemd package:
>
>                 # apt-get dist-upgrade
>         ...
>                 dpkg: systemd: Abhängigkeitsprobleme, wird aber wie gefordert dennoch entfernt:
>                  dbus-user-session hängt ab von systemd; aber:
>                   Paket systemd soll entfernt werden.
>                  systemd-sysv hängt ab von systemd (= 215-17+deb8u6).
>                  systemd-sysv hängt ab von systemd.
>                  systemd-sysv hängt ab von systemd (= 215-17+deb8u6).
>                  systemd-sysv hängt ab von systemd.
>                  libpam-systemd:amd64 hängt ab von systemd (= 215-17+deb8u6).
>
>                 (Lese Datenbank ... 307696 Dateien und Verzeichnisse sind derzeit installiert.)
>                 Entfernen von systemd (215-17+deb8u6) ...
>                 systemd is the active init system, please switch to another before removing systemd.
>                 dpkg: Fehler beim Bearbeiten des Paketes systemd (--remove):
>                  Unterprozess installiertes pre-removal-Skript gab den Fehlerwert 1 zurück
>                 Failed to stop lib-init-rw.mount: Unit lib-init-rw.mount not loaded.
>                 addgroup: Die Gruppe »systemd-journal« existiert bereits als Systemgruppe. Programmende.
>                 Fehler traten auf beim Bearbeiten von:
>                  systemd
>                 E: Sub-process /usr/bin/dpkg returned an error code (1)

>
> The full output can be found at the following URL:
> https://gist.github.com/cebe/67c135b990d5c7a92149e4e7113c555c

> Init: systemd (via /run/systemd/system)

So, apt decided it needed to temporarily remove systemd for some
reason, and systemd errors out because removing systemd while running
under it is a bad idea[1].

Dear apt maintainers, any idea on what conditions could result in apt
deciding to temporarily remove systemd?


[1] https://sources.debian.net/src/systemd/232-15/debian/systemd.prerm/#L10

-- 

Saludos,
Felipe Sateler


Reply to: