volta icon indicating copy to clipboard operation
volta copied to clipboard

Failed to install Volta version 1.1.1 on Linux

Open koleajeolayinka opened this issue 1 year ago • 8 comments

I am attempting to install Volta version 1.1.1 on my Linux system by running the command curl https://get.volta.sh | bash. However, I am encountering the following error:

Warning: Failed to open the file /tmp/tmp.OxtXds0NOr/volta-1.1.1-linux.tar.gz:
Warning: No such file or directory
curl: (23) Failure writing output to destination

Error: Could not download Volta version '1.1.1'. See https://github.com/volta-cli/volta/releases for a list of available releases

My system is running Linux (Ubuntu 20.04.3 LTS) and I have not made any modifications to the system before attempting to install Volta.

Please let me know if you have any suggestions on how to resolve this issue. Thank you! 🙏🏿

koleajeolayinka avatar Mar 05 '23 15:03 koleajeolayinka

I am encountering the same issue today

CriPstian avatar Apr 05 '23 07:04 CriPstian

After a short research I found out that curl is the problem here, not the Volta installer. You can find the details in this answer: here

To save you the clicks:

sudo snap remove curl
sudo apt install curl

CriPstian avatar Apr 05 '23 08:04 CriPstian

@CriPstian Thanks for tracking that down! I wonder if there's something we can do with our scripts to make them work properly even with the snap version of curl. It looks like the underlying issue is tied to hidden / tmp folders, possibly we can download to a known directory instead. Though it may be tricky to come up with one that we have access to in general.

charlespierce avatar Apr 19 '23 19:04 charlespierce

I found a small article documenting the curl release on the snap store here. It says that because of the snap store restrictions:

Currently write access is only possible to the home directory of the user invoking the snap

It also suggest a way to write to a file is to use a shell redirect:

Using the shell redirect (>) it can still write anywhere as it ultimately it is the shell doing the writing in that case and not the snapped curl.

I guess there are two options:

  1. Download to current directory and try to clean up after
  2. Use the shell redirect and see if it is able to access the downloaded file there

CriPstian avatar Apr 20 '23 10:04 CriPstian

Seems like an old issue but I'm having a smimilar problem today: curl: (60) SSL: no alternative certificate subject name matches target host name 'get.volta.sh'

Anyone have any ideas? I've already tried passing -k and -insecure to curl with no luck.

just-Bri avatar Jul 19 '23 17:07 just-Bri

Download the files corresponding to the corresponding version. After downloading and decompressing, execute them all. https://github.com/volta-cli/volta/releases Re-execute the installation command

curl https://get.volta.sh | bash

SmallCowHorse avatar Dec 26 '23 03:12 SmallCowHorse

May be you should manually install this cli tool. Visit url: https://github.com/volta-cli/volta/releases, download and unzip it. Then add your path.

ghost avatar Dec 28 '23 11:12 ghost

Greetings, I face same issue, here is what I did and finally it worked for me. I had installed the curl using sudo snap curl. Here was the issue. i do not the reason but i removed the curl using curl snap remove curl. Then, I install curl using sudo apt install curl and the command worked for me. curl https://get.volta.sh | bash

Ali-0111 avatar May 11 '24 09:05 Ali-0111