Page 1 of 1

[Solved] OpenOffice and LibreOffice Setup on Ubuntu 18.04

PostPosted: Wed Sep 19, 2018 2:01 am
by tbogg
I setup OpenOffice following the directions. Purging LibreOffice but OpenOffice would not open so I tried to go back to LibreOffice and now I'm stuck in a vicious cycle.

Any help on how to clean this up and get on or the other running on Ubuntu 18.04 would be greatly appreciated.

The following packages have unmet dependencies:
libreoffice-core : Depends: libreoffice-common (> 1:6.0.3) but it is not going to be installed
libreoffice-java-common : Depends: libreoffice-common (= 1:6.0.3-0ubuntu1) but it is not going to be installed
libreoffice-ogltrans : Depends: libreoffice-common but it is not going to be installed
libreoffice-report-builder : Depends: libreoffice-common (= 1:6.0.3-0ubuntu1) but it is not going to be installed
libreoffice-script-provider-bsh : Depends: libreoffice-common (= 1:6.0.3-0ubuntu1) but it is not going to be installed
libreoffice-script-provider-js : Depends: libreoffice-common (= 1:6.0.3-0ubuntu1) but it is not going to be installed
libreoffice-script-provider-python : Depends: libreoffice-common (= 1:6.0.3-0ubuntu1) but it is not going to be installed
libreoffice-style-galaxy : Depends: libreoffice-common (= 1:6.0.3-0ubuntu1) but it is not going to be installed
libreoffice-style-tango : Depends: libreoffice-common (= 1:6.0.3-0ubuntu1) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Re: OpenOffice and LibreOffice Setup on Ubuntu 18.04

PostPosted: Wed Sep 19, 2018 8:09 am
by Hagar Delest
Hi and welcome to the forum!

Have you tried the command lines in: [Tutorial] Installing Apache OpenOffice on GNU/Linux?
Have you tried the apt fix command?
You can use Synaptic to make sure there is no remaining package linked to AOO or LibO.

Re: OpenOffice and LibreOffice Setup on Ubuntu 18.04

PostPosted: Wed Sep 19, 2018 9:57 am
by RoryOF
Try
Code: Select all   Expand viewCollapse view
sudo apt --fix-broken install

in a command prompt.

Then
Code: Select all   Expand viewCollapse view
sudo apt purge libreoffice*

Re: OpenOffice and LibreOffice Setup on Ubuntu 18.04

PostPosted: Wed Sep 19, 2018 10:25 am
by tbogg
I have tried these and get the following messages:

--fix-broken returns and I can't get the openoffice-debian-menus uninstalled

Unpacking libreoffice-common (1:6.0.3-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/libreoffice-common_1%3a6.0.3-0ubuntu1_all.deb (--unpack):
trying to overwrite '/usr/bin/soffice', which is also in package openoffice-debian-menus 4.1.5-9789
rmdir: failed to remove '/var/lib/libreoffice/share/prereg/': No such file or directory
rmdir: failed to remove '/var/lib/libreoffice/share/': No such file or directory
rmdir: failed to remove '/var/lib/libreoffice/program/': No such file or directory
rmdir: failed to remove '/var/lib/libreoffice': No such file or directory
rmdir: failed to remove '/var/lib/libreoffice': No such file or directory
Errors were encountered while processing:
/var/cache/apt/archives/libreoffice-common_1%3a6.0.3-0ubuntu1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

purge returns:

E: Unable to locate package libreoffice-common_1%3a6.0.3-0ubuntu1_all.deb
E: Couldn't find any package by glob 'libreoffice-common_1%3a6.0.3-0ubuntu1_all.deb'
E: Couldn't find any package by regex 'libreoffice-common_1%3a6.0.3-0ubuntu1_all.deb'

Re: OpenOffice and LibreOffice Setup on Ubuntu 18.04

PostPosted: Wed Sep 19, 2018 10:52 am
by RoryOF
If it can't find the package it doesn't need to purge it. The error message is probably because it can't find the package.

I installed OO on an Xubuntu 18.04.1 machine the other day. I may have needed to install OO twice, the second install overwriting something that it had complained about the first time - to be honest, I don't remember exactly - I do these things on autopilot.

Re: OpenOffice and LibreOffice Setup on Ubuntu 18.04

PostPosted: Wed Sep 19, 2018 9:34 pm
by Hagar Delest
With Synaptic you can search for the packages, it may find one that was left by the process. Once spotted, it may be easier to remove it.

Re: OpenOffice and LibreOffice Setup on Ubuntu 18.04

PostPosted: Wed Sep 19, 2018 10:03 pm
by tbogg
I can't install Synaptic due to the same error messages.

Re: OpenOffice and LibreOffice Setup on Ubuntu 18.04

PostPosted: Wed Sep 19, 2018 10:19 pm
by Hagar Delest
If you try sudo apt-get remove openoffice-debian-menus, what does it return?

Re: OpenOffice and LibreOffice Setup on Ubuntu 18.04

PostPosted: Wed Sep 19, 2018 10:27 pm
by tbogg
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libreoffice-core : Depends: libreoffice-common (> 1:6.0.3) but it is not going to be installed
libreoffice-java-common : Depends: libreoffice-common (= 1:6.0.3-0ubuntu1) but it is not going to be installed
libreoffice-ogltrans : Depends: libreoffice-common but it is not going to be installed
libreoffice-report-builder : Depends: libreoffice-common (= 1:6.0.3-0ubuntu1) but it is not going to be installed
libreoffice-script-provider-bsh : Depends: libreoffice-common (= 1:6.0.3-0ubuntu1) but it is not going to be installed
libreoffice-script-provider-js : Depends: libreoffice-common (= 1:6.0.3-0ubuntu1) but it is not going to be installed
libreoffice-script-provider-python : Depends: libreoffice-common (= 1:6.0.3-0ubuntu1) but it is not going to be installed
libreoffice-style-galaxy : Depends: libreoffice-common (= 1:6.0.3-0ubuntu1) but it is not going to be installed
libreoffice-style-tango : Depends: libreoffice-common (= 1:6.0.3-0ubuntu1) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Re: OpenOffice and LibreOffice Setup on Ubuntu 18.04

PostPosted: Thu Sep 20, 2018 8:03 am
by Hagar Delest
Well, catch 22 situation...
No idea. Perhaps there are tutos on the net to remove packages by brute force.

Re: OpenOffice and LibreOffice Setup on Ubuntu 18.04

PostPosted: Thu Sep 20, 2018 8:44 am
by Villeroy
Hagar Delest wrote:Well, catch 22 situation...
No idea. Perhaps there are tutos on the net to remove packages by brute force.

That's the -f switch. And it is a true catch 22 because the -f switch also leads to situations like this (enforce changes and don't care about dependencies).

I would try to install the missing packages which belong to the LibreOffice of the distribution. Currently I'm using that one. It works fine for me.
In parallel I have OpenOffice 4.1.5 installed without the desktop-integration package.

Re: OpenOffice and LibreOffice Setup on Ubuntu 18.04

PostPosted: Thu Sep 20, 2018 12:38 pm
by tbogg
Yeah I've tried to look, I think my main problem is I need to be able to undo the dependency on this folder by OpenOffice:

trying to overwrite '/usr/bin/soffice', which is also in package openoffice-debian-menus 4.1.5-9789

But I haven't been able to fine anything on how to uninstall the menus or anything. It really is a catch 22 and has all other installs blocked. I hate to have to format the machine.

Re: OpenOffice and LibreOffice Setup on Ubuntu 18.04

PostPosted: Thu Sep 20, 2018 2:23 pm
by Bill
I had both AOO and LO successfully installed on Ubuntu Mate 18.04. I purged LO then reinstalled LO and had the same error messages. The problem does seem to be caused by the openoffice-debian-menus package, but the apt-get command recommended by Hagar didn't remove the package.

I used
Code: Select all   Expand viewCollapse view
sudo dpkg -P openoffice-debian-menus
to remove the package, then
Code: Select all   Expand viewCollapse view
sudo apt --fix-broken install
to fix the LO installation. LO now appears on the menu and starts normally, but AOO is no longer on the menu.

Re: OpenOffice and LibreOffice Setup on Ubuntu 18.04

PostPosted: Thu Sep 20, 2018 3:25 pm
by tbogg
Thank you that was the fix.

Re: [Solved] OpenOffice and LibreOffice Setup on Ubuntu 18.0

PostPosted: Thu Dec 26, 2019 7:11 am
by ntala
Bill wrote:I had both AOO and LO successfully installed on Ubuntu Mate 18.04. I purged LO then reinstalled LO and had the same error messages. The problem does seem to be caused by the openoffice-debian-menus package, but the apt-get command recommended by Hagar didn't remove the package.

I used
Code: Select all   Expand viewCollapse view
sudo dpkg -P openoffice-debian-menus
to remove the package, then
Code: Select all   Expand viewCollapse view
sudo apt --fix-broken install
to fix the LO installation. LO now appears on the menu and starts normally, but AOO is no longer on the menu.


man, I was this close to throw the fk computer against the wall.
thank you

Re: [Solved] OpenOffice and LibreOffice Setup on Ubuntu 18.0

PostPosted: Fri Jun 26, 2020 4:12 pm
by adunbar
ntala wrote:
Bill wrote:I had both AOO and LO successfully installed on Ubuntu Mate 18.04. I purged LO then reinstalled LO and had the same error messages. The problem does seem to be caused by the openoffice-debian-menus package, but the apt-get command recommended by Hagar didn't remove the package.

I used
Code: Select all   Expand viewCollapse view
sudo dpkg -P openoffice-debian-menus
to remove the package, then
Code: Select all   Expand viewCollapse view
sudo apt --fix-broken install
to fix the LO installation. LO now appears on the menu and starts normally, but AOO is no longer on the menu.


man, I was this close to throw the fk computer against the wall.
thank you

Thank you so much! I have been trying to resolve this for months.This post should be at the No 1 position on google search for this problem!