flyctl icon indicating copy to clipboard operation
flyctl copied to clipboard

Cannot install flyctl on WSL2 - script fail

Open michjnich opened this issue 2 years ago • 4 comments
trafficstars

Describe the bug Cannot install flyctl on WSL2,

❯ curl -L https://fly.io/install.sh | sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1475    0  1475    0     0  16388      0 --:--:-- --:--:-- --:--:-- 16388
######################################################################## 100.0%
tar (child): ¨~/.fly/bin/flyctl.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now

An erronous directory - "~ - seems to get created and the tarfile is put there, rather than home. Not entirely sure where the extra character is coming from when I look at the script though.

❯ pwd
/home/mike/¨~/.fly/bin
❯ ls -la
total 24892
drwxr-xr-x 2 mike mike     4096 Feb 11 21:33 .
drwxr-xr-x 3 mike mike     4096 Feb 11 21:33 ..
-rw-r--r-- 1 mike mike 25477384 Feb 11 21:33 flyctl.tar.gz

Operating system

❯ uname -a
Linux LMAV_SURFACE_4 5.15.79.1-microsoft-standard-WSL2 #1 SMP Wed Nov 23 01:01:46 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Paste your fly.toml Not got that far yet!!

Command output: N/A

michjnich avatar Feb 11 '23 20:02 michjnich

It works for me. To make further progress we need to identify what is different.

rubys@rubypad-wsl:~$ uname -a
Linux rubypad-wsl 5.10.60.1-microsoft-standard-WSL2 #1 SMP Wed Aug 25 23:20:18 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
rubys@rubypad-wsl:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.4 LTS
Release:        20.04
Codename:       focal
rubys@rubypad-wsl:~$ curl -L https://fly.io/install.sh | sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1475    0  1475    0     0   4275      0 --:--:-- --:--:-- --:--:--  4287
######################################################################## 100.0%
set channel to shell
flyctl was installed successfully to /home/rubys/.fly/bin/flyctl
Run 'flyctl --help' to get started

I also have another machine on which I run Ubuntu 22.04 with no problems.

rubys avatar Feb 13 '23 16:02 rubys

I'm also unable to replicate this. I only have Ubuntu 22.04 but it works for me.

ndarilek avatar Mar 08 '23 18:03 ndarilek

@michjnich do you still need help with this issue?

redjonzaci avatar Sep 07 '23 16:09 redjonzaci

I don't. I gave up on fly a while back I'm afraid, so I don't use it at all. No clue if this is still an issue or not. Sorry.

michjnich avatar Oct 29 '23 11:10 michjnich