You are not logged in.

#1 2009-05-21 03:34:04

jwmollman
Member
Registered: 2009-05-20
Posts: 31

error: failed to synchronize any databases

After doing a fresh install of Arch Linux, I began the update process and did a "sudo pacman -Syu". Once I let that go, and I returned from work, I ran that command again to see if I got all the updates, and I get the following:

[root@john-laptop ~]# sudo pacman -Syu
:: Synchronizing package databases...
error: failed to update core (unexpected error)
error: failed to update extra (unexpected error)
error: failed to update community (unexpected error)
error: failed to synchronize any databases
[root@john-laptop ~]#

I've tried to restart numerous times, as well as running PPPoE, but I have no clue what exactly that did. I just ran through all the defaults on that, and I still can't seem to ping google.com. After a reboot, however, the system hangs when it tried to start the network, and I don't know how to revert the changes back as if I never ran PPPoE.

EDIT: I've tried uncommenting all of the United States servers, but that gives me the same error.

Last edited by jwmollman (2009-05-21 03:43:15)

Offline

#2 2009-05-21 13:30:28

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: error: failed to synchronize any databases

What happens if you try sudo pacman -Syy?


Website - Blog - arch-home
Arch User since March 2005

Offline

#3 2009-05-21 15:15:49

jwmollman
Member
Registered: 2009-05-20
Posts: 31

Re: error: failed to synchronize any databases

pyther wrote:

What happens if you try sudo pacman -Syy?

I don't know, as I am at school right now. But as soon as I get home, I will let you know on that one. What exactly is the difference between -Syu and -Syy?

Offline

#4 2009-05-21 15:28:21

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: error: failed to synchronize any databases

Passing two --refresh or -y flags will force a refresh of all package lists even if they are thought to be up to date

pacman man page, not sure if it will work, but it is worth a try


Website - Blog - arch-home
Arch User since March 2005

Offline

#5 2009-05-21 19:17:55

jwmollman
Member
Registered: 2009-05-20
Posts: 31

Re: error: failed to synchronize any databases

pyther wrote:

What happens if you try sudo pacman -Syy?

Okay, I tried that and it just gave me the same error. I'm really thinking about doing another fresh install of Arch, is that a bad idea, or is there no other option?

Offline

#6 2009-05-21 19:36:04

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: error: failed to synchronize any databases

post the output of this command: pacman -Syu --debug

i think you dont have a proper mirror selected in mirrorlist.

Last edited by wonder (2009-05-21 19:38:40)


Give what you have. To someone, it may be better than you dare to think.

Offline

#7 2009-05-21 20:00:10

jwmollman
Member
Registered: 2009-05-20
Posts: 31

Re: error: failed to synchronize any databases

wonder wrote:

post the output of this command: pacman -Syu --debug

i think you dont have a proper mirror selected in mirrorlist.

I can't post the exact output because it's very long and cuts off the screen. I also have my netbook sitting next to me which Arch is on, and I can't get that coppied and pasted to the temporary computer I am using now.

I attemped to type everything here and show you what I could see:

debug: opening database from path '/var/lib/pacman/sync/community/"
debug: config: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: finished parsing /etc/pacman.conf
debug: registering local databse
debug: opening databse 'local'
debug: opening databse from path '/var/lib/pacman/local/'
:: Synchronizing pacakge databases...
debug: failed to sync db: unexpected error
error: failed to update core (unexpected error)
debug: failed to sync db: unexpected error
error: failed to update extra (unexpected error)
debug: failed to sync db: unexpected error
error: failed to update community (unexpected error)
error: failed to synchronize any databases
debug: closing databse 'local'
debug: unregistering databse 'local'
debug: closing databse 'core'
debug: unregistering database 'core'
debug: closing database 'extra'
debug: unregistering database 'extra'
debug: closing databse 'community'
debug: unregistering databse 'community'
[root@john-laptop ~]#

I tried to uncomment all of the United States mirrors to see if that could resolve it because, obviously, that's the country I'm in and those are the servers I need to use, right?

Last edited by jwmollman (2009-05-21 20:01:53)

Offline

#8 2009-05-21 20:07:10

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: error: failed to synchronize any databases

clearly you don't have any server uncommented because a proper debug would look like this:

debug: registering sync database 'community'
debug: opening database 'community'
debug: opening database from path '/var/lib/pacman/sync/community/'
debug: config: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: adding new server URL to database 'community': http://mir.archlinux.fr/community/os/x86_64
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: finished parsing /etc/pacman.conf

notice the server url. yours is missing. just remove # in front of a server line.

Last edited by wonder (2009-05-21 20:08:22)


Give what you have. To someone, it may be better than you dare to think.

Offline

#9 2009-05-21 20:10:52

jwmollman
Member
Registered: 2009-05-20
Posts: 31

Re: error: failed to synchronize any databases

I recommented the lines, but now I will uncomment them. Should I uncomment all of the United States servers or just one?

Offline

#10 2009-05-21 20:11:58

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: error: failed to synchronize any databases

you can uncomment just one, or you can uncomment all. just don't use ftp.archlinux.org


Give what you have. To someone, it may be better than you dare to think.

Offline

#11 2009-05-21 20:17:18

jwmollman
Member
Registered: 2009-05-20
Posts: 31

Re: error: failed to synchronize any databases

Okay I uncommented http://mirror.archlinux.com.ve/$repo/os/i686 and I get a bunch of debug errors like:

debug: FTP_PROXY:   (null)
debug: ftp_proxy:   (null)
error: failed retrieving file 'extra.db.tar.gz' from mirror.archlinux.com.ve : Transient resolver failure
debug: failed to sync db: Transient resolver failure
error: failed to update extra (Transient resolver failure)
debug: using 'community.db.tar.gz' for download progress
debug: HTTP_PROXY:  (null)
debug: http_prozy:  (null)
debug: FTP_PROXY  (null)
debug: ftp_proxy  (null)
error: failed retrieving file 'community.db.tar.gz' from mirror.archlinux.com.ve : Transient resolver failure

...and then it unregisters and closes 'local', 'core', 'extra', and 'community'.

Last edited by jwmollman (2009-05-21 20:17:57)

Offline

#12 2009-05-21 20:33:38

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: error: failed to synchronize any databases

hmm. do you have your network setup well? the internet is working on that machine?
check your ip, gateway and dns.
http://wiki.archlinux.org/index.php/Configuring_network

Last edited by wonder (2009-05-21 20:35:39)


Give what you have. To someone, it may be better than you dare to think.

Offline

#13 2009-05-22 00:00:51

jwmollman
Member
Registered: 2009-05-20
Posts: 31

Re: error: failed to synchronize any databases

wonder wrote:

hmm. do you have your network setup well? the internet is working on that machine?
check your ip, gateway and dns.
http://wiki.archlinux.org/index.php/Configuring_network

I remember looking up something about PPPoE, so I tried that and went through all of the defaults and it seemed to make the "starting network" dialog at startup hang for about 20sec and then it times out. I don't know how to remove that PPPoE thing either.

I tried to ping www.google.com, but that doesn't work. It just says "ping: unknown host www.google.com".

Offline

#14 2009-05-22 00:17:59

soupcan
Member
From: ?
Registered: 2008-10-25
Posts: 268

Re: error: failed to synchronize any databases

My guess is that your computer isn't connecting to your network properly. What steps did you take to get it after you installed? Have you considered using something like Wicd?

Offline

#15 2009-05-22 00:23:07

jwmollman
Member
Registered: 2009-05-20
Posts: 31

Re: error: failed to synchronize any databases

soupcan wrote:

My guess is that your computer isn't connecting to your network properly. What steps did you take to get it after you installed? Have you considered using something like Wicd?

I just plugged in a network cable into my Eee PC, and then, logged in as root, "pacman -S wicd" and it checks for dependencies. Once I choose "y" to comfirm, I get this error:

:: Retrieving packages from core...
error: failed retrieving file 'glib2-2.20.1-1-i686.pkg.tar.gz' from mirror.cs.vt.edu : Transient resolver failure
warning: failed to retrieve some files from core
error: failed to commit transaction (unexpected error)
Errors occurred, no pacakges were upgraded.
[root@john-laptop ~]#

Offline

#16 2009-05-22 00:44:48

soupcan
Member
From: ?
Registered: 2008-10-25
Posts: 268

Re: error: failed to synchronize any databases

jwmollman wrote:
soupcan wrote:

My guess is that your computer isn't connecting to your network properly. What steps did you take to get it after you installed? Have you considered using something like Wicd?

I just plugged in a network cable into my Eee PC, and then, logged in as root, "pacman -S wicd" and it checks for dependencies. Once I choose "y" to comfirm, I get this error:

:: Retrieving packages from core...
error: failed retrieving file 'glib2-2.20.1-1-i686.pkg.tar.gz' from mirror.cs.vt.edu : Transient resolver failure
warning: failed to retrieve some files from core
error: failed to commit transaction (unexpected error)
Errors occurred, no pacakges were upgraded.
[root@john-laptop ~]#

Oh, duh. I'm an idiot. If you don't have a network connection, you can't install anything.
First, I'd recommend power cycling your router. Then post the output of

ifconfig -a

.

Last edited by soupcan (2009-05-22 00:45:25)

Offline

#17 2009-05-22 00:54:52

jwmollman
Member
Registered: 2009-05-20
Posts: 31

Re: error: failed to synchronize any databases

I get a bunch of options which some are cut off at the top of the screen. But some of the ones I can see are:

lo          Link encap:Local Lookback
             inet addr:127.0.0.1 Mask:255.0.0.0
             UP LOOPBACK RUNNING MATU:16436 Metric:1
             RX packets:0 errors:0 dropped:0 overruns:0 frames:0
             TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
             collisions:0 txqueuelen:0
             RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

wlan0   Link encap:Ethernet HWaddr 00:22:43:74:F3:16
             BROADCAST MULTICAST MTU:1500 Metric:1
             RX packets:0 errors:0 dropped:0 overruns:0 frames:0
             TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
             collisions:0 txqueuelen:1000
             RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

wmaster0     Link encap:UNSPEC HWaddr 00-22-43-74-F3-16-00-00-00-00-00-00-00-00-00-00
                     BROADCAST MULTICAST MTU:1500 Metric:1
                     RX packets:0 errors:0 dropped:0 overruns:0 frames:0
                     TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
                     collisions:0 txqueuelen:1000
                     RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

[root@john-laptop ~]#

Offline

#18 2009-05-22 07:26:40

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: error: failed to synchronize any databases

connect to the network manually. the wiki tells you how.
http://wiki.archlinux.org/index.php/Wir … nual_setup


Give what you have. To someone, it may be better than you dare to think.

Offline

#19 2009-08-06 10:59:33

mahan_h
Member
Registered: 2009-03-11
Posts: 53

Re: error: failed to synchronize any databases

I have exactly the same issue but my network is absolutely safe and sound in anyway

the result of pacman -Syu --debug:

debug: config: attempting to read file /etc/pacman.conf
debug: config: new section 'options'                   
debug: config: HoldPkg: pacman                         
debug: config: HoldPkg: glibc                          
debug: config: SyncFirst: pacman                       
debug: config: new section 'core'                      
debug: setlibpaths() called                            
debug: option 'cachedir' = /var/cache/pacman/pkg/
debug: registering sync database 'core'
debug: opening database 'core'
debug: opening database from path '/var/lib/pacman/sync/core/'
debug: serverlist flushed for 'core'
debug: config: new section 'extra'
debug: registering sync database 'extra'
debug: opening database 'extra'
debug: opening database from path '/var/lib/pacman/sync/extra/'
debug: serverlist flushed for 'extra'
debug: config: new section 'community'
debug: registering sync database 'community'
debug: opening database 'community'
debug: opening database from path '/var/lib/pacman/sync/community/'
debug: serverlist flushed for 'community'
debug: config: finished parsing /etc/pacman.conf
debug: registering local database
debug: opening database 'local'
debug: opening database from path '/var/lib/pacman/local/'
:: Synchronizing package databases...
debug: failed to sync db: unexpected error
error: failed to update core (unexpected error)
debug: failed to sync db: unexpected error
error: failed to update extra (unexpected error)
debug: failed to sync db: unexpected error
error: failed to update community (unexpected error)
error: failed to synchronize any databases
debug: closing database 'local'
debug: unregistering database 'local'
debug: closing database 'core'
debug: unregistering database 'core'
debug: closing database 'extra'
debug: unregistering database 'extra'
debug: closing database 'community'
debug: unregistering database 'community'

my /etc/pacman.conf

#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir     = /
#DBPath      = /var/lib/pacman/
#CacheDir    = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
HoldPkg     = pacman glibc
# If upgrades are available for these packages they will be asked for first
SyncFirst   = pacman
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#XferCommand = /usr/bin/curl %u > %o
#CleanMethod = KeepInstalled

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg   =
#IgnoreGroup =

#NoUpgrade   =
#NoExtract   =

# Misc options (all disabled by default)
#NoPassiveFtp
#UseSyslog
#ShowSize
#UseDelta
#TotalDownload

#
# REPOSITORIES
#   - can be defined here or included from another file
#   - pacman will search repositories in the order defined here
#   - local/custom mirrors can be added here or in separate files
#   - repositories listed first will take precedence when packages
#     have identical names, regardless of version number
#   - URLs will have $repo replaced by the name of the current repo
#
# Repository entries are of the format:
#       [repo-name]
#       Server = ServerName
#       Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#

# Testing is disabled by default.  To enable, uncomment the following
# two lines.  You can add preferred servers immediately after the header,
# and they will be used before the default mirrors.
#[testing]
#Include = /etc/pacman.d/mirrorlist

[core]
Server=
# Add your preferred servers here, they will be used first

[extra]
Server=
# Add your preferred servers here, they will be used first

[community]
Server=
# Add your preferred servers here, they will be used first

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#Server = file:///home/custompkgs

currently using nm-applet and seems like I cannot use wicd.
seems like pacman can not find its way to the internet...

Really confused.....

Offline

Board footer

Powered by FluxBB