Libre office writer automatically closing

$ libreoffice --writer 
/usr/bin/libreoffice: 175: exec: /usr/lib/libreoffice/program/oosplash: not found  

LibreOffice Writer is not opening on my Ubuntu 16.04.

How can I fix it?


Solution 1:

Reinstall libreoffice-core.

The error message when you ran libreoffice --writer in a terminal revealed that /usr/lib/libreoffice/program/oosplash is missing. That oosplash executable is provided by the libreoffice-core package. Reinstalling this package should replace the missing file and possibly other missing or damaged files.

sudo apt update
sudo apt --reinstall install libreoffice-core

If that is all that is broken, then this should fix it entirely.

(If not, running libreoffice --writer again may give another error, which should help you troubleshoot further.)