I’ve been trying to install packages from AUR for a few days but every helper is giving me some variation of Can't connect to aur.archlinux.org:443 (No route to host).
I’ve tried with yay and paru.
yay error:
-> Error during AUR search: 1 error occurred:
* request failed: Get "https://aur.archlinux.org/rpc?arg=paru&by=name-desc&type=search&v=5": dial tcp [2a01:4f9:c010:50::1]:443: connect: no route to host
paru error:
error: aur search failed: error sending request for url (https://aur.archlinux.org/rpc?v=5&type=search&by=name-desc&arg=paru): error trying to connect: tcp connect error: No route to host (os error 113): error trying to conn
I’ve also tried removed paru and git clone it but I got this error:
fatal: unable to access 'https://aur.archlinux.org/paru.git/': Failed to connect to aur.archlinux.org port 443 after 1154 ms: Couldn't connect to server
and the same thing with yay:
fatal: unable to access 'https://aur.archlinux.org/yay.git/': Failed to connect to aur.archlinux.org port 443 after 151 ms: Couldn't connect to server
I can open the first 2 urls with a browser and a json is returned. If you cannot - then is a problem with your internet or dns. If you can acces with a browser, then the problem is in your helpers. The git urls has to be access with git normally, otherwise they will give 404.
I tried with a different ISP now, and this time I got from yay:
-> Error during AUR search: 1 error occurred:
* request failed: Get "https://aur.archlinux.org/rpc?arg=paru&by=name-desc&type=search&v=5": dial tcp [2a01:4f9:c010:50::1]:443: connect: network is unreachable
but the git clone still the same:
Cloning into 'paru'... fatal: unable to access 'https://aur.archlinux.org/paru.git/': Failed to connect to aur.archlinux.org port 443 after 1 ms: Couldn't connect to server
No, not necessarily, web browsers nowadays have their own DNS servers set (Firefox uses Cloudflare for example, check the web browser settings).
Your system may use DNS server X but the web browser may use DNS server Z.
Check from terminal if you can ping aur.archlinux.org as this will use the system DNS server, which should be the same as the AUR helper.
But yeah sounds like a network issue on your end.
Another thing you can test is to use a VPN server to use other network routes, if the issue is located in the ISP network, it often solves this kind of temporary issue (Proton VPN is free for the test).
You could manually download the git content of the AUR from the web and do a manual install.
But you don’t need the AUR to test a ping from terminal.
Do you have a global network issue? If this i the case we can’t do anything. If it is only a DNS problem, then fix your DNS server to Cloudflare or OpenDNS, or Google for example.
Maybe you didn’t do it properly, your previous reply could have included what you have done because most of the time when someone says “I tried but it didn’t work”, then when we ask him to detail what he has done, he didn’t do what needed to be done… So maybe explain what you have done now.
If the issue is on your ISP side, as said, a VPN may help (but as you successfully access the AUR from web browser, I would think it could be a simple system DNS issue, and your browser uses its own DNS server). Maybe you are banned from the AUR too, this happens for IP addresses abusing the service.
Everyone else can access the AUR just fine. It’s something on your end unrelated to the AUR.
It will tell you in the error message if the rate limit was reached. That will only happen if you send hundreds of requests per minute. Sometimes this will happen using a VPN with multiple users with the same IP.
To define your own DNS server in NetworkManager, you need to change the IPv4 settings,
the Method from
Automatic (DHCP)
to
Automatic (DHCP), Addresses only
and then put in your DNS server(s) below.