jorgebucaran / fisher

A plugin manager for Fish
https://git.io/fisher
MIT License
7.7k stars 263 forks source link

Can't install fisher or any plugin (WSL) (curl ?) #718

Closed Vincent-HD closed 2 years ago

Vincent-HD commented 2 years ago

Fish version: 3.4.1 Curl version: 7.81.0 (x86_64-pc-linux-gnu) OS: Ubuntu 22.04 LTS Via WSL 2 using this tarball: Ubuntu tar gz file from this link found on this repo

Error: fisher: Invalid plugin name or host unavailable: "IlanCosman/tide@v5" when running fisher install cmd fisher install IlanCosman/tide@v5

Same during the installation process:

curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher
fisher: Invalid plugin name or host unavailable: "jorgebucaran/fisher"

I have no curlrc file or any custom configuration, it's a brand new WSL install, just installed curl wget etc ...

A weird file appeared in cwd after running the command which seems to be the output of curl: ''$'\001\020''3@pu'$'\001''@8'$'\r''@'$'\036\035\006\004''@@@'$'\357\277\275\002\357\277\275\002\b\003\004\030\003\030\003\030\003\034\034\001\001\004\357\277\275\037\357\277\275\037\020\001\005'

I tried two times, I'll try with another tarball

StewartThomson commented 2 years ago

I am also seeing this on Ubuntu 18.04

Fish version: 3.3.1 Fisher version: 4.3.0 Curl version: 7.58.0 (x86_64-pc-linux-gnu) OS: Ubuntu 18.04 LTS

fisher install jorgebucaran/nvm.fish

fisher install version 4.3.0
Fetching https://codeload.github.com/jorgebucaran/nvm.fish/tar.gz/HEAD
fisher: Invalid plugin name or host unavailable: "jorgebucaran/nvm.fish"

Something similar is also happening to the plugin itself

nvm use 17

curl: (77) error setting certificate verify locations:
  CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
nvm: invalid mirror index -- is "https://nodejs.org/dist" a valid host?
chvolkmann commented 2 years ago

This seems to be related to WSL, see microsoft/vscode-remote-release#1856.

In my case, the described workaround worked. The gzip binary on WSL seem to be faulty.

So either patch it directly

echo -en '\x10' | sudo dd of=/usr/bin/gzip count=1 bs=1 conv=notrunc seek=$((0x189))

or install a proper version

wget http://ftp.debian.org/debian/pool/main/g/gzip/gzip_1.12-1_amd64.deb   
sudo dpkg -i ./gzip_1.12-1_arm64.deb
jorgebucaran commented 2 years ago

Thank you, @chvolkmann. 🙌

milhauzindahauz commented 10 months ago

Faced the similar issue. I had to patch the script to use wget. I purpose to add a switch to use wget instead of the curl.

Should I create new issue for this?

jorgebucaran commented 10 months ago

Alternatively, could you install curl on your device, no?

milhauzindahauz commented 10 months ago

Alternatively, could you install curl on your device, no?

I have it. I am able to download the fisher function by it.