[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#651380: unexpected restart of (half-configured) service



Package: apt
Version: 0.7.20.2+lenny2
Severity: wishlist

If a package is in a half-configured state, apt tries to finish setting it up, it would be a nice improvement this was warned about.

That would be okay, apt does in fact mention it, however it's easy to miss it in the output ("1 not fully installed or removed"). A nice improvement would be to list the package in question and also to mention that the service will be configured.

A real-life example might explain a scenario where this would have been useful (note that I don't normally administer the box in question - I wouldn't have left it like this!) Notice my "OMG! ^C" :-)

~# apt-get install bacula-fd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  bacula-common
Suggested packages:
  bacula-doc bacula-traymonitor
The following NEW packages will be installed
  bacula-common bacula-fd
0 upgraded, 2 newly installed, 0 to remove and 35 not upgraded.
1 not fully installed or removed.
Need to get 608kB of archives.
After this operation, 1352kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get: 1 http://ftp.uk.debian.org lenny/main bacula-common 2.4.4-1 [403kB]
Get: 2 http://ftp.uk.debian.org lenny/main bacula-fd 2.4.4-1 [205kB]
Fetched 608kB in 4s (139kB/s)
Selecting previously deselected package bacula-common.
(Reading database ... 28394 files and directories currently installed.)
Unpacking bacula-common (from .../bacula-common_2.4.4-1_amd64.deb) ...
Adding user 'bacula'... Ok.
Selecting previously deselected package bacula-fd.
Unpacking bacula-fd (from .../bacula-fd_2.4.4-1_amd64.deb) ...
Processing triggers for man-db ...
Setting up mysql-server-5.0 (5.0.51a-24+lenny4) ...
Stopping MySQL database server: mysqld^Cdpkg: error processing mysql-server-5.0 (--configure):
 subprocess post-installation script killed by signal (Interrupt)
Setting up bacula-common (2.4.4-1) ...
Setting up bacula-fd (2.4.4-1) ...
Starting Bacula File daemon: bacula-fd.
Errors were encountered while processing:
 mysql-server-5.0



Reply to: