UnityHub cant start on Ubuntu 24.04

I am trying to get UnityHub to run on Ubuntu24.04.
Whenever i run the command
unityhub --h --version
it just gives me the error Missing X Server or $DISPLAY.

Any help would be appericated.

Out of curiosity, was this a fresh install or upgrade to 24.04?

Do you have X installed and is DISPLAY set?

Its a fresh install.

No. I did try to install xfvb but that also doesnt work, after settings it up and running it.