Bug#745621: modemmanager: pre-removal script fails (with systemd)
I've the same problem. I found a workaround to this : - with systemadm I stop Network-Manager.service and modemmanager.service - after that dpkg -P modemmanager works fine -- Francois Mescam -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#745621: modemmanager: pre-removal script fails (with systemd)
Package: modemmanager Version: 1.0.0-4 Severity: important Removing modemmanager from my desktop system at work fails: +--- | # apt-get purge modemmanager | Reading package lists... Done | Building dependency tree | Reading state information... Done | The following packages will be REMOVED: | modemmanager* | 0 upgraded, 0 newly installed, 1 to remove and 18 not upgraded. | After this operation, 2191 kB disk space will be freed. | Do you want to continue? [Y/n] | (Reading database ... 333498 files and directories currently installed.) | Removing modemmanager (1.0.0-4) ... | Job for ModemManager.service canceled. | dpkg: error processing package modemmanager (--purge): | subprocess installed pre-removal script returned error exit status 1 | Errors were encountered while processing: | modemmanager | E: Sub-process /usr/bin/dpkg returned an error code (1) +--- The system runs systemd/204-8. The prerm script fails in the only line related to systemd: deb-systemd-invoke stop ModemManager.service So the actual problem might be in init-system-helpers. Ansgar -- System Information: Debian Release: jessie/sid APT prefers testing APT policy: (500, 'testing'), (100, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.13-1-amd64 (SMP w/8 CPU cores) Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages modemmanager depends on: ii init-system-helpers1.18 ii libc6 2.18-4 ii libglib2.0-0 2.40.0-2 ii libgudev-1.0-0 204-8 ii libmbim-glib0 1.8.0-1 ii libmm-glib01.0.0-4 ii libpolkit-gobject-1-0 0.105-4 ii libqmi-glib0 1.4.0-1 Versions of packages modemmanager recommends: ii usb-modeswitch 2.1.1+repack0-1 modemmanager suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#745621: modemmanager: pre-removal script fails (with systemd)
Am 23.04.2014 14:37, schrieb Ansgar Burchardt: Package: modemmanager Version: 1.0.0-4 Severity: important Removing modemmanager from my desktop system at work fails: +--- | # apt-get purge modemmanager | Reading package lists... Done | Building dependency tree | Reading state information... Done | The following packages will be REMOVED: | modemmanager* | 0 upgraded, 0 newly installed, 1 to remove and 18 not upgraded. | After this operation, 2191 kB disk space will be freed. | Do you want to continue? [Y/n] | (Reading database ... 333498 files and directories currently installed.) | Removing modemmanager (1.0.0-4) ... | Job for ModemManager.service canceled. | dpkg: error processing package modemmanager (--purge): | subprocess installed pre-removal script returned error exit status 1 | Errors were encountered while processing: | modemmanager | E: Sub-process /usr/bin/dpkg returned an error code (1) +--- ModemManager is a D-Bus activated service. I guess there was an incoming D-Bus request when deb-systemd-invoke stop tried to stop the service in prerm, so this request was cancelled. For socket activated services, we can stop the .socket unit in such a case [0] to avoid being started by an incoming request. For D-Bus activated services there is no such equivalent. So I don't see a good way to fix this. We'd need some kind of manual state a service can be put in during package installation/upgrade/removal time, i.e. it would need support from systemd. I'm not sure if blacklisting the service in prerm would help here. I vaguely remember discussing that a while ago and blacklisting had some unwanted side-effects. This might be a good topic for the sprint this weekend, I think, since we have quite a few D-Bus activated services. Michael [0] http://anonscm.debian.org/gitweb/?p=collab-maint/rsyslog.git;a=blob;f=debian/rsyslog.prerm;hb=HEAD#l6 -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth? signature.asc Description: OpenPGP digital signature