hack のためのネタ帳, etc,,,

状況

以下の環境に snap 版の LibreOffice を入れている。
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.2 LTS
Release:	22.04
Codename:	jammy
以下のようにして Writer を起動すると、一瞬白紙の編集画面が出てきて、Tips ダイアログが出たかとおもた瞬間落ちる。
$ libreoffice.writer 
/snap/libreoffice/272/lib/libreoffice/program/soffice.bin: symbol lookup error: /snap/libreoffice/272/lib/libreoffice/program/libmergedlo.so: undefined symbol: hb_font_set_synthetic_slant
ググ
ってみたが、このメッセージで落ちる症状が見当たらない。

解法

古いバージョンならあるいは?と思い「snap old version」でググってみたところ、以下のページを見つけた。

まず、snap list で古い revision を確認。
$ sudo snap list libreoffice --all
Name         Version  Rev  Tracking       Publisher   Notes
libreoffice  7.5.1.2  270  latest/stable  canonical✓  disabled
libreoffice  7.5.2.2  272  latest/stable  canonical✓  -
2 つインストール済みで古いほうが無効化されてる?

info の方は最新版の version 7.5.2.2 rev 272 しかない。
$ sudo snap info libreoffice
name:      libreoffice
summary:   LibreOffice is a free and open source office suite
publisher: Canonical✓
store-url: https://snapcraft.io/libreoffice
contact:   https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bugs?field.tag=snap
license:   unset
description: |
  LibreOffice is a free and open source office suite, developed by The Document Foundation. The
  LibreOffice suite comprises programs for word processing, the creation and editing of
  spreadsheets, slideshows, diagrams and drawings, working with databases, and composing
  mathematical formulae.
commands:
  - libreoffice.base
  - libreoffice.calc
  - libreoffice.draw
  - libreoffice.filebug
  - libreoffice.impress
  - libreoffice
  - libreoffice.math
  - libreoffice.writer
snap-id:      CpUkI0qPIIBVRsjy49adNq4D6Ra72y4v
tracking:     latest/stable
refresh-date: yesterday at 05:29 JST
channels:
  latest/stable:    7.5.2.2 2023-04-21 (272) 1GB -
  latest/candidate: 7.5.2.2 2023-04-18 (272) 1GB -
  latest/beta:      7.5.2.2 2023-04-18 (272) 1GB -
  latest/edge:      ↑                            
installed:          7.5.2.2            (272) 1GB -
snap revert で古い法のリビジョンに指し戻し。
$ sudo snap revert libreoffice --revision 270
libreoffice reverted to 7.5.1.2
以上で復旧。ただし起動時に warning が山ほど出る。

$ libreoffice.writer

コメントをかく


「http://」を含む投稿は禁止されています。

利用規約をご確認のうえご記入下さい

Wiki内検索

フリーエリア

管理人/副管理人のみ編集できます