Why there are two versions of L.O. on Ubuntu 20?

Hello,
I removed libreoffice 7 with apt remove and reinstalled libreoffice 7.1 with sudo add-apt-repository ppa:libreoffice/ppa; sudo apt install libreoffice. It look like I have one version running:

$ libreoffice --version
LibreOffice 7.1.2.2 10(Build:2)

But then, two versions open up depending on the document I am using:

and

To note different icon sets. How can I keep the latest?
Thanks

Check the title of the application windows. One shows “LibreOffice Writer” while the other shows “LibreOffice 7.1 Writer”. I’m pretty sure you have in fact 2 versions installed. Please let us know

  • Output from ls -l /opt/ | grep -i libreoffice
  • Information from Help ->About LibreOffice from both application windows.
  • Output of dpkg --list | awk '/ii/&&/libreoffice/||/libobasis/{print $2,$3}'

One version is 7.1.3.2, the other is 7.1.2.2. The output is:

$ ls -l /opt/ | grep -i libreoffice
$ dpkg --list | awk '/ii/&&/libreoffice/||/libobasis/{print $2,$3}'
liblibreoffice-java 1:7.1.2~rc2-0ubuntu0.20.04.1~lo3
libreoffice 1:7.1.2~rc2-0ubuntu0.20.04.1~lo3
libreoffice-base 1:7.1.2~rc2-0ubuntu0.20.04.1~lo3
libreoffice-base-core 1:7.1.2~rc2-0ubuntu0.20.04.1~lo3
libreoffice-base-drivers 1:7.1.2~rc2-0ubuntu0.20.04.1~lo3
libreoffice-calc 1:7.1.2~rc2-0ubuntu0.20.04.1~lo3
libreoffice-common 1:7.1.2~rc2-0ubuntu0.20.04.1~lo3
libreoffice-core 1:7.1.2~rc2-0ubuntu0.20.04.1~lo3
libreoffice-draw 1:7.1.2~rc2-0ubuntu0.20.04.1~lo3
libreoffice-gnome 1:7.1.2~rc2-0ubuntu0.20.04.1~lo3
libreoffice-gtk3 1:7.1.2~rc2-0ubuntu0.20.04.1~lo3
libreoffice-impress 1:7.1.2~rc2-0ubuntu0.20.04.1~lo3
libreoffice-java-common 1:7.1.2~rc2-0ubuntu0.20.04.1~lo3
libreoffice-math 1:7.1.2~rc2-0ubuntu0.20.04.1~lo3
libreoffice-nlpsolver 0.9+LibO7.1.2~rc2-0ubuntu0.20.04.1~lo3

libreoffice-nlpsolver 0.9+LibO7.1.2~rc2-0ubuntu0.20.04.1~lo3
libreoffice-report-builder 1:7.1.2~rc2-0ubuntu0.20.04.1~lo3
libreoffice-report-builder-bin 1:7.1.2~rc2-0ubuntu0.20.04.1~lo3
libreoffice-script-provider-bsh 1:7.1.2~rc2-0ubuntu0.20.04.1~lo3
libreoffice-script-provider-js 1:7.1.2~rc2-0ubuntu0.20.04.1~lo3
libreoffice-script-provider-python 1:7.1.2~rc2-0ubuntu0.20.04.1~lo3
libreoffice-sdbc-firebird 1:7.1.2~rc2-0ubuntu0.20.04.1~lo3
libreoffice-sdbc-hsqldb 1:7.1.2~rc2-0ubuntu0.20.04.1~lo3
libreoffice-sdbc-mysql 1:7.1.2~rc2-0ubuntu0.20.04.1~lo3
libreoffice-sdbc-postgresql 1:7.1.2~rc2-0ubuntu0.20.04.1~lo3
libreoffice-style-colibre 1:7.1.2~rc2-0ubuntu0.20.04.1~lo3
libreoffice-style-elementary 1:7.1.2~rc2-0ubuntu0.20.04.1~lo3
libreoffice-style-yaru 1:7.1.2~rc2-0ubuntu0.20.04.1~lo3
libreoffice-wiki-publisher 1.2.0+LibO7.1.2~rc2-0ubuntu0.20.04.1~lo3
libreoffice-writer 1:7.1.2~rc2-0ubuntu0.20.04.1~lo3

Ok - if there is nothing in /opt (which would be the default location for TDF packages) and dpkg output only shows 7.1.2.2, I need to assume you installed a snap, AppImage or flatpak package in addition - but you did not show what I have requested (Information from Help ->About LibreOffice) hence I cannot decide.

The About is shown here: https://u.cubeupload.com/gigux/LO.png the versions are 7.1.3.2 and 7.1.2.2. Probably one comes from snap. Can I remove it?

Hint: To upload large data and images use edit link below your question and right of Comments

Hello,

[1] Check output snap list for LibreOffice - most likely you see something like this:

 user@system:~$ snap list
 Name               Version                     Rev    Tracking       Publisher   Notes
    core18             20210309                    1997   latest/stable  canonical✓  base
    gnome-3-28-1804    3.28.0-19-g98f9e67.98f9e67  145    latest/stable  canonical✓  -
    gtk-common-themes  0.1-52-gb92ac40             1515   latest/stable  canonical✓  -
    libreoffice        7.1.3.2                     213    latest/stable  canonical✓  -
    snapd              2.49.2                      11588  latest/stable  canonical✓  snapd

[2] Run sudo snap remove libreoffice to remove the snap release.

[3] Keep in mind that generally it is a bad idea to mix repositories for a specific software.

Hope that helps.