Ubuntu having problems with dependencies

Hi all. I’m having a little problem with Ubuntu. It’s not impacting my use of Libre Office itself (which is great) - it’s interfering with my use of other programmes. Libre Office was installed through Ubuntu Software, the little orange suitcase thing. Anyway, when I try to update I get this error message:

The package system is broken

If you are using third party
repositories then disable them, since
they are a common source of problems.
Now run the following command in a
terminal: apt-get install -f
Transaction failed: The package system
is broken The following packages have
unmet dependencies:

libreoffice-base: Depends: libreoffice-base-core (= 1:6.4.3-0ubuntu0.20.04.1) but 1:6.4.3-0ubuntu0.20.04.1 is installed
                  Depends: libreoffice-base-drivers (= 1:6.4.3-0ubuntu0.20.04.1) but 1:6.4.3-0ubuntu0.20.04.1 is installed
                  Depends: libreoffice-common (>= 1:6.4.0~beta1-2~) but it is not installed
                  Depends: libreoffice-core (= 1:6.4.3-0ubuntu0.20.04.1) but 1:6.4.3-0ubuntu0.20.04.1 is installed
libreoffice-core: Depends: libreoffice-common (> 1:6.4.3) but it is not installed
                  Depends: libnspr4 (>= 2:4.9-2~) but 2:4.25-1 is installed
                  Depends: libnss3 (>= 2:3.16) but 2:3.49.1-1ubuntu1 is installed
libreoffice-java-common: Depends: libreoffice-common but it is not installed
libreoffice-script-provider-bsh: Depends: libreoffice-common but it is not installed
                                 Depends: jre but it is not installed
libreoffice-script-provider-js: Depends: libreoffice-common but it is not installed
                                Depends: jre but it is not installed
libreoffice-script-provider-python: Depends: libreoffice-common but it is not installed

Sorry about all that mess. I don’t know how to format it prettily. Running sudo apt-get install -f gets me this response

(Reading database  ... 237574 files and  directories currently installed.)
Preparing to unpack .../libreoffice-common_1%3a6.4.3-0ubuntu0.20.04.1_all.deb
...
Unpacking libreoffice-common (1:6.4.3-0ubuntu0.20.04.1)
 ...
dpkg: error processing archive /var/cache/apt/archives/libreoffice-common_1%3a6.4.3-0ubuntu0.20.04.1_all.deb
(--unpack):  trying to overwrite '/usr/bin/soffice', which is also in package openoffice-debian-menus 4.1.7-9800 
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.4.3-0ubuntu0.20.04.1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Edited by ajlittoz to address

I don’t know how to format it prettily

But since I have no Ubuntu I am not sure that it really displays as I have formatted.

If I’m not wrong from the 18.04 or even more from the 20.04 version all software installed via the Ubuntu software center are snaps
Which means you might need to update/upgrade via the snap commands, something like:

sudo snap refresh

More about it: ubuntu core - How can I update all Snap packages? - Ask Ubuntu

man snap

Might be your friend,
hope it helps

Sudo snap refresh says all snaps are up to date. :frowning:

Looks like advice on this page

has worked. Fingers crossed I don’t run into any issues down the line, but libre office is working fine and my updates are downloading.