l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
April 21: Google Glass
Next Installfest:
TBD
Latest News:
Mar. 18: Google Glass at LUGOD's April meeting
Page last updated:
2002 Aug 16 18:08

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Help with removal of a stubborn debian package
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Help with removal of a stubborn debian package



Quoting R. Douglas Barbieri (doug@dooglio.net):

> I tried to install KDE3 using the sources specified on this page:
> http://mypage.bluewin.ch/kde3-debian/

Hmm, I had good luck grabbing individual KDE3 packages of interest from
these two sources:

deb http://people.debian.org/~bab/kde3/ ./
deb http://kde3.geniussystems.net/debian/ ./

Notice I didn't say I "installed KDE3".  I have no interest in KDE as a
"desktop", but wanted to get KDE3-related updates to a number of
programs such as KMail, Konqueror, KChart, Kivio, KWord, Kontour,
KPersonalizer, KPresenter, and KSpread.  Versions of all of those from
the above package sources work great with regular window managers such
as Window Maker.

Anyhow, getting back to your immediate problem:

> For some reason, I can't remove the kdm package. 
[...]
> Removing kdm ...
> Stopping K Desktop Manager: not running (/var/run/kdm.pid not found).
> dpkg: error processing kdm (--remove):
>  subprocess pre-removal script returned error exit status 128
> Errors were encountered while processing:
>  kdm
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> Some errors occurred while unpacking. I'm going to configure the
> packages that were installed. This may result in duplicate errors
> or errors caused by missing dependencies. This is OK, only the errors
> above this message are important. Please fix them and run [I]nstall again
> Press enter to continue.

Well, that's rather lame, that the package signals that it can't be
successfully removed just because it's not running (and thus no PID
file).  

The easy way to nuke that problem from orbit is to open up
/var/lib/dpkg/status (the package database) in a text editor.  If that
makes you feel nervous, make a backup copy first.  (Yes, the Debian
package database _is_ a plain ASCII file.)  Now, search forwards for
text "Package: kdm".  That will take you to line one of the paragraph (a
series of consecutive non-empty lines) that constitute the database
entry for kdm.  Remove all of those lines.  Don't worry about whether or
not you also remove empty lines, as long as there remain at least one
between the (previously) adjoining two other entries.  Save.  Exit.

Now, dpkg no longer thinks kdm is installed at all (even though it is).
So, it'll raise no objection whatsoever to further actions such as
retrieving/installing the "kde2" version.  (I.e., this makes your
symptom vanish.)

-- 
"Is it not the beauty of an asynchronous form of discussion that one can go and 
make cups of tea, floss the cat, fluff the geraniums, open the kitchen window 
and scream out it with operatic force, volume, and decorum, and then return to 
the vexed glowing letters calmer of mind and soul?" -- The Cube, forum3000.org
_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
EDGE Tech Corp.
For donating some give-aways for our meetings.