The problem is likely Ubuntu not Lemmy or not even the Lemmy setup process.
You seem to not have a dbus session going which you should by default even with SSH. It sounds like it might be falling back to trying to get it from X11 and fails that too (obviously).
So, just Ubuntu being Ubuntu.