I managed to make it work on on Linux (Ubuntu 20.04) with Unity Hub 3.1.2 !
You can access the log file at Top left menu > Troubleshooting > Open log folder, and then run in a terminal cat info-log.json | grep Error
, it will show you what happened
In my case, I had to change ownership of some folders (credits to LocalNoob in this thread Unity Hub does not work unless I run as root. (Linux) ) by running:
sudo chown username:username -R ~/.config/UnityHub
sudo chown username:username -R ~/.config/unity3d
sudo chown username:username -R ~/Unity/Hub
#Folder in which I installed the hub(downloaded editors saved here), I guess it might be different for you, checksudo chown username:username -R for your project folders wherever you saved them
sudo chown username:username -R ~/.local/share/unity3d
sudo chown username:username -R ~/opt
# this one is weird, I would advise setting it back to root after you’re done
And create a folder as well:
7) sudo mkdir /home/username/.local/share/unity3d/prefs
8)reboot
After all that it worked for me !