Can't Install LibreOffice due to Dependency Problem

Archived topics about LMDE 1 and LMDE 2
Locked
Gameranand

Can't Install LibreOffice due to Dependency Problem

Post by Gameranand »

I ran

sudo apt-get update && sudo apt-get dist upgrade
and it basically removed my LibreOffice installation. Now when I try to install it again using

sudo apt-get install libreoffice
it gave me dependency problems. So I executed

sudo apt-get purge libreoffice*
then I tried to install but same problem. I am getting this error

gameranand@serenity ~ $ sudo apt-get -f install libreoffice
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libreoffice : Depends: libreoffice-base but it is not going to be installed
Depends: libreoffice-calc but it is not going to be installed
Depends: libreoffice-core (= 1:5.2.0~rc1-0ubuntu1~xenial1) but it is not going to be installed
Depends: libreoffice-draw but it is not going to be installed
Depends: libreoffice-impress but it is not going to be installed
Depends: libreoffice-math but it is not going to be installed
Depends: libreoffice-report-builder-bin but it is not going to be installed
Depends: libreoffice-writer but it is not going to be installed
Depends: libreoffice-avmedia-backend-gstreamer but it is not going to be installed
Depends: python3-uno (>= 4.4.0~beta2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
How do I fix this. I really need the solution because I use Libreoffice on daily basis.
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.
User avatar
jimallyn
Level 19
Level 19
Posts: 9075
Joined: Thu Jun 05, 2014 7:34 pm
Location: Wenatchee, WA USA

Re: Can't Install LibreOffice due to Dependency Problem

Post by jimallyn »

Gameranand wrote:I ran

sudo apt-get update && sudo apt-get dist upgrade
And there's your problem. Mint does not recommend running apt-get dist upgrade. Now you know why. They recommend using the Update Manager they have provided. But stick around, perhaps one of the gurus here can give you some ideas on how to fix your system.
“If the government were coming for your TVs and cars, then you'd be upset. But, as it is, they're only coming for your sons.” - Daniel Berrigan
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Can't Install LibreOffice due to Dependency Problem

Post by Cosmo. »

As jimallyn said: You created your own problem.

Open synaptic and search for broken packages.
Gameranand

Re: Can't Install LibreOffice due to Dependency Problem

Post by Gameranand »

Yes I know that after searching a little. But now how do I fix it. I searched Synaptic packet manager for Broken packages but didn't find any at all.
User avatar
Fred Barclay
Level 12
Level 12
Posts: 4185
Joined: Sat Sep 13, 2014 11:12 am
Location: USA primarily

Re: Can't Install LibreOffice due to Dependency Problem

Post by Fred Barclay »

I believe there is something else going on here as well.
Depends: libreoffice-core (= 1:5.2.0~rc1-0ubuntu1~xenial1) but it is not going to be installed
You should not be dependent upon a Ubuntu package in Debian or LMDE, particularly a Ubuntu Xenial package.

Did you perhaps mix repos? What do your repos look like currently?

Code: Select all

inxi -r
Image
"Once you can accept the universe as matter expanding into nothing that is something, wearing stripes with plaid comes easy."
- Albert Einstein
Gameranand

Re: Can't Install LibreOffice due to Dependency Problem

Post by Gameranand »

Yes Repositories were mixed. Removed them and it solved the problem. However I wanted to use LibreOffice 5 so didn't installed and used external source to Download and install the software.
User avatar
Fred Barclay
Level 12
Level 12
Posts: 4185
Joined: Sat Sep 13, 2014 11:12 am
Location: USA primarily

Re: Can't Install LibreOffice due to Dependency Problem

Post by Fred Barclay »

Let's make sure that no ubuntu packages are installed to your system.

What do

Code: Select all

apt-show-versions | grep ubuntu
apt-show-versions | grep xenial
say?

Additionally, did you know that libreoffice-5 is in jessie-backports? It's what I'm using without any problems, and is much safer than adding additional repos. :)
Image
"Once you can accept the universe as matter expanding into nothing that is something, wearing stripes with plaid comes easy."
- Albert Einstein
Locked

Return to “LMDE Archive”