In case anyone has the patience to read this thread, just say that I ended up following the wise advice they gave me. I installed Nextcloud on docker following the macom guide (not without some difficulties) and for the moment I am happy.
The guide to install Nextcloud in Ubuntu with a VM is still hanging in case someone is useful for something. I added a note at the beginning to divert people to the macom guide.