You are not logged in.

#1 2018-09-18 06:17:48

fusion809
Member
Registered: 2015-06-19
Posts: 70

fatal: unable to access 'https://github.com/*':* No route to host

I have Google searched this problem, but the answers tend to either confuse me (as I don't know how to modify them to apply to my situation; e.g, https://github.com/rembo10/headphones/issues/2823) or they simply seem unapplicable (e.g. https://groups.google.com/d/topic/ansib … dxN0jmzCw). I have a simple Arch machine, I haven't set up proxies or anything, just followed the install guide, doing about the minimum of customization I could do (the main customization I did was I added the name of a few packages and groups of packages I wanted, like i3, zsh, git, base-devel, xorg, xorg-drivers, etc.), with the hosts file:

127.0.0.1   localhost
::1              localhost
127.0.1.1   fusion809-pc.localdomain fusion809-pc

where my hostname, as defined in /etc/hostname, is fusion809-pc. Networking is largely working, like I can download packages fine on my freshly booted Arch install,

ping archlinux.org

runs fine (i.e. returning:

PING archlinux.org(apollo.archlinux.org (2a01:4f8:172:1d86::1
64 bytes from apollo.archlinux.org (2a01:4f8L172:1d86::1): icmp_seq=1 ttl=49 time=333 ms

(with the last line repeated over and over with the only thing that changes being the icmp_seq number and time)), but running:

git clone https://github.com/fusion809/i3-configs

returns:

Cloning into 'i3-configs'...
fatal: unable to access 'https://github.com/fusion809/i3-configs': Failed to connect to github.com port 443: No route to host

To fix this I've Googled my error message, in quotation marks, and received results like https://stackoverflow.com/questions/384 … te-to-host, the accepted answer I choose to mimic by adding:

IP Address github.com

to my /etc/hosts file. Where IP Address is my IP address that I determined by running:

ip addr

and looking at the line under enp24s0 (my network connect type), I have also tried the IP address shown by Google searching "What's my IP" (which was different to the one I got from ip addr). I have also tried using a few of the different IPs listed under ip addr. I have also tried using resolvconf -u, in the hope it was related to /etc/resolv.conf. The funny thing is that on my old laptops, with this exact same network, on Arch Linux I had no such issues. It's only this new desktop PC with an ethernet connection that is getting this issue. Windows 10 on this same PC doesn't have this issue, however. Please tell me you's have a fix for me, or a way to fix it myself. I've tried looking at https://wiki.archlinux.org/index.php/Ne … figuration, but the Troubleshooting section didn't include any examples of this sort of error.

EDIT: On first start up I noticed Arch had no internet, so I followed the network config guide by running:

ip address show
ip address add address/prefix_len broadcast + dev enp24s0
ip route add default via address dev enp24s0
dhcpcd

(with  address/prefix_len being taken from ip address show) and this fixed it, at least well enough for pinging archlinux.org to work and for pacman to successfully download packages.

I've asked questions here before and been called a help vampire, but I'm trying my darndest to fix this myself, so please help me and not attack me for asking for help. smile

Thanks for your time, and hopefully also for your patience

Last edited by fusion809 (2018-09-18 06:56:54)

Offline

#2 2018-09-18 07:11:25

seth
Member
Registered: 2012-09-03
Posts: 51,165

Re: fatal: unable to access 'https://github.com/*':* No route to host

Apparently you've no IPv4 support (at least no route for whatever cause) and github does (still…) not support IPv6
Please check your network setup, your ISP restrictions and if you *cannot* get IPv4 support from there, see https://wiki.archlinux.org/index.php/IP … oker_setup

Offline

Board footer

Powered by FluxBB