4

I tried this solution and it does not work.

  1. the devs have stopped posting builds there. they used to post bimonthly, the last post and build dates back to a year. it is critically out of date.

  2. it is not the prefered and recomended install method for linux/ubuntu by the unity devs. they prefer we use the unity hub.

I also tried this (YouTube video by the same guy since the stackoverflow and source he links names match and since the ubuntu desktop cusomisations are exactly the same in the youtube video and the gif). This guy has got the right idea!! if a developer makes a native solution for you, you try that first.

But as you can see in his stackoverflow answer and video: things have changed even more still since the release of that launcher.

The launcher is no longer missing any dependencies pre-launch, it runs out-of-the-box on a vanilla ubuntu 19.10 with nothing else changed. That's one difference. Also it looks and behaves nothing alike visually. It's a v2 and it does have it's own quirks.

What is the method today?

I try to use the "Unity Hub" which is the recommended (and only?) method to install Unity on ubuntu.

I first have to add a license, then I have to set the download folder (which is ignored since it downloads to /tmp anyways)

Then I have to select and download a unity version :

choose a unity version to download

downloading unity

Once the download finishes it looks like this:

no result

if I, at this point, choose the project tab and hit "new" it still rejects me :

no editor installed, please install unity before creating a project

If I try to open the folder I find in /tmp; "unityhub-9fbe5a20-6305-11ea-bdba-858cc54fd2fc" with what seems like the right set of files : "Unity.tar.xz", "UnitySetup-Linux-IL2CPP-Support-for-Editor-2020.1.0a25.tar.xz", ect... then it just adds a new item named after the grandparent of that item (if I select "/tmp/unityhub-9fbe5a20-6305-11ea-bdba-858cc54fd2fc/Unity.tar.xz" it will be called "tmp", and I can no longer add another item from the entire /tmp tree because itt considers that it is the "same item". if I rename the folder and move it to "~/Documents" and open "~/Documents/unityEngine/Unity.tar.xz", the item in the list will be called "Documents") :

locate result

If I then try creating a new project, the window opens up but :

create new project

... upon clicking "create" I get a contentless error message box and from there on out the app bugs out and becomes more or less unresponsive and must be closed by force :

error box and crash the three error windows

7
  • 1
    Nope that answer and those packages date back to September 2018. Unity hub (which is what I'm trying to use) hadn't even started development back then. The method of installing as per official unity3d recommendations has been completely flipped on its head since then. store.unity.com/download
    – tatsu
    Mar 11, 2020 at 8:29
  • 1
    you didn't read my post AGAIN. I also included that answer and my question is actually also a step by step describing why that specific solution broke down recently.
    – tatsu
    Mar 12, 2020 at 17:55
  • 1
    This have happened to me several times before (download gone after it finished). In my case it seems to be caused by corrupted download. I solve it by redownloading several times. Hope it helps
    – jrandiny
    Mar 14, 2020 at 11:05
  • 1
    To be sure, you can look at ~/.config/UnityHub/logs/info-log.json and see the error yourself. If you are adventurous, the logs will show you the url of the download (mine shows Something went wrong while downloading <url> Error: ESOCKETTIMEDOUT) and you can try to download it manually. After that you can manually extract and use the locate button on the hub
    – jrandiny
    Mar 15, 2020 at 16:44
  • 1
    @jrandiny you were right. it sucks to say but brute forcing it seems to be the only way. after my eighth download, at a time of day where my internet was faster, it finally worked. I'd really liked it if unity made a change to the unity hub to make downloads crash/error protected and resumable.
    – tatsu
    Mar 20, 2020 at 13:04

2 Answers 2

3
+100

it seems that Unity Hub download are non-resumeable, so any problem with the network will cause the download to fail (usually without any message).

Sadly the easiest solution is to retry the download until it succeeds.

There are alternative method by manually downloading and extracting the component required but keep in mind that is is not officially supported. You can follow the following steps if you want to try downloading it manually

  • Find the url of Unity download by using one of the following ways
    • Check Unity Hub log at ~/.config/UnityHub/logs/info-log.json
    • Open https://public-cdn.cloud.unity3d.com/hub/prod/releases-linux.json
  • Download the package manually
  • Extract it to a known location
  • Use the "Locate" button on Unity Hub and give the path of the extracted package
0

I found a guide that might help you: https://docs.unity3d.com/2020.1/Documentation/Manual/InstallingUnityLinux.html

Just to summarize, you must install the setup utility, then change the permission to "make executable and run" then follow the instructions. If the above fails, try installing the missing dependencies:

sudo apt install libgconf-2-4
2
  • see : askubuntu.com/questions/1216224/… that guide references and old build of unity. I wanted to try the 2020 one. good find regardless.
    – tatsu
    Mar 20, 2020 at 13:05
  • sorry. i thought its 2020.1 because in the url its docs.unity3d.com/2020.1/...
    – me is me
    Mar 20, 2020 at 13:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .