Debian apt-get blues

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Bob George
Date:  
Subject: Debian apt-get blues
I seem to have broken something with Debian by trying (foolishly) to
uninstall wdm while in X. Now I get:

--- cut here --- cut here ---
# apt-get remove wdm
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
wdm
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
2 packages not fully installed or removed.
Need to get 0B of archives. After unpacking 1266kB will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 49948 files and directories currently installed.)
Removing wdm ...
dpkg: error processing wdm (--remove):
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:
wdm
E: Sub-process /usr/bin/dpkg returned an error code (1)
--- cut here --- cut here ---

Installing is no better:

--- cut here --- cut here ---
# apt-get install wdm
Reading Package Lists... Done
Building Dependency Tree... Done
Sorry, wdm is already the newest version.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 packages not fully installed or removed.
Need to get 0B of archives. After unpacking 0B will be used.
Setting up kdm (2.2.2-14) ...
dpkg: error processing kdm (--configure):
subprocess post-installation script returned error exit status 10
Setting up wdm (1.20-15) ...
dpkg: error processing wdm (--configure):
subprocess post-installation script returned error exit status 10
Errors were encountered while processing:
kdm
wdm
localepurge: processing locale files ...
localepurge: processing man pages ...
E: Sub-process /usr/bin/dpkg returned an error code (1)
--- cut here --- cut here ---

So now kdm is broken to boot. I'm in a bit of a quandry, and I would
like to get a graphical login going again. Any suggestions? I've tried
"dpkg-reconfigure wdm", "apt-get --fix-missing wdm" and screaming at
it, but no luck so far.

Thanks,

- Bob