You are not logged in.

#1 2011-09-03 01:07:33

MetaMan
Member
Registered: 2011-08-08
Posts: 43

[Solved] Long Pause Between Package Downloads

I have recently installed Arch on my laptop and ever since it's first boot from installation, pacman has been acting strange. When I tell it to install a package, there is a long pause before each package starts downloading. It's not my internet connection, because when the downloads finally start, they go at normal speeds for my network.

Any ideas?

Thanks! big_smile

Last edited by MetaMan (2011-09-03 14:17:08)


http://localhost/signature.txt
Error 403: Forbidden

Offline

#2 2011-09-03 01:32:49

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

Re: [Solved] Long Pause Between Package Downloads

Try this: tell pacman to install something, abort when it asks you y/n and try installing again - is it still slow? Maybe it's just figuring out dependencies etc.

Offline

#3 2011-09-03 01:39:48

MetaMan
Member
Registered: 2011-08-08
Posts: 43

Re: [Solved] Long Pause Between Package Downloads

Tried it. That's not it. sad The slowness seems to start after I hit "y". I love Arch but this problem is making it almost unusable. sad And if this helps: The "slowness" is not present when I install a local file.

Last edited by MetaMan (2011-09-03 01:41:34)


http://localhost/signature.txt
Error 403: Forbidden

Offline

#4 2011-09-03 01:43:41

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

Re: [Solved] Long Pause Between Package Downloads

Are you using any XferCommand in pacman.conf?
Post the output of 'pacman -S --debug <whatever>'.

By <whatever> I mean a non-local package, not something you have already installed and you reinstall it. You need to download something, OK?

Last edited by karol (2011-09-03 01:45:03)

Offline

#5 2011-09-03 01:53:35

MetaMan
Member
Registered: 2011-08-08
Posts: 43

Re: [Solved] Long Pause Between Package Downloads

karol wrote:

Are you using any XferCommand in pacman.conf?
Post the output of 'pacman -S --debug <whatever>'.

By <whatever> I mean a non-local package, not something you have already installed and you reinstall it. You need to download something, OK?

The output was so long that some of the first stuff was pushed out of the buffer. Here's what I got: http://pastebin.com/download.php?i=pcvVgZx8


http://localhost/signature.txt
Error 403: Forbidden

Offline

#6 2011-09-03 01:57:10

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

Re: [Solved] Long Pause Between Package Downloads

You can redirect output e.g.

pacman --debug -S qt > foo.log

Offline

#7 2011-09-03 02:28:06

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [Solved] Long Pause Between Package Downloads

Long pauses between downloads usually means one of:

a) you're using an ftp server which is misbehaving
b) your DNS server is slow as hell

Offline

#8 2011-09-03 03:29:06

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: [Solved] Long Pause Between Package Downloads

I agree with falconindy. Looks pretty clear it's some problem during the download stage.
You can isolate the problem and use cURL to debug the download stage:

url=$(pacman -Sp linux | tee /dev/stderr)
curl --verbose "${url}" -o /dev/null

Last edited by lolilolicon (2011-09-03 03:30:45)


This silver ladybug at line 28...

Offline

#9 2011-09-03 13:50:21

MetaMan
Member
Registered: 2011-08-08
Posts: 43

Re: [Solved] Long Pause Between Package Downloads

lolilolicon wrote:

I agree with falconindy. Looks pretty clear it's some problem during the download stage.
You can isolate the problem and use cURL to debug the download stage:

url=$(pacman -Sp linux | tee /dev/stderr)
curl --verbose "${url}" -o /dev/null
[jesse@ArchBook pacman.d]$ url=$(pacman -Sp linux | tee /dev/stderr)
http://mirrors1.kernel.org/archlinux/core/os/i686/linux-3.0.4-1-i686.pkg.tar.xz

[jesse@ArchBook pacman.d]$ curl --verbose "${url}" -o /dev/null
* About to connect() to mirrors1.kernel.org port 80 (#0)
*   Trying 149.20.4.71...   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:02:30 --:--:--     0Timeout
*   Trying 2001:4f8:1:10:1997:313:1:0... Failed to connect to 2001:4f8:1:10:1997:313:1:0: Network is unreachable
* Success
* couldn't connect to host
* Closing connection #0
curl: (7) Failed to connect to 2001:4f8:1:10:1997:313:1:0: Network is unreachable

It keeps timing out... couldn't download the file from a web browser either. Got the above response the 6 times I tried it.

Could it have anything to do with breach at kernel.org?

I'll try some different mirrors. Do you know any good US ones that are usually well-kept?


http://localhost/signature.txt
Error 403: Forbidden

Offline

#10 2011-09-03 14:04:25

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: [Solved] Long Pause Between Package Downloads

MetaMan wrote:

----8<----
It keeps timing out... couldn't download the file from a web browser either. Got the above response the 6 times I tried it.

Could it have anything to do with breach at kernel.org?

I'll try some different mirrors. Do you know any good US ones that are usually well-kept?

mirrors.kernel.org and mirrors1.kernel.org are not working right now, presumably under maintenance after the breach.
Pick a mirror here: https://www.archlinux.org/mirrors/status/


This silver ladybug at line 28...

Offline

#11 2011-09-03 14:16:46

MetaMan
Member
Registered: 2011-08-08
Posts: 43

Re: [Solved] Long Pause Between Package Downloads

Thanks! Everything's working now. big_smile


http://localhost/signature.txt
Error 403: Forbidden

Offline

#12 2011-09-03 19:21:48

TheHebes
Member
From: New England
Registered: 2011-07-07
Posts: 138

Re: [Solved] Long Pause Between Package Downloads

Is there a specific process to change mirrors? I commented out all mirrors except http://cake.lib.fit.edu/archlinux/, but my output of

url=$(pacman -Sp linux | tee /dev/stderr)
curl --verbose "${url}" -o /dev/null

still is

03:16 PM >> url=$(pacman -Sp linux | tee /dev/stderr)
[url]ftp://mirrors.kernel.org/archlinux/core/os/x86_64/linux-3.0.1-1-x86_64.pkg.tar.xz[/url]
 >>  curl --verbose "${url}" -o /dev/null
* About to connect() to mirrors.kernel.org port 21 (#0)
*   Trying 149.20.4.71...   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:02:30 --:--:--     0Timeout

Why is it still trying to connect to kernel.org?

Last edited by TheHebes (2011-09-03 19:41:40)


Laptops:
MSI GS60 Ghost
Asus Zenbook Pro UX501VW
Lenovo Thinkpad X120e

Offline

#13 2011-09-04 21:51:18

MetaMan
Member
Registered: 2011-08-08
Posts: 43

Re: [Solved] Long Pause Between Package Downloads

TheHebes wrote:

Is there a specific process to change mirrors? I commented out all mirrors except http://cake.lib.fit.edu/archlinux/, but my output of

url=$(pacman -Sp linux | tee /dev/stderr)
curl --verbose "${url}" -o /dev/null

still is

03:16 PM >> url=$(pacman -Sp linux | tee /dev/stderr)
[url]ftp://mirrors.kernel.org/archlinux/core/os/x86_64/linux-3.0.1-1-x86_64.pkg.tar.xz[/url]
 >>  curl --verbose "${url}" -o /dev/null
* About to connect() to mirrors.kernel.org port 21 (#0)
*   Trying 149.20.4.71...   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:02:30 --:--:--     0Timeout

Why is it still trying to connect to kernel.org?

Did you do a 'pacman -Syyu' ?


http://localhost/signature.txt
Error 403: Forbidden

Offline

#14 2011-09-04 21:56:50

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

Re: [Solved] Long Pause Between Package Downloads

If the above doesn't work, post your pacman.conf and your mirrorlist.

Offline

Board footer

Powered by FluxBB