You are not logged in.

#1 2021-07-15 19:49:22

bui3
Member
Registered: 2021-07-09
Posts: 5

[SOLVED] Installation of rustup: curl does not resolve host

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

#2 2021-07-15 19:56:16

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Installation of rustup: curl does not resolve host

Don't pipe curl to sh, that ls unwise. Follow the instructiions on the wiki: https://wiki.archlinux.org/title/Rust#Installation


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2021-07-16 05:35:42

bui3
Member
Registered: 2021-07-09
Posts: 5

Re: [SOLVED] Installation of rustup: curl does not resolve host

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

#4 2021-07-16 07:08:20

bui3
Member
Registered: 2021-07-09
Posts: 5

Re: [SOLVED] Installation of rustup: curl does not resolve host

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

Board footer

Powered by FluxBB