Skip to content
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

Closed
4 tasks done
DooblyNoobly opened this issue May 6, 2018 · 5 comments · Fixed by #342
Closed
4 tasks done

Bug: Failed to install pkg file #310

DooblyNoobly opened this issue May 6, 2018 · 5 comments · Fixed by #342

Comments

@DooblyNoobly
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
@lacostej
Copy link
Member

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.

@lacostej
Copy link
Member

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 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.4 LTS"

@jsmouret-vl
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}"

@phearbot
Copy link

phearbot commented Jul 25, 2018

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

@lacostej
Copy link
Member

Oops sorry for not seeing this earlier. We merge this ASAP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants