You are not logged in.
Hello,
I made a virtual machine with a very minimal installation of Archlinux. I installed only the lxde desktop environment and lxterminal. Now I want to install the development environment for Rust, so I follow this guide and give the command
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
but I always get an error 6 from curl "Could not resolve the host sh.rustup.rs"
My internet connection works fine, I can ping google and other web sites, and curl also retrieve correctly the html pages.
The difference here is that that url refers to a file that must be downloaded and piped to sh....
I also nlsookup-ed the url and everything seems ok.
Any suggestion? Is it possible that my so minimal installation is missing some network functionalities?
Thank you
Last edited by bui3 (2021-07-16 07:08:46)
Offline
Don't pipe curl to sh, that ls unwise. Follow the instructiions on the wiki: https://wiki.archlinux.org/title/Rust#Installation
Offline
Thank you for the answer. I tried to follow the wiki instructions, but the problem is always the same:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o rust.sh
curl: (6) Could not resolve host: sh.rustup.rs
Offline
I solved the problem by myself. Looks like adding the rows
nameserver 127.0.0.53
options edns0 trust-ad
to my /etc/resolv.conf file fixed the issue
Offline