5

I found a problem with the way the default install of LibreOffice Impress handles fonts on Lubuntu 20.04. That problem is covered here. In short, the solution was to remove the default install of LibreOffice (the one that gets installed by installing Lubuntu) and installing the snap version of LibreOffice.

Wanting to keep my system nice and clean, I wanted to remove the existing (default) LibreOffice. I tried:

sudo apt remove libreoffice

I also tried various versions of the above, including --purge, etc. However, it kept saying that LibreOffice was not installed, so it would not remove it.

Eventually, I found the software center for Lubuntu (my main machine is Ubuntu). There I could remove, individually, Calc, Impress, Writer, etc. However, there was nothing to remove the over-arching app of LibreOffice.

To be clear, that over-arching shell is still there. I can launch it but it cannot read any files because Impress, etc. are all gone. However, it's still there and I would like to remove it.

I found a lot of help at my other question, including this answer which indicated I should be able to use:

sudo apt remove libreoffice-base-core
sudo apt autoremove

This did not work as apt does not see that LibreOffice is installed.

Package 'libreoffice-base-core' is not installed

I then tried this, based on advice from that answer:

dpkg -l |grep "ii libre"

It returns nothing at all.

I don't see a way to remove the default install of LibreOffice, which I do not need because the snap version is working well.

When I type in:

whereis libreoffice

I get:

libreoffice: /usr/bin/libreoffice /usr/lib/libreoffice /etc/libreoffice /usr/share/libreoffice /snap/bin/libreoffice.draw /snap/bin/libreoffice /snap/bin/libreoffice.math /snap/bin/libreoffice.base /snap/bin/libreoffice.calc /snap/bin/libreoffice.impress /snap/bin/libreoffice.writer /snap/bin/libreoffice.filebug /usr/share/man/man1/libreoffice.1.gz

Can I simply delete everything named libreoffice* everywhere outside of /snap/bin/? Will that break anything?

5
  • 1
    apt purge libreoffice-common?
    – int_ua
    May 6, 2020 at 0:52
  • apt-cache show lubuntu-desktop | grep libreoffice will show you all the LO packages installed with Lubuntu.
    – wxl
    May 6, 2020 at 1:00
  • I'm very sorry; two key packages were missing from my removal (apt remove libreoffice-core libreoffice-common libreoffice-style-breeze) and lo.styles... I've corrected
    – guiverc
    May 6, 2020 at 1:34
  • @int_ua Your common was the correct answer. That one line finally got rid of everything. If you change your answer to what you wrote in your comment, I will mark that correct.
    – John
    May 6, 2020 at 2:13
  • Done. Thank you, John, and thank you, guiverc. Oh, and wxl too :)
    – int_ua
    May 6, 2020 at 2:21

2 Answers 2

6

Basically, it's apt purge libreoffice-common.

You should be able to get almost full list of related packages with dpkg -S /usr/lib/libreoffice. At first glance it looks like all of them are safe to apt purge. List of packages that were first "level" for Lubuntu:

$ apt depends lubuntu-desktop | grep libreoffice

  Recommends: libreoffice-calc
  Recommends: libreoffice-gtk3
  Recommends: libreoffice-impress
  Recommends: libreoffice-qt5
  Recommends: libreoffice-style-breeze
  Recommends: libreoffice-writer
3

Firstly I'll apologize for the errors I missed in my answer on Easy fix for LibreOffice Impress font problems on Lubutu 20.04?. I have corrected it.

To remove the additional packages you need to run

sudo apt remove libreoffice-core libreoffice-common libreoffice-style-breeze
sudo apt autoremove

I'm not removing every package... via command hoping for the rest being removed when the autoremove is performed. I'd executed that later because they were left, but had failed to copy those packages into my prior answer, for which I'll apologize again. Sorry.

3
  • 1
    Nailed it! Actually, I only needed "libreoffice-common" to be removed and the rest with with it.
    – John
    May 6, 2020 at 2:08
  • :) but also :( for me... I'd aimed to use the minimal number of packages (I should have looked at the seed files but didn't) and yours (libreoffice-common is better than mine. If you want to write it up as an answer; I'll delete this answer. (and Well done !!)
    – guiverc
    May 6, 2020 at 2:12
  • int_ua had the magic. Since he's updated his answer ( to match his original comment), I've accepted that as the correct one. You can delete this one. Thanks for all your help (and good luck testing 20.10).
    – John
    May 6, 2020 at 2:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .