Running Unity on Ubuntu 22.04

Hello Linux users!

Canonical has released it’s LTS version of Ubuntu 22.04 in April and we’re currently working to support Unity Editor on this edition of Ubuntu. There are some known issues and known workaround that I’d like to share here for anybody looking to get the Editor running on 22.04 in the meantime,.

Unity Hub Known Issues

You can install unity hub via apt by following the instructions here:
https://docs.unity3d.com/hub/manual/InstallHub.html#install-hub-linux
In short

wget -qO - https://hub.unity3d.com/linux/keys/public | sudo apt-key add -
sudo apt update
sudo apt-get install unityhub

You will also need to install libssl1.1, see below.

The Unity Hub App Image, while no longer supported, can still be used with the following workarounds:

  • Unity Hub might be missing the libfuse2 library and will fail to start. To workaround this you can install libfuse2 with

sudo apt install libfuse2


- UnityHub.AppImage crashes on launch when run with proprietary NVIDIA drivers

- You can workaround this issue by disabling the gpu sandbox for unity hub.
- ```
./UnityHub.AppImage --disable-gpu-sandbox

Unity Editor Known Issues

  • Unity Editor fails to launch and complains about “no usable version of libssl was found”

  • Ubuntu 22.04 now ships with libssl3 by default and does not include libssl1.1. Unity currently uses .NET5 which requires libssl1.1. To work around this issue you can install libssl1.1 from an older Ubuntu release

  • https://packages.ubuntu.com/bionic/amd64/libssl1.1/download

  • In a terminal

echo “deb Index of /ubuntu impish-security main” | sudo tee /etc/apt/sources.list.d/impish-security.list
sudo apt-get update
sudo apt-get install libssl1.1

5 Likes

./UnityHub.AppImage --disable-gpu-sandbox

I am slightly confused. Didn’t the Unity drop support for Appimage version of Unity Hub? (I would be happy if it didnt) But from the other UnityHub linux posts I got the impression that from now on only supported way is installing UnityHub by adding Unity repositories to the system pacakage manager.

1 Like

Howdy!

I am on Ubuntu 22.04. I was able to get the Unity Hub launched with the disable gpu sandbox flag. It did not find my Unity License though. It was able to find my Unity License before I upgraded from Ubuntu 20.04 to 22.04. When I try to add the license file the “Activate with a serial number” option is grayed out. I checked my account, my Unity License is still active and assigned to me.

I also tried installing UnityHub from the Unity repo. That version just crashes on launch.

Any pro tips to get my Unity install working again would be epic!

Best,
David Brooks

Ah, I feel silly. Once I installed libssl1.1 it worked just fine.

You are correct, the workflow for using the AppImage is outdated and the preferred way to install is to use the apt after installing the unity hub repository to apt. I’ve edited the original post with instructions. Thanks!

I’m getting this error:
[11181:0615/124525.183860:FATAL:electron_main_delegate.cc(252)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
Trace/breakpoint trap (core dumped)

Any suggestions?

It works with wayland?

still getting a black screen for unity hub after all those steps
edit: nevermind it seems like I needed to restart the pc as it is now working

8291369--1086797--upload_2022-7-18_22-16-35.png

This is what finallly worked for me.

where did you get the appimage? it is not longer provided

I keep getting this error:
ERROR: Licensing SDK logging callback is not registered. Please use ‘registerLoggingAdapter’ func
tion from the SDK to do so.

Hello! I didn’t have the problems you describe. The desired version of the unit was easily installed and launched. Now 2 unsolvable errors.

  1. The dotnet and mono6 SDK extensions are required for the Unity debugger to work.
    Please install it from Flathub. (Install flatpack 22/04 no find )

2 WebGl audio clip error.

PopOS 22.04LTS

I once used flatpack and they had problems integrating with unity. I have a manjaro. There were no problems when using the - aur source. Maybe you should use deb packages

It’s not that they had “problems integrating” but rather it’s an unofficial, community-maintained source. Which is unfortunate since if Unity offered an official flatpak version in the first place, they wouldn’t have this dependency problem to begin with. Dropping the AppImage (and not offering a replacement with either flatpak or snap) was a poor decision on their end. Feels like they’re going backwards.

3 Likes

Thanks for all your work on Unity for Linux :slight_smile:

I will try migrate my Windows dev env to Ubuntu dev env, but the Unity Editor in Ubuntu is very slow. The game project is the same and it uses Assembly definitions files.

Problem in Ubuntu: Any script modification (add a space) results in a Reload Script Assemblies (5 minutes or more).

1 Like

im running kubuntu 22.04 the unity hub installs and works perfectly but it does not install any version of unity i tried 2019 and 2020 plus 2021 it just gives an error failed to install and when i was checking the compressed files it said file corrupt or damage might be missing some files

Does Unity have any plans to update Unity Hub to support libssl3 in the near future?

The following post mentioned using libssl1.1 on Ubuntu 22.04 seems to be a very bad idea:
https://askubuntu.com/questions/1408000/unable-to-locate-package-libssl1-1?newreg=62ec5372a83747878c318b982550fbc8#comment2453912_1408000

I tried the workaround mentioned in the OP here, but ever since then, I kept getting the error “The repository ‘Index of /ubuntu impish-security Release’ does not have a Release file.” whenever I run sudo apt update. I read that I could just comment out some lines in the impish related files in /etc/apt/sources.list and /etc/apt/sources.list.d, but I wasn’t sure if there won’t be any other system or security problems down the line.

Is the workaround using libssl1.1 even a secure workaround? It would be much appreciated if Unity Hub could support libssl3 on Ubuntu 22.04 so that workarounds are not needed.

2 Likes

After running these commands I’m getting

E: Unable to locate package libssl1.1
E: Couldn’t find any package by glob ‘libssl1.1’
E: Couldn’t find any package by regex ‘libssl1.1’

Also, even after I install libssl1.1 from https://packages.ubuntu.com/bionic/amd64/libssl1.1/download, Unity Hub still freezes on the loading screen.

1 Like

I am seeing the same error when I tested it out just now on Ubuntu 22.04. It looks like that repo is no longer accessible since I am also seeing the error below when running sudo apt update.

Err:9 http://security.ubuntu.com/ubuntu impish-security Release
404 Not Found [IP: 91.189.91.38 80]