You are not logged in.

#1 2013-05-24 01:18:08

multiphrenic
Member
From: Toronto, Canada
Registered: 2011-04-26
Posts: 73
Website

[SOLVED] Pacman taking a long time to sync?

I know long is relative, but I recently reinstalled Arch and it seems to take a lot longer than it used to. This is while syncing when everything is up to date. Obviously, not something I do often, but I have similar delays when searching or installing packages.

sudo time pacman -Sy

:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 archlinuxfr is up to date

real	0m10.497s
user	0m10.037s
sys	0m0.013s

Last edited by multiphrenic (2013-05-24 14:29:31)

Offline

#2 2013-05-24 01:22:15

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] Pacman taking a long time to sync?

/etc/pacman.d/mirrorlist is probably a good file to look into.

Offline

#3 2013-05-24 01:27:53

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,459
Website

Re: [SOLVED] Pacman taking a long time to sync?

reflector is great to find the best mirrors for your system.  But if it seems like just a lag, then timeout, and then quick sync, it *might* be an IPv6 issue.

You can test by doing (as root or with sudo) `sysctl net.ipv6.conf.all.disable_ipv6=1` then rerun pacman and see if it is better.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2013-05-24 01:43:21

multiphrenic
Member
From: Toronto, Canada
Registered: 2011-04-26
Posts: 73
Website

Re: [SOLVED] Pacman taking a long time to sync?

Trilby wrote:

reflector is great to find the best mirrors for your system.  But if it seems like just a lag, then timeout, and then quick sync, it *might* be an IPv6 issue.

You can test by doing (as root or with sudo) `sysctl net.ipv6.conf.all.disable_ipv6=1` then rerun pacman and see if it is better.

I should have mentioned I tried 4 mirrors, all with similar results.

Looks like it's only with resolving the domain names that I am having problems.

Just tried

wget https://www.archlinux.org/packages/extra/x86_64/ucommon/download/

took about 8 seconds to resolve, and 0.7s to download (811kb/s)

Tried disabling ipv6, no difference..

EDIT:
looks like i had a dead dns server in /etc/resolv.conf. Changed my DNS servers on my router to Google's (8.8.8.8) (8.8.4.4) and things are better now (<1s)

Last edited by multiphrenic (2013-05-24 01:53:54)

Offline

#5 2013-05-24 02:02:34

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] Pacman taking a long time to sync?

Wow, okay that was pretty unexpected... please mark the thread as [Solved] then.

Offline

Board footer

Powered by FluxBB