[Bug 220208] Re: package nagios2-common 2.9-1 failed to upgrade:
Thierry Carrez
thierry.carrez at canonical.com
Thu Jun 19 16:50:27 BST 2008
In fact it's not the nagios2 prerm that fails, it's the nagios2-common one. It is run after the nagios2 one in upgrade situations.
This minimal patch fixes it.
Test :
Preparing to replace nagios2 2.9-1 (using .../nagios2_2.11-1ubuntu2_amd64.deb) ...
* Stopping nagios2 monitoring daemon nagios2 [ OK ]
Unpacking replacement nagios2 ...
Preparing to replace nagios2-common 2.9-1 (using .../nagios2-common_2.11-1ubuntu2_all.deb) ...
* Stopping nagios2 monitoring daemon nagios2 invoke-rc.d: initscript nagios2, action "stop" failed.
dpkg: warning - old pre-removal script returned error exit status 3
dpkg - trying script from the new package instead ...
* Stopping nagios2 monitoring daemon nagios2 invoke-rc.d: initscript nagios2, action "stop" failed.
dpkg: ... it looks like that went OK.
Unpacking replacement nagios2-common ...
Setting up nagios2-common (2.11-1ubuntu2) ...
Installing new version of config file /etc/nagios2/commands.cfg ...
Installing new version of config file /etc/nagios2/conf.d/localhost_nagios2.cfg ...
Installing new version of config file /etc/nagios2/nagios.cfg ...
Installing new version of config file /etc/nagios2/cgi.cfg ...
Installing new version of config file /etc/init.d/nagios2 ...
Replacing config file /etc/nagios2/apache2.conf with new version
* Reloading web server config apache2 [ OK ]
* Starting nagios2 monitoring daemon nagios2 [ OK ]
Setting up nagios2 (2.11-1ubuntu2) ...
koon at hardy-test:~$
I'll post a cleaner (but heavier) patch soon, that will make use of
dh_installinit --error-handler option to show a "Nagios was probably
already stopped" message (and avoid the lintian warning about lack of
#DEBHELPER# in nagios2-common.prerm).
** Attachment added: "nagios2_upgrade.patch"
http://launchpadlibrarian.net/15438709/nagios2_upgrade.patch
--
package nagios2-common 2.9-1 failed to upgrade:
https://bugs.launchpad.net/bugs/220208
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nagios2 in ubuntu.
More information about the Ubuntu-server-bugs
mailing list