Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've run into some trouble while I was trying to update my packages. I did

sudo apt-get update

sudo apt-get upgrade

All went okay but there was some error from libreoffice. I dont need any office tools with this machine so I decided to remove it using

sudo apt-get remove libreoffice

which give me this error

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libreoffice is not installed, so not removed
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libreoffice-base-core : Depends: libreoffice-core (= 1:3.5.7-0ubuntu4) but 1:3.5.2-          2ubuntu1 is to be installed
libreoffice-calc : Depends: libreoffice-core (= 1:3.5.3-0ubuntu1) but 1:3.5.2-2ubuntu1 is to be installed
                Depends: libreoffice-base-core (= 1:3.5.3-0ubuntu1) but 1:3.5.7-0ubuntu4 is to be installed
 libreoffice-draw : Depends: libreoffice-core (= 1:3.5.7-0ubuntu4) but 1:3.5.2-2ubuntu1 is to be installed
 libreoffice-impress : Depends: libreoffice-core (= 1:3.5.7-0ubuntu4) but 1:3.5.2-2ubuntu1 is to be installed
 libreoffice-kde : Depends: libreoffice-core (= 1:3.5.7-0ubuntu4) but 1:3.5.2-2ubuntu1 is to be installed
 libreoffice-math : Depends: libreoffice-core (= 1:3.5.7-0ubuntu4) but 1:3.5.2-2ubuntu1 is to be installed
 libreoffice-writer : Depends: libreoffice-core (= 1:3.5.3-0ubuntu1) but 1:3.5.2-2ubuntu1 is to be installed
                  Depends: libreoffice-base-core (= 1:3.5.3-0ubuntu1) but 1:3.5.7-0ubuntu4 is to be installed
 python-uno : Depends: libreoffice-core (= 1:3.5.7-0ubuntu4) but 1:3.5.2-2ubuntu1 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a  solution)

So after that I've tried

sudo apt-get -f install

sudo apt-get dist-upgrade

sudo apt-get clean

sudo apt-get autoremove

sudo apt-get autoremove -f

sudo apt-get purge "libreoffice*"

sudo apt-get remove --purge "libreoffice*"

But every time I get the same error in the end. I've even tried using "fix/repair packages" (or similar) from the GRUB boot menus recovery option. It did redownload everything but still throws error on libreoffice.

Also, everytime I start Ubuntu software center, it says there's a problem with a package and asks to repair it. It says then that it encounters and error (libreoffice is the culprit here too...) and asks to repair again and again and again...

I am using Kubuntu (pretty old I think, installed it around 1½ years ago and haven't updated it much)

EDIT: I've also tried doing

sudo apt-get update

sudo add-apt-repository ppa:libreoffice/ppa

sudo apt-get install libreoffice

After that it did download and install it again but ended up with dependancy errors again. On some other question someone suggested to try

sudo dpkg --configure -a

Doesn't work... I cannot even remove or install anything else! I'm starting to hate libreoffice from the bottom of my soul, and I haven't ever even used it...

share|improve this question
    
Okay, I got it to work, thanks to askubuntu.com/a/259167/164651 –  funkkel Jun 6 '13 at 8:29
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.