New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Failed to install pkg file #310

DooblyNoobly opened this Issue May 6, 2018 · 4 comments


None yet
4 participants
Copy link

DooblyNoobly commented May 6, 2018

When installing any packages I get this error on Ubuntu 16:

Failed to install pkg file /root/Downloads/Unity_Packages/2017.4.0f1/UnitySetup-Windows-Support-for-Editor-2017.4.0f1.pkg at /opt/unity-editor-2017.4.0f1: PackageInfo not found under /tmp/d20180506-13396-18krcfm/PackageInfo

I've tried an uninstall and reinstall of my unity version but the problem exists

Issue Checklist

  • I'm using the latest u3d version
  • I ran u3d --help
  • I read the README
  • I made sure that a similar issue doesn't exit

This comment has been minimized.

Copy link

lacostej commented May 7, 2018

u3d used 7z to unpack the pkg file. Maybe something went wrong.

Could you try to run the same command with the --verbose command and then execute the unpacking command (something like 7z -aos -o...) by hand and look at the contents of the unpacked directory? Is there a PackageInfo file in the expected path?

Feel free to copy the log here.


This comment has been minimized.

Copy link

lacostej commented May 8, 2018

@DooblyNoobly I tested installing on a Ubuntu 16.04 server as both root and non root. It worked. I need your stacktrace / log!

$ cat /etc/lsb-release 

This comment has been minimized.

Copy link

jsmouret-vl commented Jun 4, 2018

The extracted directory only contains a Payload~ file.
The fix is to add the option -t* to the 7z command line.

In /var/lib/gems/2.3.0/gems/u3d-1.0.21/lib/u3d/installer.rb:

command = "7z -aos -t* -o#{tmp_dir.shellescape} e #{file.shellescape}"

This comment has been minimized.

Copy link

phearbot commented Jul 25, 2018

Edit: Working too late here. The above fix from @jsmouret-vl worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment