Ask Your Question
0

Ubuntu having problems with dependencies

asked 2020-06-05 09:55:47 +0200

GalloiseBlonde gravatar image

updated 2020-07-11 20:58:41 +0200

Alex Kemp gravatar image

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)
edit retag flag offensive close merge delete

Comments

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.

ajlittoz gravatar imageajlittoz ( 2020-06-05 12:14:08 +0200 )edit

2 Answers

Sort by » oldest newest most voted
0

answered 2020-06-05 13:06:37 +0200

GalloiseBlonde gravatar image

Looks like advice on this page

https://askubuntu.com/questions/69163...

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.

edit flag offensive delete link more
0

answered 2020-06-05 11:54:00 +0200

ProLogic gravatar image

updated 2020-06-05 11:57:33 +0200

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: https://askubuntu.com/questions/76082...

man snap

Might be your friend, hope it helps

edit flag offensive delete link more

Comments

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

GalloiseBlonde gravatar imageGalloiseBlonde ( 2020-06-05 12:19:57 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2020-06-05 09:55:47 +0200

Seen: 149 times

Last updated: Jun 05