You are not logged in.

#1 2009-12-18 02:46:03

kureikain
Member
From: Axcoto Labs
Registered: 2009-07-23
Posts: 9
Website

pacman: could not open sync database: core

Yesterday, after i move /usr to a new partition and made change to /etc/fstab to mount /usr to that new partition!
After that, when i tried to run pacman -Syu i got this:

config: line 7: all directives must belong to a section
config: line 7: all directives must belong to a section
config: line 7: all directives must belong to a section
:: Synchronizing package databases...
failed to synchronize core
failed to synchronize extra
failed to synchronize community
error: could not open sync database: core
       have you used --refresh yet?

Here is 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)
#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.
#

# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.

#[testing]
## Add your preferred servers here, they will be used first
#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-testing]
## 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

Here is pacman.d/mirrorlist

#
# Arch Linux repository mirrorlist
#

# North America
# - United States
Server = ftp://ftp.archlinux.org/$repo/os/i686
Server = ftp://locke.suu.edu/linux/dist/archlinux/$repo/os/i686
Server = http://archlinux.unixheads.org/$repo/os/i686
Server = ftp://ftp.gtlib.gatech.edu/pub/linux/di … po/os/i686
Server = ftp://mirror.cs.vt.edu/pub/ArchLinux/$repo/os/i686
Server = http://mirrors.easynews.com/linux/archl … po/os/i686
Server = ftp://ftp.ibiblio.org/pub/linux/distrib … po/os/i686
Server = http://archlinux.umflint.edu/mirrors/ar … po/os/i686
Server = http://mirror.neotuli.net/arch/$repo/os/i686
Server = http://mirror.rit.edu/archlinux/$repo/os/i686
Server = http://mirror.umoss.org/archlinux/$repo/os/i686
Server = http://schlunix.org/archlinux/$repo/os/i686
Server = http://mirror.archlinux.com.ve/$repo/os/i686
#Server = http://mirrors.gigenet.com/archlinux/$repo/os/i686
# - Canada
Server = ftp://mirror.csclub.uwaterloo.ca/archli … po/os/i686
Server = ftp://mirrors.portafixe.com/archlinux/$repo/os/i686

# South America
# - Brazil
Server = http://archlinux.c3sl.ufpr.br/$repo/os/i686
Server = ftp://archlinux.c3sl.ufpr.br/archlinux/$repo/os/i686
Server = ftp://ftp.las.ic.unicamp.br/pub/archlinux/$repo/os/i686
# - Venezuela
#Server = http://mirror2.archlinux.com.ve/$repo/os/i686

# Europe
# - Austria
Server = ftp://gd.tuwien.ac.at/opsys/linux/archl … po/os/i686
# - Belgium
Server = ftp://ftp.belnet.be/mirror/archlinux.org/$repo/os/i686
# - Czech Republic
Server = ftp://ftp.sh.cvut.cz/MIRRORS/arch/$repo/os/i686
# - Denmark
Server = ftp://ftp.klid.dk/archlinux/$repo/os/i686
# - Estonia
Server = ftp://ftp.estpak.ee/pub/archlinux/$repo/os/i686
# - France
#Server = ftp://mir1.archlinuxfr.org/archlinux/$repo/os/i686
#Server = ftp://mir2.archlinuxfr.org/archlinux/$repo/os/i686
#Server = ftp://distrib-coffee.ipsl.jussieu.fr/pu … po/os/i686
#Server = http://mir.archlinux.fr/$repo/os/i686
#Server = ftp://ftp.free.fr/mirrors/ftp.archlinux … po/os/i686
#Server = ftp://ftp.rez-gif.supelec.fr/Linux/arch … po/os/i686
# - Germany
#Server = ftp://ftp.hosteurope.de/mirror/ftp.arch … po/os/i686
#Server = ftp://ftp5.gwdg.de/pub/linux/archlinux/$repo/os/i686
#Server = ftp://ftp.uni-bayreuth.de/pub/linux/arc … po/os/i686
#Server = ftp://ftp.archlinuxppc.org/i686/$repo/os/i686
#Server = ftp://ftp.tu-chemnitz.de/pub/linux/arch … po/os/i686
#Server = http://ftp.uni-kl.de/pub/linux/archlinux/$repo/os/i686
#Server = ftp://mirrors.igprolin-online.org/archl … po/os/i686
#Server = ftp://ftp-stud.hs-esslingen.de/pub/Mirr … po/os/i686
# - Great Britain
#Server = http://www.mirrorservice.org/sites/ftp. … po/os/i686
#Server = ftp://mirrors.uk2.net/pub/archlinux/$repo/os/i686
#Server = http://archlinux.mirrors.uk2.net/$repo/os/i686
#Server = ftp://mirror.lividpenguin.com/pub/archl … po/os/i686
# - Greece
Server = ftp://ftp.ntua.gr/pub/linux/archlinux/$repo/os/i686
# - Hungary
Server = ftp://ftp.mfa.kfki.hu/pub/mirrors/ftp.a … po/os/i686
# - Ireland
#Server = ftp://ftp.heanet.ie/mirrors/ftp.archlin … po/os/i686
# - Italy
#Server = ftp://mi.mirror.garr.it/mirrors/archlinux/$repo/os/i686
# - Netherlands
#Server = ftp://ftp.nluug.nl/pub/metalab/distribu … po/os/i686
#Server = ftp://ftp.surfnet.nl/pub/os/Linux/distr … po/os/i686
# - Norway
#Server = http://mirror.archlinux.no/$repo/os/i686
# - Poland
Server = ftp://mirror.icis.pcz.pl/archlinux/$repo/os/i686
Server = http://piotrkosoft.net/pub/mirrors/ftp. … po/os/i686
Server = ftp://ftp.piotrkosoft.net/pub/mirrors/f … po/os/i686
Server = http://unix.net.pl/archlinux.org/$repo/os/i686
# - Portugal
#Server = ftp://cesium.di.uminho.pt/pub/archlinux/$repo/os/i686
# - Romania
#Server = ftp://ftp.iasi.roedu.net/mirrors/archli … po/os/i686
# - Russia
Server = ftp://mirror.yandex.ru/archlinux/$repo/os/i686
Server = http://archlinux.freeside.ru/$repo/os/i686
# - Sweden
Server = ftp://ftp.ds.hj.se/pub/os/linux/archlinux/$repo/os/i686
Server = ftp://ftp.gigabit.nu/$repo/os/i686
# - Switzerland
#Server = http://archlinux.puzzle.ch/$repo/os/i686
# - Turkey
#Server = ftp://ftp.linux.org.tr/pub/mirrors/arch … po/os/i686
# - Ukraine
#Server = ftp://archlinux.hell.org.ua/archlinux/$repo/os/i686
#Server = ftp://ftp.linux.kiev.ua/pub/Linux/ArchL … po/os/i686

# Asia
# - Indonesia
# Server = http://archlinux.cbn.net.id/$repo/os/i686
# Server = ftp://archlinux.cbn.net.id/pub/archlinux/$repo/os/i686
# - Israel
#Server = http://mirror.isoc.org.il/pub/archlinux/$repo/os/i686
# - Vietnam
# Domain name is ftp.indochinalinux.com but there are frequent DNS problems
Server = ftp://202.78.230.5/archlinux/$repo/os/i686

# Australia
Server = ftp://mirror.pacific.net.au/linux/archl … po/os/i686
Server = ftp://mirror.aarnet.edu.au/pub/archlinux/$repo/os/i686
Server = ftp://ftp.iinet.net.au/pub/archlinux/$repo/os/i686
Server = http://mirror.internode.on.net/pub/arch … po/os/i686

I'm using pacman 2.9.8! Quite out date but i can't update since i'm getting above error!
I'm a newbie, i hope someone gives me some help on this!
Thank you!

Offline

#2 2009-12-18 02:50:31

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: pacman: could not open sync database: core

pacman asked you a question:

pacman wrote:

have you used --refresh yet?

pacman -Syy

Offline

#3 2009-12-18 03:06:46

kureikain
Member
From: Axcoto Labs
Registered: 2009-07-23
Posts: 9
Website

Re: pacman: could not open sync database: core

Yes, i did that but get the same result:

[kureikain@axcoto ~]$ sudo pacman -Syy
Password:
config: line 7: all directives must belong to a section
config: line 7: all directives must belong to a section
config: line 7: all directives must belong to a section
:: Synchronizing package databases...
failed to synchronize core
failed to synchronize extra
failed to synchronize community
error: could not open sync database: core
       have you used --refresh yet?

[kureikain@axcoto ~]$

Any way to get pacman work again? Thank you!

Offline

#4 2009-12-18 03:13:55

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: pacman: could not open sync database: core

Uncomment the "SyncFirst   = pacman" line in /etc/pacman.conf then rerun pacman -Syy.

Offline

Board footer

Powered by FluxBB