Bug#317646: AW: [Pkg-nagios-devel] Bug#317646: nagios-common fails to install on a (more or less) clean system

Gunther Stammwitz "Gunther Stammwitz" <gstammw@gmx.net>, 317646@bugs.debian.org
Sun, 10 Jul 2005 17:33:26 +0200


Hello Sean,

Thanks a lot for you reply.

I have purged the packages now but problem does still exits!
Please see below:

 apt-get --purge remove nagios-text nagios-plugins nagios-common && =
apt-get
install nagios-text
Reading Package Lists... Done
Building Dependency Tree... Done
Package nagios-text is not installed, so not removed
Package nagios-plugins is not installed, so not removed
Package nagios-common is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  nagios-common nagios-plugins
The following NEW packages will be installed:
  nagios-common nagios-plugins nagios-text
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/2473kB of archives.
After unpacking 7025kB of additional disk space will be used.
Do you want to continue? [Y/n]=20
Preconfiguring packages ...
Selecting previously deselected package nagios-text.
(Reading database ... 43405 files and directories currently installed.)
Unpacking nagios-text (from
.../nagios-text_2%3a1.3-cvs.20050402-2.sarge.1_i386.deb) ...
Selecting previously deselected package nagios-plugins.
Unpacking nagios-plugins (from .../nagios-plugins_1.4-6_i386.deb) ...
Selecting previously deselected package nagios-common.
Unpacking nagios-common (from
.../nagios-common_2%3a1.3-cvs.20050402-2.sarge.1_all.deb) ...
Setting up nagios-plugins (1.4-6) ...

Setting up nagios-text (1.3-cvs.20050402-2.sarge.1) ...

Setting up nagios-common (1.3-cvs.20050402-2.sarge.1) ...
Configuration syntax error detected. Not reloading.

fopen: No such file or directory
apache: could not open document config file /etc/apache/conf.d/nagios
invoke-rc.d: initscript apache, action "reload" failed.
Nagiosadmin already existing with password. To change the
password, please use the /usr/bin/htpasswd command.
Can't open /etc/nagios/nagios.cfg: No such file or directory.
chmod: cannot access `/etc/nagios/cgi.cfg': No such file or directory
chmod: cannot access `/etc/nagios/resource.cfg': No such file or =
directory
dpkg: error processing nagios-common (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 nagios-common
E: Sub-process /usr/bin/dpkg returned an error code (1)
off:~#=20


I hope that you can find the error caus I don't get it :-(

Best regards and a nice weekend,
Gunther
=20

> -----Urspr=FCngliche Nachricht-----
> Von: sean finney [mailto:seanius@debian.org]=20
> Gesendet: Sonntag, 10. Juli 2005 17:24
> An: Gunther Stammwitz; 317646@bugs.debian.org
> Betreff: Re: [Pkg-nagios-devel] Bug#317646: nagios-common=20
> fails to install on a (more or less) clean system
>=20
> hi gunther,
>=20
> On Sun, Jul 10, 2005 at 01:17:43PM +0200, Gunther Stammwitz wrote:
> > # removing the packages..
> > apt-get remove nagios-text nagios-plugins nagios-common #=20
> now we have=20
> > a clean system
> >   off:/etc# rm -rf /etc/nagios     =20
>=20
> this is not quite true.  when you remove a package, the=20
> configuration files are left on the system and preserved. =20
> only when you "purge" a package will you be starting from a=20
> "clean system".  because of this conffiles on a "removed" but=20
> not "purged" system are treated just as if the packages were=20
> actually installed. =20
>=20
> debian policy requires packages to respect not only=20
> modifications of files, but also respect the removal of=20
> files.  if you can reproduce the same problem by calling:
>=20
> apt-get --purge remove nagios-text nagios-plugins=20
> nagios-common apt-get install nagios-text
>=20
> then we have a problem. =20
>=20
> so, i'm going to assume that this information resolves your=20
> problem.  if this is not the case, please reply and let me=20
> know.  otherwise i'll close out this bug in a week or two's time.
>=20
>=20
> 	sean
>=20
> --=20
>=20