Tomas Pospisek wrote:
You could have a try at downgrading openbsd-inetd manually (through dpkg) back to 0.20050402-4 [1] and then try to reproduce the problem again with aptitude...
?
*t

I went ahead and downgraded openbsd-inetd back to 0.20050402-4 and retried the upgrade.
Everything went smoothly.

So I decided to try some of the other packages that I upgraded previously at the same time. They all seemed to go well except for uw-imapd (the one with the error previously).

This time around there was a more serious error than just openbsd-inetd not restarting. uw-imapd hung during its postrm. The actual postrm script went defunct and the parent perl instance had to be killed to get aptitude moving again. After killing the uw-imapd install, the openbsd-inetd install failed every time.

Both uw-imapd and openbsd-inetd can be upgraded by themselves just fine. When they are upgraded together, they cause problems. I have attached my console log.

Here's what I see happening:
1) during removal of openbsd-inetd, we stop the running instance of inetd. - I can confirm this occurs 2) during removal of uw-imapd, we invoke update-inetd (postrm), this seems to hang. (I do not remember a hang during my initial report... there was a dpkg error with uw-imapd, but not a hang) 3) Step 2 above causes a new instance of inetd to be started - I can confirm this occurs via manually stopping inetd and invoking update-inetd manually 4) when openbsd-inetd attempts to start a new process, there is already one running.


I can reproduce this 100% on my system with the following packages being upgraded via aptitude at the same time.
[UPGRADE] openbsd-inetd 0.20050402-4 -> 0.20050402-5
[UPGRADE] uw-imapd 7:2002edebian1-13 -> 7:2002edebian1-13.1

Since openbsd-inetd has already been removed, any future attempt to install it requires manual intervention.

I can imagine this scenario is going to apply to many more packages than just uw-imapd. Anything that performs an update-inetd during its postrm script will cause this same behavior.

--Mike Young
newcomp:/var/cache/apt/archives# dpkg -i uw-imapd_2002edebian1-13_amd64.deb
dpkg - warning: downgrading uw-imapd from 2002edebian1-13.1 to 2002edebian1-13.
(Reading database ... 201197 files and directories currently installed.)
Preparing to replace uw-imapd 7:2002edebian1-13.1 (using uw-imapd_2002edebian1-13_amd64.deb) ...
Unpacking replacement uw-imapd ...
Setting up uw-imapd (2002edebian1-13) ...
You already have /etc/ssl/certs/imapd.pem

newcomp:/var/cache/apt/archives# dpkg -i openbsd-inetd_0.20050402-4_amd64.deb
dpkg - warning: downgrading openbsd-inetd from 0.20050402-5 to 0.20050402-4.
(Reading database ... 201197 files and directories currently installed.)
Preparing to replace openbsd-inetd 0.20050402-5 (using openbsd-inetd_0.20050402-4_amd64.deb) ...
Stopping internet superserver: inetd.
Unpacking replacement openbsd-inetd ...
Setting up openbsd-inetd (0.20050402-4) ...
Installing new version of config file /etc/init.d/openbsd-inetd ...
Starting internet superserver: inetd.

newcomp:/var/cache/apt/archives# aptitude
Preconfiguring packages ...
(Reading database ... 201197 files and directories currently installed.)
Preparing to replace openbsd-inetd 0.20050402-4 (using .../openbsd-inetd_0.20050402-5_amd64.deb) ...
Stopping internet superserver: inetd.
Unpacking replacement openbsd-inetd ...
Preparing to replace uw-imapd 7:2002edebian1-13 (using .../uw-imapd_7%3a2002edebian1-13.1_amd64.deb) ...
Unpacking replacement uw-imapd ...
dpkg: error processing /var/cache/apt/archives/uw-imapd_7%3a2002edebian1-13.1_amd64.deb (--unpack):
 dpkg: warning - old post-removal script killed by signal (Terminated)

You already have /etc/ssl/certs/imapd.pem
Errors were encountered while processing:
 /var/cache/apt/archives/uw-imapd_7%3a2002edebian1-13.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up openbsd-inetd (0.20050402-5) ...
Installing new version of config file /etc/init.d/openbsd-inetd ...
Starting internet superserver: inetdinvoke-rc.d: initscript openbsd-inetd, action "start" failed.
dpkg: error processing openbsd-inetd (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 openbsd-inetd
Press return to continue.


Reply via email to