Bug#422221: nscd fails to install (incorrectly indented comments in nscd.conf)
Package: nscd
Version: 2.5-5
Severity: grave
Justification: renders package unusable
The package does not install here:
Unpacking nscd (from .../archives/nscd_2.5-5_i386.deb) ...
Setting up nscd (2.5-5) ...
Starting Name Service Cache Daemon: nscd/usr/sbin/nscd:
Parse error:
/usr/sbin/nscd: Unknown option: hosts caching
/usr/sbin/nscd: Parse error:
/usr/sbin/nscd: Unknown option: per default.
/usr/sbin/nscd: failure while reading configuration file;
this is fatal
(failed).
invoke-rc.d: initscript nscd, action "start" failed.
dpkg: error processing nscd (--configure):
subprocess post-installation script returned error exit
status 1
Errors were encountered while processing:
nscd
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up nscd (2.5-5) ...
Starting Name Service Cache Daemon: nscd/usr/sbin/nscd:
Parse error:
/usr/sbin/nscd: Unknown option: hosts caching
/usr/sbin/nscd: Parse error:
/usr/sbin/nscd: Unknown option: per default.
/usr/sbin/nscd: failure while reading configuration file;
this is fatal
(failed).
invoke-rc.d: initscript nscd, action "start" failed.
dpkg: error processing nscd (--configure):
subprocess post-installation script returned error exit
status 1
Errors were encountered while processing:
nscd
--------------------------------------------------
This patch fixes it here:
--- /tmp/nscd.conf 2007-05-04 13:04:17.000000000 +0200
+++ /etc/nscd.conf 2007-05-04 13:04:24.000000000 +0200
@@ -60,8 +60,8 @@
max-db-size group 33554432
auto-propagate group yes
- # hosts caching is broken with gethostby* calls,
hence is now disabled
- # per default. See /usr/share/doc/nscd/NEWS.Debian.
+# hosts caching is broken with gethostby* calls, hence is
now disabled
+# per default. See /usr/share/doc/nscd/NEWS.Debian.
enable-cache hosts no
positive-time-to-live hosts 3600
negative-time-to-live hosts 20
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.18-2-686 (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages nscd depends on:
ii libc6 2.5-5 GNU C Library: Shared libraries
nscd recommends no packages.
-- debconf-show failed
Reply to: