volta
volta copied to clipboard
Failed to install Volta version 1.1.1 on Linux
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! 🙏🏿
I am encountering the same issue today
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 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.
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:
- Download to current directory and try to clean up after
- Use the shell redirect and see if it is able to access the downloaded file there
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.
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
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.
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