Bug#368587: invoke-rc.d: initscript nscd, action "stop" failed.
Package: nscd
Version: 2.3.6-7
Severity: serious
An invoke-rc.d failure prevents package upgrading.
You should manage that case in prerm in order to avoid
such a problem, or return 0 in case of failure in the
init script, as well. Most servers in debian do the last, AFAIK.
Feel free to close this report if already properly managed in -9 scripts.
klecker:~$ ps -fe|grep nscd
frankie 14797 4397 0 12:27 pts/17 00:00:00 grep nscd
klecker:~$ sudo /etc/init.d/nscd start
Starting Name Service Cache Daemon: nscd.
klecker:~$ ps -fe|grep nscd
root 14804 1 0 12:27 ? 00:00:00 /usr/sbin/nscd
frankie 14812 4397 0 12:27 pts/17 00:00:00 grep nscd
klecker:~$ sudo apt-get -u dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Calculating upgrade... Done
The following packages will be upgraded:
nscd
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
30 not fully installed or removed.
Need to get 0B/136kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue [Y/n]?
Reading package fields... Done
Reading package status... Done
Retrieving bug reports... Done
Reading changelogs... Done
(Reading database ... 164331 files and directories currently installed.)
Preparing to replace nscd 2.3.6-7 (using .../archives/nscd_2.3.6-9_i386.deb) ...
Stopping Name Service Cache Daemon: nscd.
invoke-rc.d: initscript nscd, action "stop" failed.
dpkg: warning - old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
Stopping Name Service Cache Daemon: nscd.
invoke-rc.d: initscript nscd, action "stop" failed.
dpkg: error processing /var/cache/apt/archives/nscd_2.3.6-9_i386.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
Starting Name Service Cache Daemon: nscd.
Errors were encountered while processing:
/var/cache/apt/archives/nscd_2.3.6-9_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-686
Locale: LANG=it_IT@euro, LC_CTYPE=it_IT@euro (charmap=ISO-8859-15)
Versions of packages nscd depends on:
ii libc6 2.3.6-9 GNU C Library: Shared libraries
nscd recommends no packages.
-- no debconf information
Reply to: