Bug#1144232: init script bug preventing removal

Eduard Bloch <[email protected]>
Newsgroups gmane.linux.debian.devel.bugs.rc
Message-ID <[email protected]>
Package: sheepdog
Version: 0.8.3-5+b1
Severity: serious

While installing some other package:

Installing dependencies:
  libcurl4-gnutls  perl-modules-5.42

REMOVING:
  came  gnash-common  gosmore  libcupt3-0-downloadmethod-curl  libre-engine-re2-perl  sheepdog

Summary:
  Upgrading: 122, Installing: 2, Removing: 6, Not Upgrading: 552
  13 not fully installed or removed.
  Download size: 0 B / 16.5 MB
  Space needed: 3,286 kB / 2,719 MB available

Continue? [Y/n] 
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
Reading changelogs... Done
Extracting templates from packages: 100%
(Reading database… 815453 files and directories currently installed.)
Removing sheepdog (0.8.3-5+b1)…
Failed to stop sheepdog.service: Unit sheepdog.service not loaded.
invoke-rc.d: initscript sheepdog, action "stop" failed.
dpkg: error processing package sheepdog (--remove):
 old sheepdog package prerm maintainer script subprocess failed with exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
 sheepdog
Processing was halted because there were too many errors.
needrestart is being skipped since dpkg has failed
Error: Sub-process /usr/bin/dpkg returned an error code (1)


So let's add some "set -x" to prerm and init scripts:

(Reading database… 815453 files and directories currently installed.)
Removing sheepdog (0.8.3-5+b1)…
+ [ -x /etc/init.d/sheepdog ]
+ invoke-rc.d sheepdog stop
Failed to stop sheepdog.service: Unit sheepdog.service not loaded.
invoke-rc.d: initscript sheepdog, action "stop" failed.
+ exit 1
dpkg: error processing package sheepdog (--remove):
 old sheepdog package prerm maintainer script subprocess failed with exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
 sheepdog
Processing was halted because there were too many errors.
needrestart is being skipped since dpkg has failed
Error: Sub-process /usr/bin/dpkg returned an error code (1)




-- System Information:
Debian Release: forky/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (500, 'testing'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 7.2.0-rc7 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages sheepdog depends on:
ii  debconf [debconf-2.0]                 1.5.92
ii  dpkg                                  1.23.7
ii  libc6                                 2.42-17
ii  libcfg7                               3.1.10-3
ii  libcpg4                               3.1.10-3
ii  libcurl3t64-gnutls [libcurl3-gnutls]  8.20.0-2
ii  libfcgi0t64 [libfcgi0ldbl]            2.4.5-0.1+b2
ii  libfuse2t64 [libfuse2]                2.9.9-9+b2
ii  libzookeeper-mt2                      3.9.5-2

Versions of packages sheepdog recommends:
pn  corosync  <none>

sheepdog suggests no packages.

-- debconf information:
* sheepdog/start: false
* sheepdog/daemon_args:

-- 
08:29 <HE> Moin.
08:30 <aba> oh, die Studenten werden wach und ich bin noch nicht im Büro. Da
	habe ich wohl verschlafen
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.