Dependencies error

Johnny Rosenberg gurus.knugum at gmail.com
Sat Oct 3 11:44:29 UTC 2015


I tried to install the MATE desktop environment in Ubuntu 14.04. I ran the
following lines:
sudo apt-add-repository ppa:ubuntu-mate-dev/ppa
sudo apt-add-repository ppa:ubuntu-mate-dev/trusty-mate
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install --no-install-recommends ubuntu-mate-core
ubuntu-mate-desktop

This ran for a couple of minutes and ended with an error regarding
LibreOffice and missing dependencies.

I guess I need to say that I didn't have the Ubuntu version of LibreOffice
installed before running those commands. I had the ”vanilla” version
installed with their deb files. I usually can't stand LibreOffice and its
many horrible bugs, so I use Apache OpenOffice instead, which bugs doesn't
make me as angry as the LibreOffice ones.

So I guess it's no surprise that I ran into some dependency problems when
installing the Mate desktop. Anyway, I was asked to run ”apt-get -f
install”, so I did and I got the same errors once again. Here's what
happened:

~$ LANG=C !!
LANG=C sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer
required:
  linux-headers-3.13.0-62 linux-headers-3.13.0-62-generic
  linux-image-3.13.0-62-generic linux-image-extra-3.13.0-62-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libreoffice-common
Suggested packages:
  libreoffice-style-crystal libreoffice-style-hicontrast
  libreoffice-style-oxygen libreoffice-style-sifr libreoffice-style-tango
The following NEW packages will be installed:
  libreoffice-common
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
14 not fully installed or removed.
Need to get 0 B/19.9 MB of archives.
After this operation, 76.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 583382 files and directories currently installed.)
Preparing to unpack .../libreoffice-common_1%3a4.2.8-0ubuntu2_all.deb ...
Unpacking libreoffice-common (1:4.2.8-0ubuntu2) ...
dpkg: error processing archive
/var/cache/apt/archives/libreoffice-common_1%3a4.2.8-0ubuntu2_all.deb
(--unpack):
 trying to overwrite '/usr/bin/soffice', which is also in package
openoffice-debian-menus 4.1.1-9775
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
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for gnome-icon-theme (3.10.0-0ubuntu2) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Unknown media type in type 'uri/mms'
Unknown media type in type 'uri/mmst'
Unknown media type in type 'uri/mmsu'
Unknown media type in type 'uri/pnm'
Unknown media type in type 'uri/rtspt'
Unknown media type in type 'uri/rtspu'
Processing triggers for mime-support (3.54ubuntu1.1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Errors were encountered while processing:
 /var/cache/apt/archives/libreoffice-common_1%3a4.2.8-0ubuntu2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
~$

Also, when doing ”apt-get autoremove”, this happens:
~$ LANG=C sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 libreoffice-core : Depends: libreoffice-common (> 1:4.2.8) but it is not
installed
 libreoffice-ogltrans : Depends: libreoffice-common but it is not installed
E: Unmet dependencies. Try using -f.
~$

So what I want to do now is probably the following:
Remove the ”libreoffice-core” and ”libreoffice-ogltrans” packages, since I
don't want them anyway.
However, I can't do this, look what happens:
~$ LANG=C sudo apt-get purge libreoffice-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libreoffice-avmedia-backend-gstreamer : Depends: libreoffice-core but it
is not going to be installed
 libreoffice-base-core : Depends: libreoffice-core (= 1:4.2.8-0ubuntu2) but
it is not going to be installed
 libreoffice-calc : Depends: libreoffice-core (= 1:4.2.8-0ubuntu2) but it
is not going to be installed
 libreoffice-draw : Depends: libreoffice-core (= 1:4.2.8-0ubuntu2) but it
is not going to be installed
 libreoffice-gnome : Depends: libreoffice-core (= 1:4.2.8-0ubuntu2) but it
is not going to be installed
 libreoffice-gtk : Depends: libreoffice-core (= 1:4.2.8-0ubuntu2) but it is
not going to be installed
 libreoffice-impress : Depends: libreoffice-core (= 1:4.2.8-0ubuntu2) but
it is not going to be installed
 libreoffice-math : Depends: libreoffice-core (= 1:4.2.8-0ubuntu2) but it
is not going to be installed
 libreoffice-ogltrans : Depends: libreoffice-common but it is not going to
be installed
                        Depends: libreoffice-core but it is not going to be
installed
 libreoffice-pdfimport : Depends: libreoffice-core but it is not going to
be installed
 libreoffice-writer : Depends: libreoffice-core (= 1:4.2.8-0ubuntu2) but it
is not going to be installed
 python3-uno : Depends: libreoffice-core (= 1:4.2.8-0ubuntu2) but it is not
going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or
specify a solution).
~$

So this is a mess, right?
What's the best way to deal with this?
I just want to get rid of every trace of LibreOffice and dependency issues,
that's all. If I need to also remove the vanilla LibreOffice, I will,
though I'm not quite sure how to do that. It's not the latest version
anyway.


Kind regards

Johnny Rosenberg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20151003/af24c9b4/attachment.html>


More information about the ubuntu-users mailing list