You are not logged in.

#1 2010-03-07 02:06:31

Agurken
Member
Registered: 2010-01-31
Posts: 61

Can't "pacman -Syu"

Hi guys, i have installed Arch on my computer and was about to start installing all the things thats needed

And as a start i have to "pacman -Syu" as root.

But when i write it and press enter it says ":: Synchronizing package databases..." and then nofthing, i've been waiting for about 15-20 min now, and it hasen't changed, what could be wrong?


Thanks smile

Offline

#2 2010-03-07 02:18:48

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Can't "pacman -Syu"

Have you set your mirrors in /etc/pacman.d/mirrorlist?

http://wiki.archlinux.org/index.php/Beg … mirrorlist


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2010-03-07 02:23:59

JohnVV
Member
From: Ann Arbor, Mi. U.S.A.
Registered: 2009-09-30
Posts: 107
Website

Re: Can't "pacman -Syu"

you might want to read through the
"Official Arch Linux Install Guide"
http://wiki.archlinux.org/index.php/Off … tall_Guide
and jot down some notes and bookmark it on a different computer .

think of it as a class in school and the install is the finale exam .

Offline

#4 2010-03-07 02:25:02

CountDuckula
Member
Registered: 2010-02-28
Posts: 151

Re: Can't "pacman -Syu"

Have you tested that you have got internet connectivity would be my first question?

If yes, check /etc/pacman.d/mirrorlist and see if you have a list of mirror servers - refer to this wiki article

Offline

#5 2010-03-07 02:26:32

Agurken
Member
Registered: 2010-01-31
Posts: 61

Re: Can't "pacman -Syu"

Yes i live in Denmark and uncommented the server from Denmark, but should i uncomment some more?

Offline

#6 2010-03-07 02:27:57

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Can't "pacman -Syu"

If you can ping (see CountDuckula's post), then yes - try uncommenting a few more: pacman will work through them looking for a connection...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2010-03-07 02:32:01

Agurken
Member
Registered: 2010-01-31
Posts: 61

Re: Can't "pacman -Syu"

I succesfully ping www.google.dk so no probs there, ill try uncommenting some more.

CountDuckula, in the article in the link u sent me, there are 3 servers for denmark, but in mirrorlist there only 1. Do you think i could add the other 2 and it would work?

Offline

#8 2010-03-07 02:33:27

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Can't "pacman -Syu"

That is the list of official mirrors - there are other, fully functioning mirrors as well. Add them and see how you go...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2010-03-07 02:35:42

CountDuckula
Member
Registered: 2010-02-28
Posts: 151

Re: Can't "pacman -Syu"

Agurken wrote:

I succesfully ping www.google.dk so no probs there, ill try uncommenting some more.

CountDuckula, in the article in the link u sent me, there are 3 servers for denmark, but in mirrorlist there only 1. Do you think i could add the other 2 and it would work?

Yeah, try that - i remember when i first installed Arch I had trouble with ftp based servers so i commented out the ftp one and left the http ones in operation, this fixed it for me.

Offline

#10 2010-03-07 02:42:26

CountDuckula
Member
Registered: 2010-02-28
Posts: 151

Re: Can't "pacman -Syu"

Make sure if you copy servers from that wiki page that if you are installing the 64bit version its,

x86_64

at the end, not i686 <- thats for 32 bit Arch

Offline

#11 2010-03-07 02:49:41

Agurken
Member
Registered: 2010-01-31
Posts: 61

Re: Can't "pacman -Syu"

It somtimes say:
"error: failed to init transaction (unable to lock database)
    if you're sure a package manager is not already running,
    you can remove /var/lib/pacman/db.lck"

Here i just do: "rm /var/lib/pacman/db.lck" and then go on, u think this could affect it?

EDIT//
It work now, i commented the ftp away, and added some http from nearby countries. Thanks for the help smile

Offline

#12 2010-03-07 02:54:56

CountDuckula
Member
Registered: 2010-02-28
Posts: 151

Re: Can't "pacman -Syu"

Agurken wrote:

It somtimes say:
"error: failed to init transaction (unable to lock database)
    if you're sure a package manager is not already running,
    you can remove /var/lib/pacman/db.lck"

Here i just do: "rm /var/lib/pacman/db.lck" and then go on, u think this could affect it?

EDIT//
It work now, i commented the ftp away, and added some http from nearby countries. Thanks for the help smile

Excellent, glad to be of service - dont forget to read that wiki link, install reflector and read how to get the fastest synched mirrors.

Offline

Board footer

Powered by FluxBB