Search Issue Tracker

Won't Fix

Votes

1

Found in

Issue ID

1220817

Regression

No

[Linux Hub] Installing modules to Editors via Hub fails if cpio is not present in the system

Linux

-

How to reproduce:
1. If you have 'cpio installed' at /bin/cpio, remove it by typing `sudo apt-get remove cpio` into your Terminal
2. Reinstall Unity Hub
3. Navigate to the Installs tab and try to add a module to any version

Expected result: Unity Hub installs 'cpio' as it is a dependency
Actual result: Unity Hub doesn't install 'cpio' resulting in modules quietly failing to install

Reproducible with: Hub 2.3.0

Full error in info-log.json after failing to install a module:
{"moduleName":"UnityInstallerLinux","level":"warn","message":"[ 'Error while installing module Mac Build Support (Mono)',\n { Error: Command failed: cd /home/lukasd/Unity/Hub/Editor/2019.3.0f6; gzip -dc \"/home/lukasd/Unity/Hub/Editor/2019.3.0f6/tmp/TargetSupport.pkg.tmp/Payload\" | cpio -iu\n /bin/sh: 1: cpio: not found\n \n at ChildProcess.exithandler (child_process.js:312:12)\n at ChildProcess.emit (events.js:194:13)\n at maybeClose (internal/child_process.js:998:16)\n at Socket.<anonymous> (internal/child_process.js:403:11)\n at Socket.emit (events.js:194:13)\n at Pipe.<anonymous> (net.js:593:12)\n killed: false,\n code: 127,\n signal: null,\n cmd:\n 'cd /home/lukasd/Unity/Hub/Editor/2019.3.0f6; gzip -dc \"/home/lukasd/Unity/Hub/Editor/2019.3.0f6/tmp/TargetSupport.pkg.tmp/Payload\" | cpio -iu' } ]","timestamp":"2020-02-21T15:31:58.071Z"}

Notes:
- You can check if you have 'cpio' installed by typing `whereis cpio` in your Terminal
- Workaround is to install 'cpio' by typing `sudo apt-get install cpio`

  1. Resolution Note:

    All Linux fixes are scheduled for Unity 2021.2 as the Linux support feature.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.