hyper icon indicating copy to clipboard operation
hyper copied to clipboard

Installing Hyper on Linux via `*.deb` creates broken symbolic link. (command not found: hyper)

Open c650 opened this issue 9 years ago • 11 comments

  • [x] I am on the latest Hyper.app version
  • [x] I have searched the issues of this repo and believe that this is not a duplicate
  • OS version and name: Ubuntu 15.10
  • Hyper.app version: 1.0.0
  • Link of a Gist with the contents of your .hyper.js: Here
  • Relevent information from devtools (CMD+SHIFT+I on Mac OS, CTRL+SHIFT+I elsewhere): N/A
  • The issue is reproducible in vanilla Hyper.app: Fresh Install, so Yes.

Issue

Hello. My Issue is about installing from the standard 1.0.0 debian package (downloaded from hyper.is). I ran the typical sudo dpkg --install ./hyper-1.0.0.deb and it installed successfully. However, running hyper results in command not found.

It turns out that a broken link is created by the installation.

/usr/local/bin/hyper -> /opt/hyper/hyper

should be...

/usr/local/bin/hyper -> /opt/Hyper/hyper

That capital H caused a "failed" installation.

c650 avatar Dec 12 '16 17:12 c650

This also happened to me on Ubuntu 16.04, on Hyper version 1.0.0.

Asuza avatar Dec 13 '16 16:12 Asuza

@Asuza and my fix worked for you, I assume?

c650 avatar Dec 13 '16 18:12 c650

@c650 your fix worked fine.

Asuza avatar Dec 13 '16 18:12 Asuza

I have tried to do as you recommend @c650 on a Debian Stable install, and it keeps telling me that bash: hyper: command not found

if I use /opt/Hyper/hyper the app opens

I have tried to change the sym link using

  • ln -f -s /usr/local/bin/hyper /opt/Hyper/hyper
  • ln -s /opt/Hyper/hyper hyper ln -s /usr/local/bin/hyper newhyper mv -T newhyper hyper
  • $ ln -sfnv /usr/local/bin/hyper /opt/Hyper/hyper

Yet the "command not found" is always the response.

What am I missing?

geekosupremo avatar Dec 15 '16 19:12 geekosupremo

I deleted the link and made a new one, @geekosupremo. Also, look carefully at man ln:

ln [OPTION]... [-T] TARGET LINK_NAME

In the first attempt you've shown, you are making the link backwards.

In the second attempt, you aren't using the full paths as you must...

The third attempt is wrong for the same reason as the first...

c650 avatar Dec 15 '16 22:12 c650

@c650 Gotcha. Thank you for the heads up. I am still fairly new to Linux and I messed up the command.

Anyway I did get the symlink to work after reading the man page more carefully, and after installing a couple of needed libs, the command runs as expected. :grinning: Thank you for your patience and for pointing out, gently, where I had gone awry.

geekosupremo avatar Dec 16 '16 16:12 geekosupremo

this is also happening on Hyper 1.1.0 on Linux Mint, the link is still broken

dunst0 avatar Jan 25 '17 18:01 dunst0

This is still occurring in 1.2.1, reporting in from Lubuntu.

urcades avatar Feb 26 '17 05:02 urcades

This bug really does affect usability for less-advanced linux users (unless they find this Issue easily).

c650 avatar Feb 26 '17 16:02 c650

@c650 yeah! It seems like a rather straightforward fix — would be so cool to see this make the next release!

urcades avatar Feb 27 '17 14:02 urcades

Hey there, please try again with the new Hyper v2 release and open a new issue if the problem stills exists. Thank you!

Stanzilla avatar Apr 23 '18 02:04 Stanzilla