leder@leder-Standard-PC-Q35-ICH9-2009:~$ LANG=C curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
info: downloading installer
curl: (23) Failure writing output to destination
rustup: command failed: downloader https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init /tmp/tmp.BCJAzIMQVb/rustup-init x86_64-unknown-linux-gnu
I'm not sure what might be causing the error, but here are some things to try. You can pass a
-v argument to the downloader like this to enable verbose output, which might help figure out the cause of the problem:
LANG=C curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -v
You could also try downloading and running
rustup-init from here instead of using the script: Other installation methods - The rustup book
Hello, for me even the rustup-init failed. Finally I found that Ubuntu offered me installing two different versions of curl with apt or snap. I first chose snap to install it, then I got the error message. When I removed the snap version and installed curl with apt, the rust install worked without any problem.
The same happens on me. snap version of the curl is v7.78.0 and apt version is 7.68.0. So, the latest curl has some incompatibility on this.
Assuming nothing changed on the Rust side, it sounds like a bug report for libcurl.
I bet this is some snap (sandboxing) related issue rather than a bug in curl.
That is definitely possible.
I've heard complaints before about how snap, flatpak and the like break all sorts of assumptions that regular applications make, in the process making them next to useless as a packaging mechanism for those applications (that's irony for ya: an entire generation of package managers that has simply made itself obsolete before it even became workable).
If it is that, then installing rust using the regular shell script should be able to so le this issue.
Jesus Christ, it worked for me! Thanks a lot
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.