You are not logged in.
Hi everyone,
Pacman is timing out every time I try to download a package. I am connected to the internet: I'm posting this message, and both curl and ping work fine in all the cases I've tested.
For instance, the output of pacman -Sy has the line
error: failed retrieving file 'core.db' from mirror.rackspace.com : Resolving timed out after 10520 millisecondswhereas the output of ping -c3 mirror.rackspace.com is
PING mirror.rackspace.com (72.4.120.219) 56(84) bytes of data.
64 bytes from 72.4.120.219: icmp_seq=1 ttl=244 time=18.1 ms
64 bytes from 72.4.120.219: icmp_seq=2 ttl=244 time=26.2 ms
64 bytes from 72.4.120.219: icmp_seq=3 ttl=244 time=19.0 ms
--- mirror.rackspace.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 10132ms
rtt min/avg/max/mdev = 18.158/21.156/26.267/3.632 msThe only thing I can think of that has changed since the last time I downloaded a package successfully is my network; I am currently visiting my parent's house. This leads me to believe that the issue might have to do with some network settings/limitations here. I don't really know the ins and outs of pacman, so it's hard for me to troubleshoot this issue. The only entry in the wiki about pacman mirror timeouts suggested trying a different nameserver. I am not an expert on this, but since my internet is working through my browser and other command line programs, I assume this is not the issue.
Thanks for the help!
Edit: I also should note that I have tried running rankmirrors to find a mirror that I could reach. However, the first 10-20 of them timed out, so I just assumed all the mirrors would behave the same way. I also verified that I could reach several of the "timed out" mirrors via my browser.
Last edited by B-80 (2015-03-24 03:25:22)
Offline
Try different mirrors (if you haven't already). Try using XferCommand command in pacman.conf.
Don't run 'pacman -Sy', use 'pacman -Syu'.
Offline
Try different mirrors (if you haven't already). Try using XferCommand command in pacman.conf.
Don't run 'pacman -Sy', use 'pacman -Syu'.
Thanks for the reply. I should have added that I tried running rankmirrors and the first 15 or so mirrors timed out. I also verified that I could reach several of the timed out mirrors via my browser. As far as the XferCommand bit, I'll look into it, not totally sure what that means at the moment.
Edit: Also, what's wrong with synchronizing my repository list without upgrading packages?
Last edited by B-80 (2015-03-19 20:50:08)
Offline
Read up on it: https://wiki.archlinux.org/index.php/Pa … nsupported
If you sync without upgrading, then install a new package at a later time that pulls in some upgraded dependency, this could cause major issues for non-upgraded packages that depend on non-upgraded versions of the same dependencies.
Edit: here's a much better explanation than what I provided: http://gist.io/5660494
Also, this sounds like it might be a proxy or firewall issue...
Last edited by nullified (2015-03-19 23:09:44)
"We may say most aptly, that the Analytical Engine weaves algebraical patterns just as the Jacquard-loom weaves flowers and leaves." - Ada Lovelace
Offline
Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
Offline
Thanks Alad. As I said in the original post, the wiki asked me to change the nameservers, which doesn't make much sense since my internet is working otherwise.
Edit: I have become positive that this is some sort of firewall/network setting, as I was able to use pacman when I went to a friend's house. But I am still confused as to which settings I should be playing with on my router in order to fix the problem...
Last edited by B-80 (2015-03-24 03:18:50)
Offline
this might help: https://bbs.archlinux.org/viewtopic.php?id=193372
Though I'm not sure why you'd be able to use from a friend's house. Anyway, check the ipv6 stuff mentioned there.
"We may say most aptly, that the Analytical Engine weaves algebraical patterns just as the Jacquard-loom weaves flowers and leaves." - Ada Lovelace
Offline
Thanks for the reply nullify, but it ended up being the nameservers after all.
Just for the sake of trying, I commented out my /etc/resolv.conf file, which was using my router's nameservers (and I suppose that means requests should be forwarded to Comcast, my ISP) and I added
# Google IPv4 nameservers
nameserver 8.8.8.8
nameserver 8.8.4.4
# Google IPv6 nameservers
nameserver 2001:4860:4860::8888
nameserver 2001:4860:4860::8844Now pacman works again. I'd still like to get a better idea of what was going on here. How could it be that when I try to connect to a website via my browser, my machine/network resolves the name, but when using pacman it does not?
Last edited by B-80 (2015-03-24 03:30:53)
Offline