Can't manage to uninstall Libreoffice-base 4.3

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
kamayok3

Can't manage to uninstall Libreoffice-base 4.3

Post by kamayok3 »

I got this message when I tried Sudo apt-get install -f in terminal.

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
libreoffice-base
0 upgraded, 0 newly installed, 1 to remove and 16 not upgraded.
1 not fully installed or removed.
After this operation, 6,595 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 242210 files and directories currently installed.)
Removing libreoffice-base (1:4.3.0-0ubuntu1~trusty1) ...
No diversion 'diversion of /usr/lib/libreoffice/share/basic/dialog.xlc to /usr/lib/libreoffice/share/basic/dialog.xlc.noaccess by libreoffice-base', none removed.
No diversion 'diversion of /usr/lib/libreoffice/share/basic/script.xlc to /usr/lib/libreoffice/share/basic/script.xlc.noaccess by libreoffice-base', none removed.
/var/lib/dpkg/info/libreoffice-base.postrm: 28: /var/lib/dpkg/info/libreoffice-base.postrm: Syntax error: end of file unexpected (expecting "fi")
dpkg: error processing package libreoffice-base (--remove):
subprocess installed post-removal script returned error exit status 2
Errors were encountered while processing:
libreoffice-base
E: Sub-process /usr/bin/dpkg returned an error code (1)

Can someone guide me on this problem? Now I can't even update softwares in Update Manager because it always stuck at this removing thingy. Thanks.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
PatH57

Re: Can't manage to uninstall Libreoffice-base 4.3

Post by PatH57 »

Hi,

to remove it completely use this:

Code: Select all

sudo apt-get remove --purge libreoffice*

Code: Select all

sudo apt-get clean

Code: Select all

sudo apt-get autoremove
Adler
Level 4
Level 4
Posts: 368
Joined: Mon Jan 01, 2007 9:29 pm
Location: Wilwood, New Jersrey
Contact:

Re: Can't manage to uninstall Libreoffice-base 4.3

Post by Adler »

Hi,

On my way to upgrading to Libreoffice 4.3 I managed to make a mess of it. I've been Googling around, and landed here. I hope some one can help. I have tried removing libreoffice-base via Synaptic, and every known Terminal command that I can think of to use. However, I always end up here:

adler@adler-HP-Spectre-XT-Ultrabook-PC ~ $ sudo apt-get clean
adler@adler-HP-Spectre-XT-Ultrabook-PC ~ $ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
libreoffice-base
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 6,595 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 243818 files and directories currently installed.)
Removing libreoffice-base (1:4.3.0-0ubuntu1~trusty1) ...
No diversion 'diversion of /usr/lib/libreoffice/share/basic/dialog.xlc to /usr/lib/libreoffice/share/basic/dialog.xlc.noaccess by libreoffice-base', none removed.
No diversion 'diversion of /usr/lib/libreoffice/share/basic/script.xlc to /usr/lib/libreoffice/share/basic/script.xlc.noaccess by libreoffice-base', none removed.
/var/lib/dpkg/info/libreoffice-base.postrm: 28: /var/lib/dpkg/info/libreoffice-base.postrm: Syntax error: end of file unexpected (expecting "fi")
dpkg: error processing package libreoffice-base (--remove):
subprocess installed post-removal script returned error exit status 2
Errors were encountered while processing:
libreoffice-base
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any ideas here?
Adler

Wildwood, New Jersey -- On The Jersey Shore
What Doesn't Kill Me, Makes Me Stronger - Friedrich Nietzsche - Was mich nicht umbringt, macht mich starker
Adler's Home @ http://www.jjmacey.net/, And Where I Have Been.
Blog @ http://jjmacey.net/blog/
PatH57

Re: Can't manage to uninstall Libreoffice-base 4.3

Post by PatH57 »

Hi,

did you do this first?

Code: Select all

sudo apt-get remove --purge libreoffice*
Adler
Level 4
Level 4
Posts: 368
Joined: Mon Jan 01, 2007 9:29 pm
Location: Wilwood, New Jersrey
Contact:

Re: Can't manage to uninstall Libreoffice-base 4.3

Post by Adler »

did you do this first?

Code: Select all
sudo apt-get remove --purge libreoffice*
patH57,

I have tried many terminal commands, and still end up here:

The following packages will be REMOVED:
libreoffice-base libreoffice-calc* libreoffice-common* libreoffice-core*
libreoffice-draw* libreoffice-impress* libreoffice-math* libreoffice-writer*
0 upgraded, 0 newly installed, 8 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 6,595 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 273242 files and directories currently installed.)
Removing libreoffice-base (1:4.3.0-0ubuntu1~trusty1) ...
No diversion 'diversion of /usr/lib/libreoffice/share/basic/dialog.xlc to /usr/lib/libreoffice/share/basic/dialog.xlc.noaccess by libreoffice-base', none removed.
No diversion 'diversion of /usr/lib/libreoffice/share/basic/script.xlc to /usr/lib/libreoffice/share/basic/script.xlc.noaccess by libreoffice-base', none removed.
/var/lib/dpkg/info/libreoffice-base.postrm: 28: /var/lib/dpkg/info/libreoffice-base.postrm: Syntax error: end of file unexpected (expecting "fi")
dpkg: error processing package libreoffice-base (--remove):
subprocess installed post-removal script returned error exit status 2
Errors were encountered while processing:
libreoffice-base
E: Sub-process /usr/bin/dpkg returned an error code (1)
adler@adler-HP-Spectre-XT-Ultrabook-PC ~ $
Adler

Wildwood, New Jersey -- On The Jersey Shore
What Doesn't Kill Me, Makes Me Stronger - Friedrich Nietzsche - Was mich nicht umbringt, macht mich starker
Adler's Home @ http://www.jjmacey.net/, And Where I Have Been.
Blog @ http://jjmacey.net/blog/
ibrahimansari

Re: Can't manage to uninstall Libreoffice-base 4.3

Post by ibrahimansari »

Adler wrote:
did you do this first?

Code: Select all
sudo apt-get remove --purge libreoffice*
patH57,

I have tried many terminal commands, and still end up here:

The following packages will be REMOVED:
libreoffice-base libreoffice-calc* libreoffice-common* libreoffice-core*
libreoffice-draw* libreoffice-impress* libreoffice-math* libreoffice-writer*
0 upgraded, 0 newly installed, 8 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 6,595 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 273242 files and directories currently installed.)
Removing libreoffice-base (1:4.3.0-0ubuntu1~trusty1) ...
No diversion 'diversion of /usr/lib/libreoffice/share/basic/dialog.xlc to /usr/lib/libreoffice/share/basic/dialog.xlc.noaccess by libreoffice-base', none removed.
No diversion 'diversion of /usr/lib/libreoffice/share/basic/script.xlc to /usr/lib/libreoffice/share/basic/script.xlc.noaccess by libreoffice-base', none removed.
/var/lib/dpkg/info/libreoffice-base.postrm: 28: /var/lib/dpkg/info/libreoffice-base.postrm: Syntax error: end of file unexpected (expecting "fi")
dpkg: error processing package libreoffice-base (--remove):
subprocess installed post-removal script returned error exit status 2
Errors were encountered while processing:
libreoffice-base
E: Sub-process /usr/bin/dpkg returned an error code (1)
adler@adler-HP-Spectre-XT-Ultrabook-PC ~ $
Well, you could remove it manually by running the commands below.

Code: Select all

mv /var/lib/dpkg/info/libreoffice-base.* /tmp/
dpkg --remove --force-remove-reinstreq libreoffice-base
 
PatH57

Re: Can't manage to uninstall Libreoffice-base 4.3

Post by PatH57 »

seems you have orphaned packages.

try this or install gtkorphan (package manager)
http://www.ubuntugeek.com/cleaning-up-a ... buntu.html
Adler
Level 4
Level 4
Posts: 368
Joined: Mon Jan 01, 2007 9:29 pm
Location: Wilwood, New Jersrey
Contact:

Re: Can't manage to uninstall Libreoffice-base 4.3

Post by Adler »

Well, you could remove it manually by running the commands below.

Code: Select all
mv /var/lib/dpkg/info/libreoffice-base.* /tmp/
dpkg --remove --force-remove-reinstreq libreoffice-base
ibrahimansari,

Thank you! That did the trick.

PatH57,

Thanks for that, but I already tried that, and running Bleachbit, in Root, and as USR.

All in all, updating to the latest libreoffice4.3, has not been easy. LOL!

Gentlemen, thank you for your help!
Adler

Wildwood, New Jersey -- On The Jersey Shore
What Doesn't Kill Me, Makes Me Stronger - Friedrich Nietzsche - Was mich nicht umbringt, macht mich starker
Adler's Home @ http://www.jjmacey.net/, And Where I Have Been.
Blog @ http://jjmacey.net/blog/
Adler
Level 4
Level 4
Posts: 368
Joined: Mon Jan 01, 2007 9:29 pm
Location: Wilwood, New Jersrey
Contact:

Re: Can't manage to uninstall Libreoffice-base 4.3

Post by Adler »

Modes,

You can mark this as SOLVED.
Adler

Wildwood, New Jersey -- On The Jersey Shore
What Doesn't Kill Me, Makes Me Stronger - Friedrich Nietzsche - Was mich nicht umbringt, macht mich starker
Adler's Home @ http://www.jjmacey.net/, And Where I Have Been.
Blog @ http://jjmacey.net/blog/
ibrahimansari

Re: Can't manage to uninstall Libreoffice-base 4.3

Post by ibrahimansari »

Adler wrote:
Well, you could remove it manually by running the commands below.

Code: Select all
mv /var/lib/dpkg/info/libreoffice-base.* /tmp/
dpkg --remove --force-remove-reinstreq libreoffice-base
ibrahimansari,

Thank you! That did the trick.

PatH57,

Thanks for that, but I already tried that, and running Bleachbit, in Root, and as USR.

All in all, updating to the latest libreoffice4.3, has not been easy. LOL!

Gentlemen, thank you for your help!
You're welcome!
Locked

Return to “Beginner Questions”