Update LibreOffice of Ubuntu 18.04 LTS as v6 series

Ubuntu18.04LTS includes LibreOffice by default, but its version is as old as 6.0.2. So, when I investigated to update to a new version, at the time of writing (2020/11/6), there were two versions, 7.0 and 6.4, which are the next versions.

The v7 series doesn't seem to be stable yet, and I didn't want it to be new and heavy, so I tried updating to 6.4.

However, I made a detour from the beginning and made a detour, and as a result, it went well, so I thought that there might be about one person who made the same mistake, so I will record it.

insert ppa

Regarding version upgrade, there seems to be a mechanism to add a repository called ppa, so I added a repository for libreoffice.

$ sudo add-apt-repository -n -y ppa:libreoffice/ppa
$ sudo apt update
:
Get:8 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic InRelease [20.7 kB]
:
Creating a dependency tree
Reading status information...Done
There are 22 packages that can be upgraded. To display'apt list --upgradable'Please run the.

$ sudo apt list --upgradeable
List display...Done
fonts-opensymbol/bionic,bionic 2:102.11+LibO7.0.3-0ubuntu0.18.04.1 all [2:102.10+LibO6.0.7-0ubuntu0.18.04.Upgradable from 10]
libreoffice-avmedia-backend-gstreamer/bionic 1:7.0.3-0ubuntu0.18.04.1 amd64 [1:6.0.7-0ubuntu0.18.04.Upgradable from 10]
libreoffice-base-core/bionic 1:7.0.3-0ubuntu0.18.04.1 amd64 [1:6.0.7-0ubuntu0.18.04.Upgradable from 10]
:
:

···Hmm? ** 7.0.3 is written? ** **

Speaking of which, somewhere it was written that "6 series and 7 series are different, so the ppa to be added is different" ... It seems that it suddenly happened.

Undo ppa

It is not the purpose of this time to include v7 series, so it will have to be deleted once. So, I ran the following command to delete the added repository.

$ sudo add-apt-repository --remove  ppa:libreoffice/ppa
:
(Zurara)
:
To return to the LibreOffice version from the main archive, use ppa-purge. see: http://www.webupd8.org/2009/12/remove-ppa-repositories-via-command.html for details
more information: https://launchpad.net/~libreoffice/+archive/ubuntu/ppa
[ENTER]Press to continue. Ctrl-You can cancel the deletion with c.

Something came out, and I was afraid to be asked so, so I canceled it. When I searched for a way to restore ppa without removing it, I found that there was a package called "ppa-purge", so I installed and ran it.

As I was writing this, I noticed that the output above describes "ppa-purge" ...

$ sudo apt-get install ppa-purge
$ sudo ppa-purge ppa:libreoffice/ppa
Updating packages lists
PPA to be removed: libreoffice ppa
Package revert list generated:
 fonts-opensymbol/bionic libreoffice-avmedia-backend-gstreamer/bionic 
libreoffice-base-core/bionic libreoffice-calc/bionic libreoffice-common/bionic 
libreoffice-core/bionic libreoffice-draw/bionic libreoffice-gnome/bionic 
libreoffice-gtk3/bionic libreoffice-help-en-us/bionic 
libreoffice-help-ja/bionic libreoffice-impress/bionic 
libreoffice-l10n-ja/bionic libreoffice-math/bionic libreoffice-ogltrans/bionic 
libreoffice-pdfimport/bionic libreoffice-style-breeze/bionic 
libreoffice-style-galaxy/bionic libreoffice-style-tango/bionic 
libreoffice-writer/bionic python3-uno/bionic ure/bionic

Disabling libreoffice PPA from 
/etc/apt/sources.list.d/libreoffice-ubuntu-ppa-bionic.list
Updating packages lists
Loading the package list...Done
Creating a dependency tree
Reading status information...Done
'fonts-opensymbol'Version of'2:102.11+LibO6.4.6~rc2-0ubuntu0.18.04.1' (LibreOffice 6.4.x:18.04/bionic [all])Was selected
'libreoffice-avmedia-backend-gstreamer'Version of'1:6.4.6~rc2-0ubuntu0.18.04.1' (LibreOffice 6.4.x:18.04/bionic [amd64])Was selected
'libreoffice-base-core'Version of'1:6.4.6~rc2-0ubuntu0.18.04.1' (LibreOffice 6.4.x:18.04/bionic [amd64])I chose:
:
:

Oh, it says ** 6.4.6, right? ** **

After this, it came out in a row, downloaded variously, and the application was repeated for a few minutes. It's finally over, so I'm scared to check the version of LibreOffice.

$ libreoffice --version
LibreOffice 6.4.6.2 40(Build:2)

So it has become 6.4.

When started from the desktop

qiita_20201107_1.png

Well, it was 6.4.

What I should have done

When I checked what the information in the repository was, libreoffice / ppa was deleted and changed to libreoffice / libreoffice-6-4.

$ sudo apt update
:
hit:7 http://ppa.launchpad.net/libreoffice/libreoffice-6-4/ubuntu bionic InRelease
:
Loading the package list...Done
$

So, if I wanted to update with 6 series, I should have executed the commands in the following order.

$ sudo add-apt-repository -n -y ppa:libreoffice/libreoffice-6-4
$ sudo apt update
$ sudo apt upgrade

I can't try it anymore.

Miscellaneous feelings

――It's not really good to do it without knowing it well.

Recommended Posts

Update LibreOffice of Ubuntu 18.04 LTS as v6 series
Stop automatic update of Ubuntu