[Pkg-nagios-devel] Bug#283355: nagios-common: Unnecessary failure of postrm script
Olaf van der Spek
Olaf van der Spek <OvdSpek@LIACS.NL>, 283355@bugs.debian.org
Sat, 27 Nov 2004 18:37:25 +0100
Package: nagios-common
Version: 2:1.3-0+pre4
Severity: normal
Hi,
I install nagios-mysql and chose Apache (although I only have Apache 2).
The install failed, and now the remove fails too:
# apt-get remove nagios-mysql --purge
Reading Package Lists... Done
Building Dependency Tree... Done
Package nagios-mysql is not installed, so not removed
The following packages will be REMOVED:
nagios-common
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 3002kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 29338 files and directories currently installed.)
Removing nagios-common ...
rm: cannot remove `/etc/apache/conf.d/nagios': No such file or directory
dpkg: error processing nagios-common (--remove):
subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
nagios-common
E: Sub-process /usr/bin/dpkg returned an error code (1)
Shouldn't the rm failure be considered 'succes' if the directory is gone already?
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-1-686-smp
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages nagios-common depends on:
ii adduser 3.59 Add and remove users and groups
ii apache2-mpm-prefork [httpd] 2.0.52-3 Traditional model for Apache2
ii coreutils [fileutils] 5.2.1-2 The GNU core utilities
ii debconf [debconf-2.0] 1.4.40 Debian configuration management sy
ii mailutils [mailx] 1:0.5-4 GNU mailutils utilities for handli
pn nagios Not found.
ii nagios-plugins 1.3.1.0-12 Plugins for the nagios network mon
-- debconf information:
* nagios/wwwsuid: true
nagios/upgradefromnetsaint:
* nagios/configapache: Apache