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

Bug#24717: apt dies early if one postinst/preinst dies



Package: apt
Version: 0.1.1

I have a bunch of packages that upgrade previously downloaded... but
in the setup phase, it does some work, gets to xbase, fails the
preinst (because I *am* running X and don't intend to log out any time
this week, but the xbase upgrade can wait...)  and then gets started
on some other package -- and *then* fails with an "E: Sub-process
returned an error code"...  It really should keep going on things that
do work, and report that one later, like dpkg would if it had a batch
of upgrades (like dftp gives it.)

I can repeatedly run "apt-get upgrade", and it'll gradually make
progress, but that's wrong :-)				_Mark_

# apt-get upgrade
Updating package status cache...done
Checking system integrity...ok
The following packages have been kept back
  http-analyze siag 
19 packages upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
10 packages not fully installed or removed.
Need to get 0b/11.3M of archives. After unpacking 125k will be freed.
Do you want to continue? [Y/n] 
Setting up ncurses-bin (1.9.9g-8.8) ...
(Reading database ... 66165 files and directories currently installed.)
Preparing to replace xbase 3.3.2.2-1 (using xbase_3.3.2.2-2.deb) ...
The xbase package is about to be upgraded. To do this, xdm and xfs
must be stopped, and at least one of them has been found running.
When xdm is stopped, all X sessions it manages will be terminated.

WARNING: There appears to be an X session at :0.0
corresponding to this terminal. If this session is managed by xdm,
it is inadvisable to proceed; upgrading X is best done from a
virtual console.

May I stop xdm and xfs? (y/n) [n] 

xdm and xfs will not be stopped. The upgrade of xbase is
incomplete; you must finish it later, when you are ready to allow
xdm and xfs to be stopped.
dpkg: error processing xbase_3.3.2.2-2.deb (--unpack):
 subprocess pre-installation script returned error exit status 1
Preparing to replace libreadline2 2.1-10 (using libreadline2_2.1-10.1.deb) ...
Unpacking replacement libreadline2 ...
Preparing to replace libreadlineg2-dev 2.1-10 (using libreadlineg2-dev_2.1-10.1.deb) ...
Unpacking replacement libreadlineg2-dev ...
Preparing to replace libreadlineg2 2.1-10 (using libreadlineg2_2.1-10.1.deb) ...
Unpacking replacement libreadlineg2 ...
Errors were encountered while processing:
 xbase_3.3.2.2-2.deb
E: Sub-process returned an error code
Exit 100


--  
To UNSUBSCRIBE, email to deity-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: