You are not logged in.

#1 2008-06-10 16:17:02

Demios
Member
Registered: 2008-06-10
Posts: 4

Synchronizing package databases

I get this error when I try to "pacman -Syy" or "pacman -Syu"

:: Synchronizing package databases...
error: failed to synchronize core:
error: failed to synchronize extra:
error: failed to synchronize commutity:
error: failed to synchronize any databases

I'm pretty sure my network is up, I can ping www.google.com
I originally tried to use the example

[core]
# Add your preferred servers here, they will be used first
 Include = /etc/pacman.d/mirrorlist
[extra]
# Add your preferred servers here, they will be used first
 Include = /etc/pacman.d/mirrorlist
#[unstable]
# Add your preferred servers here, they will be used first
 Include = /etc/pacman.d/mirrorlist
[community]
# Add your preferred servers here, they will be used first
 Include = /etc/pacman.d/mirrorlist

when that didn't work I tried "nano /etc/pacman.d/mirrorlist" only to get a newfile. Apparently mirrorlist does not exist. I then tried it "Include = /etc/pacman.d/" in all my lines, wherein I still get the "error: failed to synchronize *"
Should I have anything specific in those lines? what about my mirrorlist, what should it look like.

note: I'm using x86_64 version.

Last edited by Demios (2008-06-10 16:22:53)

Offline

#2 2008-06-10 16:49:32

watsonalgas
Member
Registered: 2007-01-15
Posts: 92

Re: Synchronizing package databases

Here is the mirrorlist currently in SVN from Pacman:

http://repos.archlinux.org/viewvc.cgi/p … iew=markup

So basically just put any   Server = "whatever server you want here"   line in it.

Offline

#3 2008-06-10 17:03:17

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

Re: Synchronizing package databases

You can reuse that mirrorlist from svn, but you have to substitute the @carch@ just like the PKGBUILD does :
sed -i -e "s/@carch@/${CARCH}/g" ${startdir}/pkg/etc/pacman.d/mirrorlist

So for x86_64, you can do this after copying the file to the correct place :
sed -i -e "s/@carch@/x86_64/g" /etc/pacman.d/mirrorlist


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

Offline

#4 2008-06-11 14:32:11

Demios
Member
Registered: 2008-06-10
Posts: 4

Re: Synchronizing package databases

shining wrote:

You can reuse that mirrorlist from svn, but you have to substitute the @carch@ just like the PKGBUILD does :
sed -i -e "s/@carch@/${CARCH}/g" ${startdir}/pkg/etc/pacman.d/mirrorlist

So for x86_64, you can do this after copying the file to the correct place :
sed -i -e "s/@carch@/x86_64/g" /etc/pacman.d/mirrorlist

I was going to copy http://repos.archlinux.org/viewvc.cgi/p … iew=markup
Am I supposed to be doing something different?

Offline

#5 2008-06-11 14:49:50

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

Re: Synchronizing package databases

Demios wrote:
shining wrote:

You can reuse that mirrorlist from svn, but you have to substitute the @carch@ just like the PKGBUILD does :
sed -i -e "s/@carch@/${CARCH}/g" ${startdir}/pkg/etc/pacman.d/mirrorlist

So for x86_64, you can do this after copying the file to the correct place :
sed -i -e "s/@carch@/x86_64/g" /etc/pacman.d/mirrorlist

I was going to copy http://repos.archlinux.org/viewvc.cgi/p … iew=markup
Am I supposed to be doing something different?

Yes, you are supposed to do as I said!
First copy it to the correct place, then run that sed rule.


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

Offline

#6 2008-06-11 18:04:14

Zer0
Member
From: Windsor, ON, Canada
Registered: 2006-08-25
Posts: 299

Re: Synchronizing package databases

Couldn't you just reinstall pacman since mirrorlist is supposed to be part of the package?

Offline

Board footer

Powered by FluxBB