You are not logged in.

#1 2009-06-07 20:33:05

3120
Member
Registered: 2009-06-07
Posts: 8

[SOLVED] Pacman fails to refresh/update.

# pacman -Syy
:: 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

It doesnt want to connect to anything.yet when i use ping -c 3 www.google.com like the beginners guide said, it connects and does not give me unknown host error.

Toshiba Satellite L305-S5931
Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 1)
subsystem:Askey Computer Corp. Device 7128
Please, this has plagued me for a while and has left me confused.

Last edited by 3120 (2009-06-07 21:30:25)

Offline

#2 2009-06-07 20:37:12

FrozenFox
Member
From: College Station, TX
Registered: 2008-03-23
Posts: 422
Website

Re: [SOLVED] Pacman fails to refresh/update.

Have you changed the mirror in /etc/pacman.d/mirrorlist and checked that the one there now works/exists? Show us /etc/pacman.conf and /etc/pacman.d/mirrorlist if that doesn't prove to be the issue, and maybe someone can figure it out. Also couldn't hurt to tell us how much space your used arch partitions have, as that occasionally causes weird things to happen for people, but it's far far more likely to be a mirror/pacman.conf issue.

Last edited by FrozenFox (2009-06-07 20:37:24)

Offline

#3 2009-06-07 21:04:57

3120
Member
Registered: 2009-06-07
Posts: 8

Re: [SOLVED] Pacman fails to refresh/update.

#
# /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

# 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]
# 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 

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

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

that is /etc/pacman.conf


that is /etc/pacman.d/mirrorlist

Offline

#4 2009-06-07 21:17:46

Garns
Member
Registered: 2008-05-28
Posts: 239

Re: [SOLVED] Pacman fails to refresh/update.

It looks like your mirrorlist went missing somewhere. You can reinstall the mirrorlist package by hand:
If you run i686:

pacman -U  ftp://ftp.archlinux.org/core/os/i686/pacman-mirrorlist-20090509-1-i686.pkg.tar.gz

If you run x86_64:

pacman -U  ftp://ftp.archlinux.org/core/os/x86_64/pacman-mirrorlist-20090509-1-x86_64.pkg.tar.gz

Then edit /etc/pacman.d/mirrorlist and uncomment the mirrors you want to use.

Offline

#5 2009-06-07 21:28:58

3120
Member
Registered: 2009-06-07
Posts: 8

Re: [SOLVED] Pacman fails to refresh/update.

thank you so much, i have been wanting to install Arch Linux for sometime.Thank you both Garns and FrozenFox.

Last edited by 3120 (2009-06-07 21:30:40)

Offline

Board footer

Powered by FluxBB