Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 08-08-2008, 02:51 PM   #1
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:
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:
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!?

Old 08-08-2008, 03:31 PM   #2
LQ Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,863

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
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


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
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
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
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
Senior Member
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,125
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
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.


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

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 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 > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:31 PM.

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