Problem installing latest Linux Editor version

Hello!

I have some trouble installing the latest version of the linux editor on Debian 9 Stretch.

➜  Downloads sudo dpkg -i unity-editor_amd64-2017.2.0xb6Linux.deb
Selecting previously unselected package unity-editor.
(Reading database ... 172671 files and directories currently installed.)
Preparing to unpack unity-editor_amd64-2017.2.0xb6Linux.deb ...
Unpacking unity-editor (2017.2.0xb6Linux) ...
dpkg: unity-editor: dependency problems, but configuring anyway as you requested:
unity-editor depends on npm; however:
  Package npm is not installed.

It seems like its depending on the npm-package which does not exist anymore under Stretch but does under Jessie.
I know the official support is for Ubuntu, but as it has worked flawless under Debian Jessie I have high hopes for Stretch.

I’ve tried both the the --force-all and --ignore-depends=npm options while running the dpkg install. But as soon as I try to install something else with apt-get I get the following:

Reading package lists... Done
Building dependency tree      
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
unity-editor : Depends: npm but it is not installable

And when I run sudo apt-get install -f I get:

Reading package lists... Done
Building dependency tree      
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
  unity-editor
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 8,106 MB disk space will be freed.
Do you want to continue? [Y/n]

Is the only solution to add jessie-backports (or similar) to the sources.list or is there any other way around it?

Thanks.

So this is my solution right now.

I added “deb Index of /debian jessie main” to the end of /etc/apt/sources.list and ran apt-get update && apt-get install npm.
Then I installed unity and removed the same line from /etc/apt/sources.list.

Might not be the best solution in the world, but it works.

That’s … odd - maybe there’s something going on with the debian npm package?
If I search for packages called npm, it shows that it’s available for oldstable/jessie and unstable/sid, but nothing in between.
If I search for packages with a file called npm in stable/stretch, it gives me the npm package as the only result, but then following the link gives “Package not available in this suite.”

So…shrug?
Your workaround seems ok - alternatively, you could install npm from a non-apt source and install Unity using the .sh installer.

I use NVM to install node/npm (as I develop with node) so I will try the .sh-installer on another computer with Stretch which does not yet have the above jessie-solution and report back.

Installing with the .sh-installer seems to work like a charm without the npm-package installed but npm installed from other sources.

Only thing I get after I’ve started Unity is: "
Error loading launcher://unity//home/user/.local/share/unity3d/Packages/node_modules/unity-editor-home/dist/index.html?code=…" But as I’ve read this is a common bug until 2017.2-final?