LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 04-30-2008, 10:36 AM   #1
edgjerp
Member
 
Registered: Dec 2004
Location: Trondheim, Norway
Distribution: kubuntu 10.04
Posts: 308

Rep: Reputation: 31
forcibly remove broken package


is it possible to force a broken package away? reinstalling it first is not really possible, because it depends on a number of other packages that fail to configure before reinstalling.

running kubuntu. (or trying to...)
 
Old 04-30-2008, 11:13 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,805

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
Have you tried apt-get --purge <packagename>?
 
Old 04-30-2008, 11:52 AM   #3
edgjerp
Member
 
Registered: Dec 2004
Location: Trondheim, Norway
Distribution: kubuntu 10.04
Posts: 308

Original Poster
Rep: Reputation: 31
"package is in a very bad inconsistent state -you should reinstall it before attempting a removal"

if I just could get rid of it, I would be able to install a proper version.
 
Old 04-30-2008, 12:32 PM   #4
Pikidalto
Member
 
Registered: Apr 2008
Location: North Versailles, PA
Distribution: Ark Linux
Posts: 63

Rep: Reputation: 15
I'm assuming that since Kubuntu uses RPM since it uses apt-get? Try:

rpm -e --nodeps packagename

You'll have to do that with sudo privileges or as the root user.
 
Old 04-30-2008, 12:34 PM   #5
edgjerp
Member
 
Registered: Dec 2004
Location: Trondheim, Norway
Distribution: kubuntu 10.04
Posts: 308

Original Poster
Rep: Reputation: 31
no, kubuntu uses the debian package system.
 
Old 04-30-2008, 12:55 PM   #6
Pikidalto
Member
 
Registered: Apr 2008
Location: North Versailles, PA
Distribution: Ark Linux
Posts: 63

Rep: Reputation: 15
Odd, I've only seen apt-get used with RPM O.o
 
Old 04-30-2008, 01:00 PM   #7
edgjerp
Member
 
Registered: Dec 2004
Location: Trondheim, Norway
Distribution: kubuntu 10.04
Posts: 308

Original Poster
Rep: Reputation: 31
apt-get works on deb also. the native bottom-level interface is dpkg though.

edit: apt was actually designed for debian, but has been modified to work with rpm.

Last edited by edgjerp; 04-30-2008 at 02:12 PM. Reason: more info
 
Old 04-30-2008, 09:18 PM   #8
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Wheezy/Jessie/Sid, Linux Mint DE
Posts: 4,244

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Have you tried "apt-get install -f" (without a package name).

Have you tried "dpkg --remove <nasty_program>" or "dpkg --purge <nasty_program>"?

dpkg also provides a number of force options which let you do really stupid things. Check the man page, but I would only use them as a last resort -- just before you decide to re-install your system. You have been warned.

jlinkels
 
Old 05-01-2008, 01:41 AM   #9
edgjerp
Member
 
Registered: Dec 2004
Location: Trondheim, Norway
Distribution: kubuntu 10.04
Posts: 308

Original Poster
Rep: Reputation: 31
seems like a reinstall is the solution. the force-options on dpkg do not provide a way to forcibly remove a package. both dpkg purge and remove requests that I reinstall the packages before removing.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
remove broken link from gnome desktop exbootie Linux - Newbie 11 11-18-2010 02:07 PM
broken package simasimon Ubuntu 2 12-06-2007 06:16 PM
How Do I Remove A Broken Driver Install darksied Ubuntu 2 11-02-2006 12:29 AM
synaptic package manager forcing me to delete a broken package mbman Linux - Software 6 04-25-2006 10:30 AM
Forcibly Remove Dead Smb Mounts tunasashimi Linux - Networking 3 06-14-2005 12:51 AM


All times are GMT -5. The time now is 09:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration