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

Re: Several packages fail to install, exit status 10



Oliver Elphick wrote:
On Sun, 2002-03-03 at 05:49, Kent West wrote:

Removing xdm ...
dpkg: error processing xdm (--purge):
subprocess pre-removal script returned error exit status 10


The exit status is a number returned by a program as a short indication
of whether it succeeded (0) or failed (non-zero).

The problem you are having is in a script called
/var/lib/dpkg/info/xdm.prerm - this is the pre-removal script for xdm.

This is the removal script; it is not going to be cured by a new
package, since you aren't installing any new package

Now, I have no idea what the particular error may be.  This is how to
find out (all actions need root privilege):

Edit the script file and insert "set -x" as the second line.

# dpkg --purge xdm

As each line in the script is executed, it will be printed with + in
front of it.  Take a look at what happens just before the script exits
(with an error) and cure it.



Thanks for the response Oliver! For anyone paying attention, here's the results of Oliver's suggestion (last few lines of output only):

++ set -- remove
++ unset _old_opts
+ db_unregister shared/default-x-display-manager
+ echo 'UNREGISTER shared/default-x-display-manager'
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=shared/default-x-display-manager doesn't exist
+ return 10
dpkg: error processing xdm (--purge):
 subprocess pre-removal script returned error exit status 10
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 10
Errors were encountered while processing:
 xdm


Anyone want to venture an idea as to what the next step should be?

Kent





Reply to: