You are not logged in.

#1 2009-08-10 20:19:10

descendent87
Member
Registered: 2009-07-23
Posts: 105

pacman -Syu very slow

Since the updates to pacman if I try doing

pacman -Syu

it is extremely slow (I typed it about 30 minutes ago and so far it has only refreshed the testing repo), however if I try

pacman -Syy

then it updates at normal speed and only takes a few seconds to finish

Offline

#2 2009-08-11 10:58:04

mokasin
Member
Registered: 2009-07-30
Posts: 35

Re: pacman -Syu very slow

Same here. But what does -Syy do? Can't find this option in the manpage.

Offline

#3 2009-08-11 11:04:26

ijanos
Member
From: Budapest, Hungary
Registered: 2008-03-30
Posts: 443

Re: pacman -Syu very slow

mokasin wrote:

Same here. But what does -Syy do? Can't find this option in the manpage.

It's the force option for -Sy it syncs even if the local database is up to date.

Offline

#4 2009-08-12 12:31:54

Samuel from beteigeuze
Member
From: Bavaria/Germany
Registered: 2009-06-06
Posts: 29

Re: pacman -Syu very slow

I've got the same problem, I hope it can be solved. It came up yesterday after a crash of my system (hardware error) while pacman was upgrading my system with a relatively big number of packages (epecially KDE), because I was on vacation before and my computer was at home.


There are 10 types of people: those who understand binary and those who don't.

Offline

#5 2009-08-12 12:40:09

jelly
Administrator
From: /dev/null
Registered: 2008-06-10
Posts: 716

Re: pacman -Syu very slow

Samuel from beteigeuze wrote:

I've got the same problem, I hope it can be solved. It came up yesterday after a crash of my system (hardware error) while pacman was upgrading my system with a relatively big number of packages (epecially KDE), because I was on vacation before and my computer was at home.

Check if there is an lock , and just try to force refresh mirrors and upgrade. If i recall it right if arch was downloading and not installing yet it won't hurt

@TS:  did you try to switch mirrors ? ( although this is strange behaviour )

Offline

#6 2009-08-12 15:16:10

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: pacman -Syu very slow

I've also noticed this behavior -- it seems to happen when your local database is all up to date (ie there's nothing to sync). But I'm not entirely sure about that.....I just tried a pacman -Syy and it's doing the same thing. Maybe its more random than I thought. This is a new behavior since the pacman upgrade a week or so ago, I think. I've seen it both on x86 and x86_64.

Scott

Offline

#7 2009-08-12 15:44:58

Samuel from beteigeuze
Member
From: Bavaria/Germany
Registered: 2009-06-06
Posts: 29

Re: pacman -Syu very slow

The crash had no effect on pacman, though I did an force update after it, pacman needed too much time to sync. I can confirm firecat53's notice, that only local databases with all data up-to-date cause problems. In my opinion this is a problem of the new version of pacman, perhaps we can find a workaround here.


There are 10 types of people: those who understand binary and those who don't.

Offline

#8 2009-08-12 19:48:48

gabriel9
Member
From: Berlin, DE
Registered: 2009-05-06
Posts: 91

Re: pacman -Syu very slow

I try:

pacman -Syu

Everything is fine, but when it offer me a update i pressed <y>, but nothing happen.
I try again:

pacman -Syu

Realy slow, stuck on CORE for some time. <Ctrl>+<C> is only option.
But:

yaourt -Syu

Works fine.


"The flesh knows it suffers even when the mind has forgotten."

Offline

#9 2009-08-12 21:10:27

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,165

Re: pacman -Syu very slow

I've had  the same issue and ran "pacman -Sc" followed by pacman-optimize .
Pacman -Syu is now functioning normally again.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#10 2009-08-12 21:17:20

Samuel from beteigeuze
Member
From: Bavaria/Germany
Registered: 2009-06-06
Posts: 29

Re: pacman -Syu very slow

Unfortunately this doesn't help here, updating is very slow again.

Last edited by Samuel from beteigeuze (2009-08-12 21:17:31)


There are 10 types of people: those who understand binary and those who don't.

Offline

#11 2009-08-12 22:43:30

descendent87
Member
Registered: 2009-07-23
Posts: 105

Re: pacman -Syu very slow

Had tried switching mirrors but didn't work, tried pacman-optimize but nothing either. Just had another look at mirrors and have now noticed this is only happening on ftp mirrors, http mirrors are working fine

Offline

#12 2009-08-12 23:21:15

ThoughtMonster
Member
Registered: 2009-07-20
Posts: 2

Re: pacman -Syu very slow

Same thing happens here, pacman -Sy seems to hang in "Synchronizing package databases...".

Strange thing, if I uncomment XferCommand it works fine. Continues working fine even after I recomment XferCommand.

As descendent87 said, commenting all ftp mirrors, leaving the only the http mirrors uncommented seems to "fix" the problem.

Offline

#13 2009-08-13 20:41:25

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: pacman -Syu very slow

I only have 1 ftp mirror uncommented and pacman seems to work fine, no delays, seems to be something else ... maybe a bad mirror, did you try opening the mirrors in your list with your browser to check if they open properly and fast?


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#14 2009-08-13 21:46:38

TigTex
Member
From: Portugal
Registered: 2008-06-19
Posts: 301

Re: pacman -Syu very slow

Do you have a lot of HDD activity during pacman -Sy ? (or -Syu -Syy... or anything that reads local database)
That behaviour appens to me in old low end pc's (slow hdd).

Last edited by TigTex (2009-08-13 21:47:10)


.::. TigTex @ Portugal .::.

Offline

#15 2009-08-13 21:55:47

mokasin
Member
Registered: 2009-07-30
Posts: 35

Re: pacman -Syu very slow

Not that I could say. How do I find out?

If -Syy works than it should be a problem of the FTP-Server. If I use only one it doesn't change anything.

Offline

#16 2009-08-14 12:49:38

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: pacman -Syu very slow

Hmm I got the same sittuation -Syu is slow but if I do -Syy and after this I do -Syu it's fast. smile

Last edited by SpeedVin (2009-08-14 12:50:11)


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#17 2009-08-15 11:27:29

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: pacman -Syu very slow

I've solved such a problem so:

http://pastebin.com/m4cabc2d

So I splitted for 3 different mirror list, and every mirror list contains just one line in it with the correct repository url.

Offline

#18 2009-08-15 12:27:53

mokasin
Member
Registered: 2009-07-30
Posts: 35

Re: pacman -Syu very slow

Link does not work.

Offline

#19 2009-08-15 14:53:05

AngryKoala
Member
Registered: 2009-01-22
Posts: 197

Re: pacman -Syu very slow

Try different DNS servers.  http://www.dnsserverlist.org/ gives you 3 servers that are close to you.

Offline

#20 2009-08-15 14:55:09

mokasin
Member
Registered: 2009-07-30
Posts: 35

Re: pacman -Syu very slow

Sorry, I wasn't clear enough. I get the error that the pastebin id doesn't exist. So the link works in that way.

Offline

#21 2009-08-15 21:57:28

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: pacman -Syu very slow

I gave in the pacman.conf 3 different mirrorlist files, and each one contains just one line for the actually using repo, that's all smile I use german mirror.

Offline

#22 2009-08-16 00:12:46

guzz46
Member
From: New Zealand
Registered: 2009-06-18
Posts: 190

Re: pacman -Syu very slow

i have a similar problem, its not the download speed of pacman thats the problem but it now takes about 5 seconds after finishing downloading 1 file to move onto the next file, which can take a long time if you happen to be downloading lots of small files.

Offline

#23 2009-08-16 00:52:07

AngryKoala
Member
Registered: 2009-01-22
Posts: 197

Re: pacman -Syu very slow

guzz46 wrote:

i have a similar problem, its not the download speed of pacman thats the problem but it now takes about 5 seconds after finishing downloading 1 file to move onto the next file, which can take a long time if you happen to be downloading lots of small files.

This I solved with new/additional DNS.

Offline

#24 2009-08-18 09:32:11

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: pacman -Syu very slow

why do we need so many threads about the same issue? I am tired of posting in all of them
http://bbs.archlinux.org/viewtopic.php?id=78238
http://bbs.archlinux.org/viewtopic.php?id=78275

I believe I fixed this issue : http://projects.archlinux.org/?p=pacman … ae80c5988d
so wait for 3.3.1


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

Board footer

Powered by FluxBB