Skip to main content
Topic: Issue Accessing Repos and AUR from Home (Read 531 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Issue Accessing Repos and AUR from Home

I've been having problems recently updating my system from home. I have moments where it just has problems syncing databases with the repos and grabbing PKGBUILDs from the AUR. It sometimes takes me narrowing down updates to a small number at a time to be able to update.
I have been able to update just fine elsewhere. I get the packages and PKGBUILDs just fine at other locations.
From home it get things like this from AUR helpers.
Code: [Select]
 -> error fetching brave-beta-bin: fatal: unable to access 'https://aur.archlinux.org/brave-beta-bin.git/': Could not resolve host: aur.archlinux.org 
context: exit status 1
And then I trying and ping aur.archlinux.org and it works fine.
Code: [Select]
PING aur.archlinux.org(aur.archlinux.org (2a01:4f9:c010:50::1)) 56 data bytes
64 bytes from aur.archlinux.org (2a01:4f9:c010:50::1): icmp_seq=1 ttl=52 time=309 ms
64 bytes from aur.archlinux.org (2a01:4f9:c010:50::1): icmp_seq=2 ttl=52 time=167 ms
64 bytes from aur.archlinux.org (2a01:4f9:c010:50::1): icmp_seq=3 ttl=52 time=172 ms
64 bytes from aur.archlinux.org (2a01:4f9:c010:50::1): icmp_seq=4 ttl=52 time=241 ms
64 bytes from aur.archlinux.org (2a01:4f9:c010:50::1): icmp_seq=5 ttl=52 time=261 ms
^C
--- aur.archlinux.org ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 6805ms
rtt min/avg/max/mdev = 167.207/229.890/308.787/53.889 ms
And the hosts command resolves out like so.
Code: [Select]
aur.archlinux.org has address 95.216.144.15
aur.archlinux.org has IPv6 address 2a01:4f9:c010:50::1
aur.archlinux.org mail is handled by 10 mail.archlinux.org.

I feel like there is something I am overlooking, but not sure what. I do have Starlink at home.

Re: Issue Accessing Repos and AUR from Home

Reply #1
This sounds more like a network configuration problem than anything else. What init and what network manager are you using?
Less related but which AUR helpers did you try? Trizen and yaourtix should be more resilient than yay or paru for instance.

Re: Issue Accessing Repos and AUR from Home

Reply #2
Runit and NetworkManager, I haven't tried Trizen or yaurtix yet, I've tried both yay and paru. Interesting that the two I have tried are the less reliable ones...

EDIT: I am starting to think that removing and readding the network via nmtui might help, which I haven't tried yet, cause I set up mac address randomization post network settings.
EDIT 2: Electric Boogaloo: It changed nothing in this case.

Re: Issue Accessing Repos and AUR from Home

Reply #3
In NM you should check if the dns servers stick, maybe the "isp" in your case advertized it behaves weirdly.
If your connection is straight up dhcp you can always just remove NM and use dhcpcd, at least for testing.

Quote
Interesting that the two I have tried are the less reliable ones...
They are the most popular and feature filled, so reasonably reliable, but at least in the case of Trizen that is bulletproof.

 

Re: Issue Accessing Repos and AUR from Home

Reply #4
It's possible to have combinations of wifi card and router that don't work well with each other, changing one or the other might help, although check other things too of course. You might be able to test if it's wifi related by connecting with an ethernet connection, also you could connect an old unused router by ethernet to the current one and configure it as wifi repeater then connect to that SSID instead.

Re: Issue Accessing Repos and AUR from Home

Reply #5
It's possible to have combinations of wifi card and router that don't work well with each other, changing one or the other might help, although check other things too of course. You might be able to test if it's wifi related by connecting with an ethernet connection, also you could connect an old unused router by ethernet to the current one and configure it as wifi repeater then connect to that SSID instead.
Which is interesting, because every other application runs fine with it, Steam has really good download speeds and everything else works just fine. Which leads me to a DNS issue and Hitman points out, so I'll double check that at home to see what NM gives me and hope for the best. Cause all the points seems to hint at something at home versus on my system directly, but it could be a combination of the two.

Re: Issue Accessing Repos and AUR from Home

Reply #6
I think the AUR helpers are probably only using standard utilities like curl, git and pacman itself and printing the error messages received from them when things fail, rather than doing something unique to them, so if other things work then it does suggest a problem with specific web addresses. If you connect via a regular DHCP connection then you will typically be assigned the default DNS server that your ISP provides, you can usually see what it is /etc/resolv.conf and search the IP address online to find out more about it, although you shouldn't edit that file when using Network Manager. You can define your own choice of DNS server though, using whatever procedure applies for your connection methods, (I'm sure there's some settings page in NM for this but I don't usually use it so don't know where  ;D ) and reboot before testing.