LibreOffice won't start.

Whether I try to start Writer/Calc or open an existing Writer/Calc file, all I get is the icon appearing on the task bar for a few seconds before it disappears.

I believe I stopped being able to use LibreOffice since [Stable Update] 2019-05-26 - Kernels, XFCE 4.14-pre1, Virtualbox, LibreOffice.

I've ran:

  • sudo pacman -Syu
  • sudo pacman-mirrors --fasttrack && sudo pacman -Syyu
  • Removed libreoffice-still through sudo pacman -R and sudo pacman -Rscn, ran sudo pacman -Scc, and reinstalled libreoffice-still.
  • I've installed libreoffice-fresh but it still behaved as libreoffice-still.
  • I've deleted the /home/user/.config/libreoffice/ folder.
  • I've restarted my PC multiple times.

This is the output of:
$ sudo pacman -S libreoffice-fresh

resolving dependencies...
looking for conflicting packages...

Packages (5) libwps-0.4.10-1 lpsolve-5.5.2.5-3 rasqal-1:0.9.33-2
redland-1:1.0.17-7 libreoffice-fresh-6.2.4-1

Total Download Size: 116.24 MiB
Total Installed Size: 410.96 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
libwps-0.4.10-1-x86_64 1646.1 KiB 4.87M/s 00:00 [##########################] 100%
rasqal-1:0.9.33-2-x... 256.0 KiB 12.5M/s 00:00 [##########################] 100%
redland-1:1.0.17-7-... 192.5 KiB 47.0M/s 00:00 [##########################] 100%
lpsolve-5.5.2.5-3-x... 404.9 KiB 30.4M/s 00:00 [##########################] 100%
libreoffice-fresh-6... 113.8 MiB 27.0M/s 00:04 [##########################] 100%
(5/5) checking keys in keyring [##########################] 100%
(5/5) checking package integrity [##########################] 100%
(5/5) loading package files [##########################] 100%
(5/5) checking for file conflicts [##########################] 100%
(5/5) checking available disk space [##########################] 100%
:: Processing package changes...
(1/5) installing libwps [##########################] 100%
(2/5) installing rasqal [##########################] 100%
(3/5) installing redland [##########################] 100%
(4/5) installing lpsolve [##########################] 100%
(5/5) installing libreoffice-fresh [##########################] 100%
Optional dependencies for libreoffice-fresh
java-runtime: adds java support [installed]
java-environment: required by extension-wiki-publisher and extension-nlpsolver
[installed]
pstoedit: translates PostScript and PDF graphics into other vector formats
libmythes: for use in thesaurus
beanshell: interactive java -- good for prototyping/macros
libwpg: library for importing and converting WordPerfect Graphics format
[installed]
sane: for scanner access
unixodbc: adds ODBC database support
gst-plugins-base-libs: for multimedia content, e.g. in Impress [installed]
libpaper: takes care of papersize [installed]
postgresql-libs: for postgresql-connector
mariadb-libs: for mysql-connector
coin-or-mp: required by the Calc solver
gtk2: for GTK2 integration [installed]
gtk3: for GTK3 integration [installed]
kio: for KF5 KDE desktop integration [installed]
:: Running post-transaction hooks...
(1/4) Updating icon theme caches...
(2/4) Arming ConditionNeedsUpdate...
(3/4) Updating the desktop file MIME type cache...
(4/4) Updating the MIME type database...

What should I try next?

$ inxi -Fxz

System:
Host: user-pc Kernel: 4.14.124-1-MANJARO x86_64 bits: 64 compiler: gcc
v: 8.3.0 Desktop: KDE Plasma 5.15.5 Distro: Manjaro Linux
Machine:
Type: Desktop Mobo: ASRock model: AB350 Pro4 serial:
UEFI: American Megatrends v: P4.70 date: 02/12/2018
CPU:
Topology: 8-Core model: AMD Ryzen 7 1700 bits: 64 type: MT MCP arch: Zen
rev: 1 L2 cache: 4096 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
bogomips: 95863
Speed: 3225 MHz min/max: 1550/3900 MHz Core speeds (MHz): 1: 3245 2: 2399
3: 1057 4: 1057 5: 1058 6: 1057 7: 1057 8: 1058 9: 1197 10: 1197 11: 1197
12: 1197 13: 1198 14: 1196 15: 1057 16: 1056
Graphics:
Device-1: NVIDIA GP106 [GeForce GTX 1060 3GB] vendor: eVga.com. driver: nvidia
v: 430.14 bus ID: 26:00.0
Display: x11 server: X.Org 1.20.5 driver: nvidia resolution: 1920x1080~60Hz
OpenGL: renderer: GeForce GTX 1060 3GB/PCIe/SSE2 v: 4.6.0 NVIDIA 430.14
direct render: Yes
Audio:
Device-1: NVIDIA GP106 High Definition Audio vendor: eVga.com.
driver: snd_hda_intel v: kernel bus ID: 26:00.1
Device-2: AMD Family 17h HD Audio vendor: ASRock driver: snd_hda_intel
v: kernel bus ID: 28:00.3
Device-3: Focusrite-Novation type: USB driver: snd-usb-audio bus ID: 3-2.4:6
Sound Server: ALSA v: k4.14.124-1-MANJARO
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: ASRock driver: r8168 v: 8.047.01-NAPI port: d000 bus ID: 25:00.0
IF: enp37s0 state: up speed: 1000 Mbps duplex: full mac:
Drives:
Local Storage: total: 1.70 TiB used: 958.33 GiB (55.1%)
ID-1: /dev/sda vendor: Western Digital model: WD1002FAEX-00Z3A0
size: 931.51 GiB
ID-2: /dev/sdb vendor: Crucial model: CT500MX500SSD4 size: 465.76 GiB
ID-3: /dev/sdd vendor: Micron model: C400-MTFDDAK128MAM size: 119.24 GiB
ID-4: /dev/sde vendor: Patriot model: Pyro SE size: 111.79 GiB
ID-5: /dev/sdf vendor: Intel model: SSDSC2CW120A3 size: 111.79 GiB
Partition:
ID-1: / size: 92.27 GiB used: 67.94 GiB (73.6%) fs: ext4 dev: /dev/dm-0
ID-2: swap-1 size: 17.24 GiB used: 14.8 MiB (0.1%) fs: swap dev: /dev/dm-1
Sensors:
System Temperatures: cpu: 28.0 C mobo: 27.0 C gpu: nvidia temp: 42 C
Fan Speeds (RPM): fan-1: 586 fan-2: 912 fan-3: 0 fan-4: 732 fan-5: 0
gpu: nvidia fan: 0%
Voltages: 12v: N/A 5v: N/A 3.3v: 3.38 vbat: 3.23
Info:
Processes: 345 Uptime: 2h 32m Memory: 15.66 GiB used: 4.84 GiB (30.9%)
Init: systemd Compilers: gcc: 8.3.0 clang: 8.0.0 Shell: bash v: 5.0.7
inxi: 3.0.34

Start LibreOffice in the terminal and post the error messages.

2 Likes

$ libreoffice --writer
/usr/lib/libreoffice/program/soffice.bin: error while loading shared libraries: liblangtag.so.1: cannot open shared object file: No such file or directory

liblangtag package is installed?

1 Like

liblangtag is a dependency of the libreoffice-[still,fresh] package so should have been installed already.

$ pacman -Ql liblangtag
...
liblangtag /usr/lib/liblangtag.so
liblangtag /usr/lib/liblangtag.so.1
...

So, @manjarouser2364 needs to firstly check they are fully up-to-date, and if that doesn't help then reinstall the liblangtag package.

$ sudo pacman -Syu
[sudo] password for user: 
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
 there is nothing to do
[user@user-pc xdg]$ sudo pacman -S liblangtag
warning: liblangtag-0.6.2-2 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) liblangtag-0.6.2-2

Total Installed Size:  2.99 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                     [##########################] 100%
(1/1) checking package integrity                   [##########################] 100%
(1/1) loading package files                        [##########################] 100%
(1/1) checking for file conflicts                  [##########################] 100%
error: failed to commit transaction (conflicting files)
liblangtag: /usr/include/liblangtag/langtag.h exists in filesystem
liblangtag: /usr/include/liblangtag/lt-config.h exists in filesystem
liblangtag: /usr/include/liblangtag/lt-database.h exists in filesystem
liblangtag: /usr/include/liblangtag/lt-error.h exists in filesystem
liblangtag: /usr/include/liblangtag/lt-ext-module-data.h exists in filesystem
liblangtag: /usr/include/liblangtag/lt-ext-module.h exists in filesystem
liblangtag: /usr/include/liblangtag/lt-extension.h exists in filesystem
liblangtag: /usr/include/liblangtag/lt-extlang-db.h exists in filesystem
liblangtag: /usr/include/liblangtag/lt-extlang.h exists in filesystem
liblangtag: /usr/include/liblangtag/lt-gobject.h exists in filesystem
liblangtag: /usr/include/liblangtag/lt-grandfathered-db.h exists in filesystem
liblangtag: /usr/include/liblangtag/lt-grandfathered.h exists in filesystem
liblangtag: /usr/include/liblangtag/lt-iter.h exists in filesystem
liblangtag: /usr/include/liblangtag/lt-lang-db.h exists in filesystem
liblangtag: /usr/include/liblangtag/lt-lang.h exists in filesystem
liblangtag: /usr/include/liblangtag/lt-list.h exists in filesystem
liblangtag: /usr/include/liblangtag/lt-macros.h exists in filesystem
liblangtag: /usr/include/liblangtag/lt-messages.h exists in filesystem
liblangtag: /usr/include/liblangtag/lt-redundant-db.h exists in filesystem
liblangtag: /usr/include/liblangtag/lt-redundant.h exists in filesystem
liblangtag: /usr/include/liblangtag/lt-region-db.h exists in filesystem
liblangtag: /usr/include/liblangtag/lt-region.h exists in filesystem
liblangtag: /usr/include/liblangtag/lt-relation-db.h exists in filesystem
liblangtag: /usr/include/liblangtag/lt-script-db.h exists in filesystem
liblangtag: /usr/include/liblangtag/lt-script.h exists in filesystem
liblangtag: /usr/include/liblangtag/lt-string.h exists in filesystem
liblangtag: /usr/include/liblangtag/lt-tag.h exists in filesystem
liblangtag: /usr/include/liblangtag/lt-utils.h exists in filesystem
liblangtag: /usr/include/liblangtag/lt-variant-db.h exists in filesystem
liblangtag: /usr/include/liblangtag/lt-variant.h exists in filesystem
liblangtag: /usr/include/liblangtag/lt-xml.h exists in filesystem
liblangtag: /usr/lib/girepository-1.0/LangTag-0.6.typelib exists in filesystem
liblangtag: /usr/lib/liblangtag/liblangtag-ext-ldml-t.so exists in filesystem
liblangtag: /usr/lib/liblangtag/liblangtag-ext-ldml-u.so exists in filesystem
liblangtag: /usr/lib/pkgconfig/liblangtag-gobject.pc exists in filesystem
liblangtag: /usr/lib/pkgconfig/liblangtag.pc exists in filesystem
liblangtag: /usr/share/gir-1.0/LangTag-0.6.gir exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/Container.html exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/Module.html exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/Utilities.html exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/annotation-glossary.html exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/api-index-full.html exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/ch01.html exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/deprecated-api-index.html exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/home.png exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/index.html exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/left-insensitive.png exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/left.png exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/liblangtag-Container---Extension.html exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/liblangtag-Container---Extlang.html exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/liblangtag-Container---Grandfathered.html exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/liblangtag-Container---Language.html exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/liblangtag-Container---Redundant.html exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/liblangtag-Container---Region.html exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/liblangtag-Container---Script.html exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/liblangtag-Container---Tag.html exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/liblangtag-Container---Variant.html exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/liblangtag-Database---Extlang.html exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/liblangtag-Database---Grandfathered.html exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/liblangtag-Database---Language.html exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/liblangtag-Database---Redundant.html exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/liblangtag-Database---Region.html exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/liblangtag-Database---Relation.html exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/liblangtag-Database---Script.html exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/liblangtag-Database---Variant.html exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/liblangtag-Database.html exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/liblangtag-Doubly-Linked-Lists.html exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/liblangtag-Error.html exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/liblangtag-Iterator.html exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/liblangtag-Miscellaneous-Macros.html exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/liblangtag-Module---Accessor.html exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/liblangtag-Module---Data.html exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/liblangtag-Strings.html exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/liblangtag.devhelp2 exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/object-tree.html exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/right-insensitive.png exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/right.png exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/style.css exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/up-insensitive.png exists in filesystem
liblangtag: /usr/share/gtk-doc/html/liblangtag/up.png exists in filesystem
liblangtag: /usr/share/liblangtag/common/bcp47/calendar.xml exists in filesystem
liblangtag: /usr/share/liblangtag/common/bcp47/collation.xml exists in filesystem
liblangtag: /usr/share/liblangtag/common/bcp47/currency.xml exists in filesystem
liblangtag: /usr/share/liblangtag/common/bcp47/number.xml exists in filesystem
liblangtag: /usr/share/liblangtag/common/bcp47/timezone.xml exists in filesystem
liblangtag: /usr/share/liblangtag/common/bcp47/transform.xml exists in filesystem
liblangtag: /usr/share/liblangtag/common/bcp47/transform_ime.xml exists in filesystem
liblangtag: /usr/share/liblangtag/common/bcp47/transform_keyboard.xml exists in filesystem
liblangtag: /usr/share/liblangtag/common/bcp47/transform_mt.xml exists in filesystem
liblangtag: /usr/share/liblangtag/common/bcp47/transform_private_use.xml exists in filesystem
liblangtag: /usr/share/liblangtag/common/bcp47/variant.xml exists in filesystem
liblangtag: /usr/share/liblangtag/common/supplemental/likelySubtags.xml exists in filesystem
liblangtag: /usr/share/liblangtag/common/supplemental/supplementalData.xml exists in filesystem
liblangtag: /usr/share/liblangtag/common/supplemental/supplementalMetadata.xml exists in filesystem
liblangtag: /usr/share/liblangtag/language-subtag-registry.xml exists in filesystem
Errors occurred, no packages were upgraded.

I removed all the "___ exists in filesystem" files, re-installed liblangtag, updated the system (nothing to do), and ran libreoffice writer again.

$ libreoffice --writer
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
pwd: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
pwd: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
/usr/lib/libreoffice/program/soffice.bin: error while loading shared libraries: liborcus-0.14.so.0: cannot open shared object file: No such file or directory

If you're missing multiple libraries it looks like you have a corrupted installation. Did you hard power-off during an update?

Same again as before but for liborcus . And then repeat for any other missing libraries.

My computer might have frozen during an update and I had to cut the power, but I don't think it happened in the past month.

Re-installed liborcus and received a long list of "liborcus: ___ exists in filesystem".
Deleted all "liborcus: ___ exists in filesystem" files.
Re-installed liborcus with no issues.
Ran libreoffice --writer and something new came up:
Pop up window named "LibreOffice 6.1 - Fatal Error"
Libreoffice%20fatal%20error

Your package database and installed files are in an inconsistent state.

The best solution at this point is to reinstall. Otherwise you'll have to track down each and every single instance of a partially-installed package and that will very likely take longer to resolve than just reinstalling.

Do you mean a fresh OS installation?

Yes. 

Do you know of a guide on how to save time when you need to reinstall everything?

I don't know what you mean by "save time".

All of my installations have /home on a separate partition so if I need to reinstall all I do is reinstall the OS.

I then read back through any documentation I have to re-create whatever specific setup I need, but that tends to be pretty limited and can be copied back from another device which shares the same changes (e.g. autofs).

My current setup has the /home folder as part of the root folder. The only mount points I have are: /boot/efi, /, swap.
I'll make sure to put /home in a separate partition this time.

Thank you and everyone else for the help.

I am just curious, is there a reason why this is not already implemented in pacman, a setting that will go through all installed packages and forcibly re-download them and install them again so that a situation like this can be resolved without reinstalling?

I am fairly new to Manjaro/Linux, so I might definitely have misunderstood something here, but in my (simple) mind this seems like something that should be implemented. :slight_smile:

The package manager's job is to keep track of files it installs.

If you interrupt any package manager then the files on disk won't tally with its database of files on disk.

Without the package metadata database there is no way the package manager knows which files it "owns" and which it does not.

You can get a list of all installed packages and force reinstall them (the command is in multiple threads on the forum). However, by doing this you lose any information about which packages were installed as dependencies and it won't be able to deal with anything installed from the AUR. You could then use something like lostfiles to track down files which are not owned by packages and manually remove them (or identify they are from an AUR package and force reinstall that).

However, this approach generally is more involved and requires more time and effort than reinstalling, hence my suggestion.

2 Likes

What I do is to write down all the apps I have installed and copy my user folder content to an external drive, including the hidden files (Control + H).

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by Bytemark