You are not logged in.

#1 2013-12-08 17:03:33

crazymonmon
Member
Registered: 2013-12-08
Posts: 23

[SOLVED] timeout error when running pacman

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

#2 2013-12-08 18:26:38

mich04
Member
From: Illinois - United States
Registered: 2011-10-25
Posts: 390

Re: [SOLVED] timeout error when running pacman

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

#3 2013-12-08 18:31:40

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] timeout error when running pacman

mich04 wrote:

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

#4 2013-12-08 18:40:48

mich04
Member
From: Illinois - United States
Registered: 2011-10-25
Posts: 390

Re: [SOLVED] timeout error when running pacman

Sorry I thought I had summarized the information. I guess I did not process all the information smile, 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

#5 2013-12-08 18:50:29

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] timeout error when running pacman

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

#6 2013-12-09 00:12:26

crazymonmon
Member
Registered: 2013-12-08
Posts: 23

Re: [SOLVED] timeout error when running pacman

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

#7 2013-12-09 05:30:51

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] timeout error when running pacman

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

#8 2013-12-09 07:22:12

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [SOLVED] timeout error when running pacman

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

#9 2013-12-09 15:26:24

crazymonmon
Member
Registered: 2013-12-08
Posts: 23

Re: [SOLVED] timeout error when running pacman

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

#10 2013-12-10 15:52:11

crazymonmon
Member
Registered: 2013-12-08
Posts: 23

Re: [SOLVED] timeout error when running pacman

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. tongue

Offline

Board footer

Powered by FluxBB