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.
Can't Install LibreOffice due to Dependency Problem
Forum rules
LMDE 2 has reached end of support as of 1-1-2019
LMDE 2 has reached end of support as of 1-1-2019
Can't Install LibreOffice due to Dependency Problem
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.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Can't Install LibreOffice due to Dependency Problem
And there's your problem. Mint does not recommend runningGameranand wrote:I ran
sudo apt-get update && sudo apt-get dist upgrade
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
Re: Can't Install LibreOffice due to Dependency Problem
As jimallyn said: You created your own problem.
Open synaptic and search for broken packages.
Open synaptic and search for broken packages.
Re: Can't Install LibreOffice due to Dependency Problem
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.
- Fred Barclay
- Level 12
- Posts: 4185
- Joined: Sat Sep 13, 2014 11:12 am
- Location: USA primarily
Re: Can't Install LibreOffice due to Dependency Problem
I believe there is something else going on here as well.
Did you perhaps mix repos? What do your repos look like currently?
You should not be dependent upon a Ubuntu package in Debian or LMDE, particularly a Ubuntu Xenial package.Depends: libreoffice-core (= 1:5.2.0~rc1-0ubuntu1~xenial1) but it is not going to be installed
Did you perhaps mix repos? What do your repos look like currently?
Code: Select all
inxi -r
Re: Can't Install LibreOffice due to Dependency Problem
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.
- Fred Barclay
- Level 12
- Posts: 4185
- Joined: Sat Sep 13, 2014 11:12 am
- Location: USA primarily
Re: Can't Install LibreOffice due to Dependency Problem
Let's make sure that no ubuntu packages are installed to your system.
What do 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.
What do
Code: Select all
apt-show-versions | grep ubuntu
apt-show-versions | grep xenial
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.