...
Run the following commands to install LibreOffice from the repository:
Code Block language bash sudo apt update sudo apt install libreoffice
Make sure that the Tomcat installation directory has the correct ownership, e.g.:
Code Block language bash sudo chown -R tomcat:tomcat /opt/tomcat