4

After installation of all .deb of LibreOffice 5, failed to start any application of LibreOffice. it crashes. Using 14.04 Ubuntu.

Message

libreoffice5.0 javaldx: 
Could not find a Java Runtime Environment! 
Warning: failed to read path from javaldx /opt/libreoffice5.0/program/soffice.bin: 
error while loading shared libraries: 
libdbus-glib-1.so.2: cannot open shared object file: No such file
3
  • What error message do you have ?
    – hg8
    Aug 5, 2015 at 12:47
  • libreoffice5.0 javaldx: Could not find a Java Runtime Environment! Warning: failed to read path from javaldx /opt/libreoffice5.0/program/soffice.bin: error while loading shared libraries: libdbus-glib-1.so.2: cannot open shared object file: No such fil Aug 5, 2015 at 12:52
  • 2
    So install it ...By the way: please always include error messages into your question when you have an error.
    – Rinzwind
    Aug 5, 2015 at 12:57

3 Answers 3

4

Try to install the following lib and relaunch LibreOffice :

sudo apt-get install libdbus-glib-1-2:i386

The missing library libdbus-glib-1.so.2 is in the package libdbus-glib-1-2.

3
  • doesn't work, i think is need i386 version. Aug 5, 2015 at 14:05
  • Then try : sudo apt-get install libdbus-glib-1-2:i386
    – hg8
    Aug 5, 2015 at 14:07
  • How can I do it using yum? Mar 31, 2017 at 16:32
1

I just ran into this issue with the latest libreoffice on a production machine.

LibreOffice 5.1.6.2 10m0(Build:2)

To fix:

sudo apt -y install libreoffice-base

This will install all the requirements for libreoffice including the java-jre

0
apt-get install libdbus-glib-1-2

This did it for me.

You must log in to answer this question.

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