Error when building unity-editor package - Failure in Package()

Hello everyone,

I am somewhat new to Manjaro and thought I'd give installing the unity editor a whirl. Unfortunately, it seems that something is going on inside of Package() that is causing it to abort, and giving me no more information after that.

I downloaded the snapshot, and here's what I did in my terminal:

[jeremy@binaryorange ~]$ cd Downloads/
[jeremy@binaryorange Downloads]$ tar -xf unity-editor.tar.gz 
[jeremy@binaryorange Downloads]$ cd unity-editor/
[jeremy@binaryorange unity-editor]$ makepkg -sci
==> Making package: unity-editor 1:2018.2.3f1+20180814-1 (Sat 18 Aug 2018 12:31:03 PM CDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading UnitySetup-2018.2.3f1...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  267k  100  267k    0     0   768k      0 --:--:-- --:--:-- --:--:-- 5117k
  -> Found unity-editor
  -> Found unity-editor.desktop
  -> Found unity-editor-icon.png
==> Validating source files with sha1sums...
    UnitySetup-2018.2.3f1 ... Passed
    unity-editor ... Passed
    unity-editor.desktop ... Passed
    unity-editor-icon.png ... Passed
==> Extracting sources...
==> Starting prepare()...
==> Entering fakeroot environment...
==> Starting package()...
  -> Extracting EULA...
  -> Extracting Unity...
==> ERROR: A failure occurred in package().
    Aborting...

As you can see, it only aborts, and then doesn't do anything else. This is a rather vague error and I have no idea what could be causing this. Anyone have any suggestions? I have 16GB of RAM and only ~3GB is being used so I think my tmp file space should be fine for this.

1 Like

You'd think that, but Unity3D is huuuuuge.

I'd try again but on a disk partition.

You can also check the log output mentioned in the PKGBUILD:

extract-component() {
  msg2 "Extracting $1..."
  yes | unity-setup --components=$1 > "/tmp/$1.log"
}

so /tmp/Unity.log.

Builded fine here


He used makepkg however

In the log there is the EULA of unity and this


Do you accept the terms of the License Agreement? (y/n)

Beginning unattended installation to '/home/fabio/Dev/pkg_make/05_AUR_others/unity-editor/pkg/unity-editor/opt/Unity', downloading packages to '/home/fabio/Dev/pkg_make/05_AUR_others/unity-editor'
Error 404 getting 'https://netstorage.unity3d.com/unity/fba045906327/unity-2018.2.3f1-linux.ini'
Download of 'https://netstorage.unity3d.com/unity/fba045906327/unity-2018.2.3f1-linux.ini' failed
Error 404 getting 'https://download.unity3d.com/download_unity/fba045906327/unity-2018.2.3f1-linux.ini'
Download of 'https://download.unity3d.com/download_unity/fba045906327/unity-2018.2.3f1-linux.ini' failed
Successfully downloaded https://beta.unity3d.com/download/fba045906327/unity-2018.2.3f1-linux.ini => /tmp/.1XWXNZ
Selecting Unity
Required installation size: Total space required: 2,75 GB
Available space: Space available: 98,45 GB
Available space: Space available: 98,45 GB
Verifying Unity 2018.2.3f1
Downloading Unity 2018.2.3f1
Finished downloading 'https://beta.unity3d.com/download/fba045906327/LinuxEditorInstaller/Unity.tar.xz' to '/home/fabio/Dev/pkg_make/05_AUR_others/unity-editor/Unity.tar.xz'
Installing Unity 2018.2.3f1
Installation succeeded! Run 'cd /home/fabio/Dev/pkg_make/05_AUR_others/unity-editor/pkg/unity-editor/opt/Unity/Editor; ./Unity'

Maybe it failed the download to you @binaryorange


by the way the pkgbuild is very custom, non standard functions and variables like $1 and $startdir not declared in the pkgbuild

1 Like

In the log file, the last line tells...

Unable to download any valid component lists, aborting

So, I'm not sure what's going on, just before it I am getting similar errors to you @Lolix:

Do you accept the terms of the License Agreement? (y/n)

Beginning unattended installation to '/home/jeremy/Downloads/unity-editor/pkg/unity-editor/opt/Unity', downloading packages to '/home/jeremy/Downloads/unity-editor'
Error 404 getting 'https://netstorage.unity3d.com/unity/fba045906327/unity-2018.2.3f1-linux.ini'
Download of 'https://netstorage.unity3d.com/unity/fba045906327/unity-2018.2.3f1-linux.ini' failed
Error 404 getting 'https://download.unity3d.com/download_unity/fba045906327/unity-2018.2.3f1-linux.ini'
Download of 'https://download.unity3d.com/download_unity/fba045906327/unity-2018.2.3f1-linux.ini' failed
Error 301 getting 'https://beta.unity3d.com/download/fba045906327/unity-2018.2.3f1-linux.ini'
Download of 'https://beta.unity3d.com/download/fba045906327/unity-2018.2.3f1-linux.ini' failed
Error 404 getting 'https://files.unity3d.com/bootstrapper/fba045906327/unity-2018.2.3f1-linux.ini'
Download of 'https://files.unity3d.com/bootstrapper/fba045906327/unity-2018.2.3f1-linux.ini' failed

Also, I was silly and never set up a partition for swap space on my system, I'll have to do that, what size is recommended if Unity3D can't handle 16GB RAM?

This probably means the package sources are incorrect or outdated and the AUR package maintainer needs to fix them.

It's not a case of swap. You said you were building in "tmp space" which implied you were using a tmpfs which is default limited to 50% RAM (so 8GB). This may not be enough space to extract and build the Unity package, therefore I suggested you use an area on a disk partition instead of a tmpfs.

If you're already building on disk instead of in tmpfs then it's a different issue.

Ah, alright, how would I set it to use something other than tmpfs for the building location? Is it just a matter of setting the directory? I am assuming it is building in temp space by default but I'm not 100% certain.

You can probably tell I'm a bit new to Manjaro and still figuring things out a bit, sorry if these are silly questions!

I thought Lolix had built his editor from the most recent AUR source too, but maybe not, or maybe it wasn't the most recent. I'll see if I can find an older version that works, maybe that is the problem.

makepkg will build in the current directory by default, so if your Downloads directory is on disk, then you're building on disk.

AUR packages can sometimes be a pain to get working, no matter what.

Just so it has been covered, can you also make sure you're fully up-to-date:

sudo pacman-mirrors -f3
sudo pacman -Syyu

Yup, I am up-to-date now.

Unfortunately, this does not appear to have helped. I will look for an older version of the editor and see if I have better luck with that.

I built the most recent version after your topic here

The failing downloads are not inside the pkgbuild, are downloaded by UnitySetup-2018.2.3f1, there are four links, probably is a temporary issue unity3d dot com

1 Like

If it were an issue with Unity3d.com, I wonder how come you were able to install it and I wasn't?

Could be any number of reasons I suppose. I guess I'll just keep trying and if it continues to fail, I'll try again.

Just out of sheer wonder, I attempted to download Unreal Engine as well, and that also failed, but it told me it's because I don't have permission to the git repo, I don't really want to use Unreal so I won't pursue it much further, I'm much more eager to get unity working!

Is there perhaps another way to install Unity? This was really the only method that came up in my Google searches. If there's another way I'd be very eager to see it!

How can I send you 3GB of package?

Haha, I'm not sure! :stuck_out_tongue:

However, I am starting to think the issue has to do with the AUR. Apparently Manjaro doesn't "talk" to the AUR and will instead attempt to use Manjaro's repos for AUR packages? That's what I'm getting from the wiki anyway.

I tried the suggested way of manually installing packages but it still fails.

nonsense :arrow_up:, the issue is not the AUR and nor Arch repo nor Manajro repo have to do with the AUR

Yes read the wiki

OK, that's good to know! It just seemed to be what the wiki was inferring so I'm glad to get the clarification.

Sadly, I have followed the steps for manually installing 3 times and I still get the same results. It seems if I run
makepkg -S,
then it appears to have successfully built a .pkg file, but I can't find it in my directory. Here's the output after running
makepkg -S

[jeremy@binaryorange unity-editor]$ makepkg -S
==> Making package: unity-editor 1:2018.2.3f1+20180814-1 (Sat 18 Aug 2018 03:06:13 PM CDT)
==> Retrieving sources...
  -> Downloading UnitySetup-2018.2.3f1...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  267k  100  267k    0     0   584k      0 --:--:-- --:--:-- --:--:--  584k
  -> Found unity-editor
  -> Found unity-editor.desktop
  -> Found unity-editor-icon.png
==> Validating source files with sha1sums...
    UnitySetup-2018.2.3f1 ... Passed
    unity-editor ... Passed
    unity-editor.desktop ... Passed
    unity-editor-icon.png ... Passed
==> Entering fakeroot environment...
==> Creating source package...
  -> Adding PKGBUILD...
  -> Generating .SRCINFO file...
  -> Adding unity-editor...
  -> Adding unity-editor.desktop...
  -> Adding unity-editor-icon.png...
  -> Compressing source package...
==> Leaving fakeroot environment.
==> Source package created: unity-editor (Sat 18 Aug 2018 03:06:16 PM CDT)

-s and -S are two different option:

  • -s -> syncdeps
  • -S -> create source packages only

:wink:

1 Like

Ah, I see. Thought it was a capital S when I was reading.

Unfortunately that still doesn't seem to have fixed the problem, so I'm guessing it is 100% on Unity's side, though I'm still perplexed as to how you were able to download and built it while I am not.

If the downloads are distributed via a CDN or other geo-location-based distribution service then it's quite possible there's an issue when accessed from certain IP addresses and not others.

Check with a web browser if you can access this URL

1 Like

Looks like it, it downloaded the file.

Should I do this for everyone of the files it can't download and then attempt makepkg?

Also, this topic was started today, so something definitely is going on with Unity: https://forum.unity.com/threads/unity-2018-2-3f1-problem-during-download.545925/

Forum kindly sponsored by