Bug#732461: needrestart: fails to install, remove, and install again

2014-01-02 Thread Thomas Liske
Hi Andreas,

On 12/18/2013 10:49 AM, Andreas Beckmann wrote:
 Package: needrestart
 Version: 0.4-1
 Severity: serious
 User: debian...@lists.debian.org
 Usertags: piuparts
 
 Hi,
 
 during a test with piuparts I noticed your package failed to install,
 remove (but not purge), and install again.
 Before the second installation the package is in config-files-remaining
 state. The configuration is remaining from the last version that was
 successfully configured - which is the same version that is going to be
 installed again.
 
 Like a plain failure on initial install this makes the package too buggy
 for a release, thus the severity.

it is even more worse. After removing the package it breaks dpkg to
install/upgrade/uninstall any packages. As a workaround you have to
manually disable/remove the old config file
/etc/dpkg/dpkg.cfg.d/needrestart.

I've improved the upstream config template to handle this issue
gracefully:
https://github.com/liske/needrestart/commit/327830f4bf2f573704d5135e8beb1204a3543126


HTH,
Thomas


From the attached log (scroll to the bottom...):
 
 0m22.3s DEBUG: Starting command: ['chroot', '/tmp/piupartss/tmpwc6DQn', 
 'apt-get', '-y', 'install', 'needrestart=0.4-1']
 0m22.8s DUMP: 
   Reading package lists...
   Building dependency tree...
   Reading state information...
   The following NEW packages will be installed:
 needrestart
   debconf: delaying package configuration, since apt-utils is not installed
   0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
   Need to get 0 B/10.9 kB of archives.
   After this operation, 124 kB of additional disk space will be used.
   /bin/bash: /usr/lib/needrestart/dpkg-status: No such file or directory
   Selecting previously unselected package needrestart.
   (Reading database ... 8301 files and directories currently installed.)
   Preparing to unpack .../needrestart_0.4-1_all.deb ...
   E: Sub-process /usr/bin/dpkg exited unexpectedly
 0m22.8s ERROR: Command failed (status=100): ['chroot', 
 '/tmp/piupartss/tmpwc6DQn', 'apt-get', '-y', 'install', 'needrestart=0.4-1']
 
 
 cheers,
 
 Andreas
 


-- 

::  WWW: http://fiasko-nw.net/~thomas/  ::
   :::  Jabber:   xmpp:tho...@jabber.fiasko-nw.net  :::
::  flickr:  http://www.flickr.com/photos/laugufe/  ::


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#732461: needrestart: fails to install, remove, and install again

2013-12-18 Thread Andreas Beckmann
Package: needrestart
Version: 0.4-1
Severity: serious
User: debian...@lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package failed to install,
remove (but not purge), and install again.
Before the second installation the package is in config-files-remaining
state. The configuration is remaining from the last version that was
successfully configured - which is the same version that is going to be
installed again.

Like a plain failure on initial install this makes the package too buggy
for a release, thus the severity.

From the attached log (scroll to the bottom...):

0m22.3s DEBUG: Starting command: ['chroot', '/tmp/piupartss/tmpwc6DQn', 
'apt-get', '-y', 'install', 'needrestart=0.4-1']
0m22.8s DUMP: 
  Reading package lists...
  Building dependency tree...
  Reading state information...
  The following NEW packages will be installed:
needrestart
  debconf: delaying package configuration, since apt-utils is not installed
  0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  Need to get 0 B/10.9 kB of archives.
  After this operation, 124 kB of additional disk space will be used.
  /bin/bash: /usr/lib/needrestart/dpkg-status: No such file or directory
  Selecting previously unselected package needrestart.
  (Reading database ... 8301 files and directories currently installed.)
  Preparing to unpack .../needrestart_0.4-1_all.deb ...
  E: Sub-process /usr/bin/dpkg exited unexpectedly
0m22.8s ERROR: Command failed (status=100): ['chroot', 
'/tmp/piupartss/tmpwc6DQn', 'apt-get', '-y', 'install', 'needrestart=0.4-1']


cheers,

Andreas


needrestart_0.4-1.log.gz
Description: GNU Zip compressed data