LibreOffice stopped working in Ubuntu 17.04
Solution 1:
I faced a similar problem after upgrading. This solution (by disabling java) worked for me:
LibreOffice 5 problems and solutions
Open LibreOffice or any program - Writer, Calc (only one program, settings apply to the whole suite)
- Go to Options
- LibreOffice
- Advanced
- Uncheck "Use a Java runtime environment"
Solution 2:
I faced the same problem with Ubuntu Artful 17.10. All of the libreoffice programs produced the error listed. Disabling Java made no difference. I tried purging and re-installing Libreoffice and even purging and switching back from the LibreOffice PPA to the default Ubuntu repository did not solve the problem. I also tried removing the libreoffice configuration files in ~/.config
It is clear that LibreOffice is not finding it's libraries and this post set me on the right path to sorting out the library path. Unfortunately simply adding /usr/lib/libreoffice/program
to LD_LIBRARY_PATH was not enough. LibreOffice still would not run. For me, I had to make sure that /usr/lib/libreoffice/program
was the first library directory that LibreOffice looked at. For bash, this meant adding the following line to the end of .bashrc
export LD_LIBRARY_PATH=:/usr/lib/libreoffice/program:/usr/lib/x86_64-linux-gnu/
and for the UI, it meant editing
/usr/share/applications/libreoffice-writer.desktop
and replacing
Exec=libreoffice --writer %U
with
Exec=env LD_LIBRARY_PATH=:/usr/lib/libreoffice/program:/usr/lib/x86_64-linux-gnu/ libreoffice --writer %U
My naive assumption is that there are some duplicate libraries in LibreOffice and they need their particular flavour to be loaded in order to run.