Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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!?
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 .
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.