<div dir="ltr">I tried to install the MATE desktop environment in Ubuntu 14.04. I ran the following lines:<div>sudo apt-add-repository ppa:ubuntu-mate-dev/ppa<br></div><div>sudo apt-add-repository ppa:ubuntu-mate-dev/trusty-mate<br></div><div>sudo apt-get update && sudo apt-get upgrade<br></div><div>sudo apt-get install --no-install-recommends ubuntu-mate-core ubuntu-mate-desktop<br></div><div><br></div><div>This ran for a couple of minutes and ended with an error regarding LibreOffice and missing dependencies.</div><div><br></div><div>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.</div><div><br></div><div>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:</div><div><br></div><div><div>~$ LANG=C !!</div><div>LANG=C sudo apt-get -f install</div><div>Reading package lists... Done</div><div>Building dependency tree       </div><div>Reading state information... Done</div><div>Correcting dependencies... Done</div><div>The following packages were automatically installed and are no longer required:</div><div>  linux-headers-3.13.0-62 linux-headers-3.13.0-62-generic</div><div>  linux-image-3.13.0-62-generic linux-image-extra-3.13.0-62-generic</div><div>Use 'apt-get autoremove' to remove them.</div><div>The following extra packages will be installed:</div><div>  libreoffice-common</div><div>Suggested packages:</div><div>  libreoffice-style-crystal libreoffice-style-hicontrast</div><div>  libreoffice-style-oxygen libreoffice-style-sifr libreoffice-style-tango</div><div>The following NEW packages will be installed:</div><div>  libreoffice-common</div><div>0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.</div><div>14 not fully installed or removed.</div><div>Need to get 0 B/19.9 MB of archives.</div><div>After this operation, 76.1 MB of additional disk space will be used.</div><div>Do you want to continue? [Y/n] y</div><div>(Reading database ... 583382 files and directories currently installed.)</div><div>Preparing to unpack .../libreoffice-common_1%3a4.2.8-0ubuntu2_all.deb ...</div><div>Unpacking libreoffice-common (1:4.2.8-0ubuntu2) ...</div><div>dpkg: error processing archive /var/cache/apt/archives/libreoffice-common_1%3a4.2.8-0ubuntu2_all.deb (--unpack):</div><div> trying to overwrite '/usr/bin/soffice', which is also in package openoffice-debian-menus 4.1.1-9775</div><div>rmdir: failed to remove '/var/lib/libreoffice/share/prereg/': No such file or directory</div><div>rmdir: failed to remove '/var/lib/libreoffice/share/': No such file or directory</div><div>rmdir: failed to remove '/var/lib/libreoffice/program/': No such file or directory</div><div>rmdir: failed to remove '/var/lib/libreoffice': No such file or directory</div><div>rmdir: failed to remove '/var/lib/libreoffice': No such file or directory</div><div>Processing triggers for man-db (2.6.7.1-1ubuntu1) ...</div><div>Processing triggers for gnome-icon-theme (3.10.0-0ubuntu2) ...</div><div>Processing triggers for hicolor-icon-theme (0.13-1) ...</div><div>Processing triggers for shared-mime-info (1.2-0ubuntu3) ...</div><div>Unknown media type in type 'all/all'</div><div>Unknown media type in type 'all/allfiles'</div><div>Unknown media type in type 'uri/mms'</div><div>Unknown media type in type 'uri/mmst'</div><div>Unknown media type in type 'uri/mmsu'</div><div>Unknown media type in type 'uri/pnm'</div><div>Unknown media type in type 'uri/rtspt'</div><div>Unknown media type in type 'uri/rtspu'</div><div>Processing triggers for mime-support (3.54ubuntu1.1) ...</div><div>Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...</div><div>Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...</div><div>Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ...</div><div>Rebuilding /usr/share/applications/bamf-2.index...</div><div>Errors were encountered while processing:</div><div> /var/cache/apt/archives/libreoffice-common_1%3a4.2.8-0ubuntu2_all.deb</div><div>E: Sub-process /usr/bin/dpkg returned an error code (1)</div><div>~$</div></div><div><br></div><div>Also, when doing ”apt-get autoremove”, this happens:</div><div><div>~$ LANG=C sudo apt-get autoremove</div><div>Reading package lists... Done</div><div>Building dependency tree       </div><div>Reading state information... Done</div><div>You might want to run 'apt-get -f install' to correct these.</div><div>The following packages have unmet dependencies:</div><div> libreoffice-core : Depends: libreoffice-common (> 1:4.2.8) but it is not installed</div><div> libreoffice-ogltrans : Depends: libreoffice-common but it is not installed</div><div>E: Unmet dependencies. Try using -f.</div><div>~$ </div></div><div><br></div><div>So what I want to do now is probably the following:</div><div>Remove the ”libreoffice-core” and ”libreoffice-ogltrans” packages, since I don't want them anyway.</div><div>However, I can't do this, look what happens:</div><div><div>~$ LANG=C sudo apt-get purge libreoffice-core </div><div>Reading package lists... Done</div><div>Building dependency tree       </div><div>Reading state information... Done</div><div>You might want to run 'apt-get -f install' to correct these:</div><div>The following packages have unmet dependencies:</div><div> libreoffice-avmedia-backend-gstreamer : Depends: libreoffice-core but it is not going to be installed</div><div> libreoffice-base-core : Depends: libreoffice-core (= 1:4.2.8-0ubuntu2) but it is not going to be installed</div><div> libreoffice-calc : Depends: libreoffice-core (= 1:4.2.8-0ubuntu2) but it is not going to be installed</div><div> libreoffice-draw : Depends: libreoffice-core (= 1:4.2.8-0ubuntu2) but it is not going to be installed</div><div> libreoffice-gnome : Depends: libreoffice-core (= 1:4.2.8-0ubuntu2) but it is not going to be installed</div><div> libreoffice-gtk : Depends: libreoffice-core (= 1:4.2.8-0ubuntu2) but it is not going to be installed</div><div> libreoffice-impress : Depends: libreoffice-core (= 1:4.2.8-0ubuntu2) but it is not going to be installed</div><div> libreoffice-math : Depends: libreoffice-core (= 1:4.2.8-0ubuntu2) but it is not going to be installed</div><div> libreoffice-ogltrans : Depends: libreoffice-common but it is not going to be installed</div><div>                        Depends: libreoffice-core but it is not going to be installed</div><div> libreoffice-pdfimport : Depends: libreoffice-core but it is not going to be installed</div><div> libreoffice-writer : Depends: libreoffice-core (= 1:4.2.8-0ubuntu2) but it is not going to be installed</div><div> python3-uno : Depends: libreoffice-core (= 1:4.2.8-0ubuntu2) but it is not going to be installed</div><div>E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).</div><div>~$ </div></div><div><br></div><div>So this is a mess, right? </div><div>What's the best way to deal with this?</div><div>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.</div><div><br></div><div><br></div><div><div>Kind regards</div><div><br></div><div>Johnny Rosenberg</div></div><div><br></div></div>