You are not logged in.
Pages: 1
When I run
$sudo pacman -Sy
I get
:: Synchronzin package databases...
error: failed retrieving file 'core.db' from mirror.us.leaseweb.net : Connection timed out after 10002 milliseconds
I have checked with ping and elinks and the connection to the internet is working fine. But when I use the root account pacman works fine and there is no issue while syncing or updating.
Last edited by crazymonmon (2013-12-10 15:53:33)
Offline
I think you need to update you mirrors. It is probably the mirror.
https://wiki.archlinux.org/index.php/mi … ng_mirrors
I love computers, networking and Arch Linux. Sometimes I might ask a stupid question, but please have grace with me like I would with you.
Offline
I think you need to update you mirrors. It is probably the mirror.
https://wiki.archlinux.org/index.php/mi … ng_mirrors
It's not: https://www.archlinux.org/mirrors/status/
Why would it work for the root anyway?
Offline
Sorry I thought I had summarized the information. I guess I did not process all the information , but couldn't updating the status and speed of the mirrors the op is using fix this. The reason I provided the answer I did was because I had a similar issue and this is how I solved it.
I love computers, networking and Arch Linux. Sometimes I might ask a stupid question, but please have grace with me like I would with you.
Offline
Again: the mirror works fine for me and for OP - it he's using root. For some reason it doesn't work if he's using sudo.
If the situation was different, pacman times out no matter if using root or sudo or/and the mirror seems unreachable, changing the mirror would make sense.
crazymonmon, can you post the output of 'sudo pacman -Syu --debug'?
Offline
Here is the output to 'sudo pacman -Syu --debug'.
I realize I should have cleaned up the mirrorlist to make the output cleaner. Cleaner output using just one mirror.
Last edited by crazymonmon (2013-12-09 00:36:24)
Offline
Seems to be a curl error. Though I don't understand how it occurs only with sudo.
Anyway, can you try downloading something using sudo + curl?
Also, try changing the XferCommand in pacman.conf to wget.
Offline
Are you using a proxy?
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
I was working behind a proxy but I had set the http_proxy env variable and checked the connection with elinks.
I tested it from a connection which does not need proxy and it works fine. Is there something I have to set explicitly to get it to work behind a proxy?
Last edited by crazymonmon (2013-12-09 15:31:40)
Offline
Got it fixed. Had to add
Defaults env_keep += "http_proxy https_proxy ftp_proxy"
to visudo.
Should have read https://wiki.archlinux.org/index.php/pr … rough_sudo more carefully.
Offline
Pages: 1