Zulip Chat Archive
Stream: new members
Topic: Elan error fetching from github
Rei (Apr 17 2021 at 04:19):
Hi, I'm trying to run elan and I'm getting this error
1) Proceed with installation (default)
2) Customize installation
3) Cancel installation
info: syncing channel updates for 'stable'
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { description: "Couldn\'t resolve host name", code: 6, extra: Some("Could not resolve host: github.com") }', src/elan-utils/src/utils.rs:548:32
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
~/code ping github.com
PING github.com (140.82.114.3) 56(84) bytes of data.
64 bytes from 140.82.114.3: icmp_seq=1 ttl=53 time=9.56 ms
As shown, the code is failing to resolve github.com but I can definitely access it, both in cURL and in my web browser. Anyone seen an issue like this?
Rei (Apr 17 2021 at 04:40):
if relevant, I'm on Arch and I already had rustup/cargo installed
Johan Commelin (Apr 17 2021 at 06:56):
@Sebastian Ullrich any ideas?
Sebastian Ullrich (Apr 17 2021 at 07:45):
Not really, I'm afraid
Johan Commelin (Apr 17 2021 at 07:47):
@Rei Can you download the elan installation script, and just manually run the part until it wants do download something from github. Download manually, and then run the rest of the script?
Sebastian Ullrich (Apr 17 2021 at 07:50):
Could be related to IPv4/v6 or general DNS settings https://github.com/rust-lang/rustup/issues/924
Rei (Apr 17 2021 at 17:03):
Sebastian Ullrich said:
Could be related to IPv4/v6 or general DNS settings https://github.com/rust-lang/rustup/issues/924
I added 8.8.8.8 to my /etc/resolv and it worked! Thanks!
Last updated: Dec 20 2023 at 11:08 UTC