LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-08-2008, 02:51 PM   #1
Slimmay
LQ Newbie
 
Registered: Aug 2008
Posts: 8

Rep: Reputation: 0
Un-removable package???


Ok, I am running my EEE PC 701 off of Xandros, and I removed UnionFs and merged the first two partitions and have been trying to free up some space. I removed the Open Office suite and I then tried to remove "asus-ooo-writer". It came up with:

/home/user> sudo apt-get remove asus-ooo-writer
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED:
asus-ooo-writer
0 upgraded, 0 newly installed, 1 to remove and 108 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 61.3MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 73242 files and directories currently installed.)
Removing asus-ooo-writer ...
dpkg-divert: mismatch on divert-to
when removing `diversion of /usr/share/applications/ooo-writer.desktop to /usr/share/applications/ooo-writer.desktop-orig by asus-ooo-writer'
found `diversion of /usr/share/applications/ooo-writer.desktop to /usr/share/applications/ooo-writer.desktop.orig by asus-ooo-writer'
dpkg: error processing asus-ooo-writer (--remove):
subprocess post-removal script returned error exit status 2
Errors were encountered while processing:
asus-ooo-writer
E: Sub-process /usr/bin/dpkg returned an error code (1)


Every time I try to remove a package now, it thinks I'm trying to remove asus-ooo-writer along with it! I went into synaptic and tried to unmark it but it doesn't work! any suggestions!?

Thanks!
 
Old 08-08-2008, 03:31 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,342

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
It looks like your package manager files may be messed up. Try using dpkg to straighten out the files:

sudo dpkg --configure -a

sudo dpkg --audit

See:

man dpkg

---------------------
Steve Stites

Last edited by jailbait; 08-08-2008 at 03:32 PM. Reason: I forgot sudo
 
Old 08-08-2008, 03:37 PM   #3
klearview
Member
 
Registered: Aug 2006
Location: London
Distribution: Debian, Kubuntu
Posts: 572

Rep: Reputation: 75
Looks like a package removal script bug to me. I had a similar problem LONG time ago - iirc a remove script that needs to be corrected is in /var/lib/dpkg/info .
 
Old 08-09-2008, 07:44 AM   #4
Slimmay
LQ Newbie
 
Registered: Aug 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Question RE: Un-removable package???

sudo dpkg --configure -a does nothing

sudo dpkg --audit shows me that asus-ooo-writer is half installed

man dpkg suggests --purge and --remove BUT nothing seems to work!

Is there no way to fix this problem?
 
Old 08-09-2008, 08:32 AM   #5
klearview
Member
 
Registered: Aug 2006
Location: London
Distribution: Debian, Kubuntu
Posts: 572

Rep: Reputation: 75
Hello again,

From what I can see from your first post in the error you quote dpkg expects to find '/usr/share/applications/ooo-writer.desktop-orig' in the removal script but instead finds '/usr/share/applications/ooo-writer.desktop.orig' .

If I remember correctly (keep in mind though that I had a similar problem a long, long time ago and I might be wrong) the trick is to fix the script first and then run 'apt-get install -f' as root. The script will be in /var/lib/dpkg/info ,probably under name asus-ooo-writer.postrm
 
Old 08-09-2008, 09:13 AM   #6
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
You need to manually remove the divert.

(to see the diversions)
dpkg-divert --list

use dpkg-divert --remove to remove the diversion. If it still complains you can add (dpkg-divert --add) in the diversion its expecting.
 
Old 08-09-2008, 10:51 AM   #7
Slimmay
LQ Newbie
 
Registered: Aug 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Wow, that worked, now the package is completely gone, but I don't care! Thank you all who have posted, but it was 'estabroo' who's idea worked.

Last edited by Slimmay; 08-09-2008 at 11:04 AM.
 
  


Reply

Tags
eee, error, fail, install, package, pc, xandros



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fluxbox - removable media wadsworth Slackware 9 09-11-2009 11:31 PM
Removable Hard Disk yyarin SUSE / openSUSE 6 02-20-2007 09:29 AM
mounting removable media matthewa Linux - Hardware 2 11-12-2005 09:44 PM
Debian and removable devices. Sslaxx Debian 2 02-09-2005 01:24 PM
Removable disk will not unmount czechknight93 Linux - Hardware 6 04-09-2004 01:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:33 AM.

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
Open Source Consulting | Domain Registration