Take a look at this thread - it provides some really great way to install LibreOnline/Collabora on a variety of systems in a simple way. I have done that numerous times, since I found that one:
https://help.nextcloud.com/t/howto-install-collabora-online-on-ubuntu-16-04-without-docker/5014/177