You are not logged in.
Pages: 1
I just installed arch last night. I was looking to add some packages, but I get
error: could not open file /var/lib/pacman/sync/extra.db: Failed to open ' /var/lib/pacman/extra.db'
error: could not open file /var/lib/pacman/sync/community.db: Failed to open ' /var/lib/pacman/community.db'
pacman -Syy synchronizes core to 100% and then it just hangs there. The 100% is the last output that I see.
Any ideas on what to do?
Thanks.
Offline
Please post your /etc/pacman.conf and your /etc/pacman.d/mirrorlist.
Last edited by roygbiv (2011-09-09 15:40:17)
Offline
#
# /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 -C - -f %u > %o
#CleanMethod = KeepInstalled
Architecture = auto
# 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
#CheckSpace
#
# 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
# - URLs will have $arch replaced by the name of the architecture
#
# 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]
#Include = /etc/pacman.d/mirrorlist
[core]
Include = /etc/pacman.d/mirrorlist
[extra]
Include = /etc/pacman.d/mirrorlist
#[community-testing]
#Include = /etc/pacman.d/mirrorlist
[community]
Include = /etc/pacman.d/mirrorlist
# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.
#[multilib-testing]
#Include = /etc/pacman.d/mirrorlist
#[multilib]
#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
and
# Mirror selected during installation
Server = http://mirror.optus.net/archlinux/$repo/os/$arch
##
## Arch Linux repository mirrorlist
## Generated on 2011-08-16
##
## Any
#Server = ftp://mirrors.kernel.org/archlinux/$repo/os/$arch
#Server = http://mirrors.kernel.org/archlinux/$repo/os/$arch
## Australia
#Server = ftp://mirror.aarnet.edu.au/pub/archlinux/$repo/os/$arch
#Server = http://mirror.aarnet.edu.au/pub/archlinux/$repo/os/$arch
#Server = ftp://ftp.iinet.net.au/pub/archlinux/$repo/os/$arch
#Server = http://ftp.iinet.net.au/pub/archlinux/$repo/os/$arch
#Server = ftp://mirror.internode.on.net/pub/archlinux/$repo/os/$arch
#Server = http://mirror.internode.on.net/pub/archlinux/$repo/os/$arch
## Belarus
#Server = ftp://ftp.byfly.by/pub/archlinux/$repo/os/$arch
#Server = http://ftp.byfly.by/pub/archlinux/$repo/os/$arch
## Belgium
#Server = ftp://archlinux.mirror.kangaroot.net/pub/archlinux/$repo/os/$arch
#Server = http://archlinux.mirror.kangaroot.net/$repo/os/$arch
## Brazil
#Server = ftp://archlinux.c3sl.ufpr.br/archlinux/$repo/os/$arch
#Server = http://archlinux.c3sl.ufpr.br/$repo/os/$arch
## Canada
#Server = ftp://mirror.csclub.uwaterloo.ca/archlinux/$repo/os/$arch
#Server = http://mirror.csclub.uwaterloo.ca/archlinux/$repo/os/$arch
#Server = ftp://mirror.its.dal.ca/archlinux/$repo/os/$arch
#Server = http://mirror.its.dal.ca/archlinux/$repo/os/$arch
#Server = ftp://less.cogeco.net/pub/archlinux/$repo/os/$arch
#Server = http://less.cogeco.net/pub/archlinux/$repo/os/$arch
## Chile
#Server = ftp://mirror.archlinux.cl/$repo/os/$arch
#Server = ftp://mirror.netglobalis.net/archlinux/$repo/os/$arch
#Server = http://mirror.netglobalis.net/archlinux/$repo/os/$arch
## China
#Server = http://mirrors.163.com/archlinux/$repo/os/$arch
#Server = http://mirror.bjtu.edu.cn/archlinux/$repo/os/$arch
#Server = http://mirror6.bjtu.edu.cn/archlinux/$repo/os/$arch
#Server = ftp://mirrors.ustc.edu.cn/archlinux/$repo/os/$arch
#Server = http://mirrors.ustc.edu.cn/archlinux/$repo/os/$arch
## Colombia
#Server = http://www.laqee.unal.edu.co/archlinux/$repo/os/$arch
## Czech Republic
#Server = http://mirror.vpsfree.cz/archlinux/$repo/os/$arch
## Denmark
#Server = ftp://mirrors.dotsrc.org/archlinux/$repo/os/$arch
#Server = http://mirrors.dotsrc.org/archlinux/$repo/os/$arch
#Server = ftp://ftp.klid.dk/archlinux/$repo/os/$arch
## Estonia
#Server = ftp://ftp.eenet.ee/pub/archlinux/$repo/os/$arch
#Server = http://ftp.eenet.ee/pub/archlinux/$repo/os/$arch
## Finland
#Server = ftp://mirror.academica.fi/archlinux/$repo/os/$arch
#Server = http://mirror.academica.fi/archlinux/$repo/os/$arch
#Server = ftp://mirror.archlinux.fi/archlinux/$repo/os/$arch
#Server = http://mirror.archlinux.fi/archlinux/$repo/os/$arch
## France
#Server = http://mir.archlinux.fr/$repo/os/$arch
#Server = ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/$repo/os/$arch
#Server = http://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/$repo/os/$arch
#Server = ftp://mir1.archlinux.fr/archlinux/$repo/os/$arch
#Server = http://mir1.archlinux.fr/archlinux/$repo/os/$arch
#Server = http://miroir.ezvan.fr/archlinux/$repo/os/$arch
#Server = ftp://archlinux.mirrors.ovh.net/archlinux/$repo/os/$arch
#Server = http://archlinux.mirrors.ovh.net/archlinux/$repo/os/$arch
#Server = http://archlinux.polymorf.fr/$repo/os/$arch
## Germany
#Server = http://archlinux.limun.org/$repo/os/$arch
#Server = ftp://artfiles.org/archlinux.org/$repo/os/$arch
#Server = http://artfiles.org/archlinux.org/$repo/os/$arch
#Server = ftp://mirror.de.leaseweb.net/archlinux/$repo/os/$arch
#Server = http://mirror.de.leaseweb.net/archlinux/$repo/os/$arch
#Server = http://mirror.devnu11.net/archlinux/$repo/os/$arch
#Server = ftp://ftp5.gwdg.de/pub/linux/archlinux/$repo/os/$arch
#Server = http://ftp5.gwdg.de/pub/linux/archlinux/$repo/os/$arch
#Server = ftp://ftp.halifax.rwth-aachen.de/archlinux/$repo/os/$arch
#Server = http://ftp.halifax.rwth-aachen.de/archlinux/$repo/os/$arch
#Server = ftp://ftp.hosteurope.de/mirror/ftp.archlinux.org/$repo/os/$arch
#Server = http://ftp.hosteurope.de/mirror/ftp.archlinux.org/$repo/os/$arch
#Server = ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/archlinux/$repo/os/$arch
#Server = http://ftp-stud.hs-esslingen.de/pub/Mirrors/archlinux/$repo/os/$arch
#Server = ftp://mirrors.n-ix.net/archlinux/$repo/os/$arch
#Server = http://mirrors.n-ix.net/archlinux/$repo/os/$arch
#Server = ftp://mirror.selfnet.de/archlinux/$repo/os/$arch
#Server = http://mirror.selfnet.de/archlinux/$repo/os/$arch
#Server = ftp://ftp.spline.inf.fu-berlin.de/mirrors/archlinux/$repo/os/$arch
#Server = http://ftp.spline.inf.fu-berlin.de/mirrors/archlinux/$repo/os/$arch
#Server = ftp://ftp.tu-chemnitz.de/pub/linux/archlinux/$repo/os/$arch
#Server = http://ftp.tu-chemnitz.de/pub/linux/archlinux/$repo/os/$arch
#Server = ftp://ftp.uni-kl.de/pub/linux/archlinux/$repo/os/$arch
#Server = http://ftp.uni-kl.de/pub/linux/archlinux/$repo/os/$arch
## Great Britain
#Server = ftp://mirror.lividpenguin.com/pub/archlinux/$repo/os/$arch
#Server = http://mirror.lividpenguin.com/pub/archlinux/$repo/os/$arch
#Server = ftp://archlinux.positive-internet.com/$repo/os/$arch
#Server = http://archlinux.positive-internet.com/$repo/os/$arch
#Server = ftp://mirrors.uk2.net/pub/archlinux/$repo/os/$arch
#Server = http://archlinux.mirrors.uk2.net/$repo/os/$arch
## Greece
#Server = ftp://ftp.cc.uoc.gr/mirrors/linux/archlinux/$repo/os/$arch
#Server = http://ftp.cc.uoc.gr/mirrors/linux/archlinux/$repo/os/$arch
#Server = ftp://ftp.ntua.gr/pub/linux/archlinux/$repo/os/$arch
#Server = http://ftp.ntua.gr/pub/linux/archlinux/$repo/os/$arch
#Server = ftp://ftp.otenet.gr/pub/linux/archlinux/$repo/os/$arch
#Server = http://ftp.otenet.gr/linux/archlinux/$repo/os/$arch
## Hungary
#Server = ftp://ftp.mfa.kfki.hu/pub/mirrors/ftp.archlinux.org/$repo/os/$arch
## India
#Server = ftp://mirror.cse.iitk.ac.in/archlinux/$repo/os/$arch
#Server = http://mirror.cse.iitk.ac.in/archlinux/$repo/os/$arch
## Ireland
#Server = ftp://ftp.heanet.ie/mirrors/ftp.archlinux.org/$repo/os/$arch
#Server = http://ftp.heanet.ie/mirrors/ftp.archlinux.org/$repo/os/$arch
## Israel
#Server = ftp://mirror.isoc.org.il/pub/archlinux/$repo/os/$arch
#Server = http://mirror.isoc.org.il/pub/archlinux/$repo/os/$arch
## Italy
#Server = http://mirrors.prometeus.net/archlinux/$repo/os/$arch
## Japan
#Server = ftp://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch
#Server = http://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch
## Kazakhstan
#Server = ftp://archlinux.kz/$repo/os/$arch
#Server = http://archlinux.kz/$repo/os/$arch
## Korea
#Server = ftp://mirror.yongbok.net/archlinux/$repo/os/$arch
#Server = http://mirror.yongbok.net/archlinux/$repo/os/$arch
## Latvia
#Server = http://archlinux.goodsoft.lv/$repo/os/$arch
## Luxembourg
#Server = ftp://archlinux.mirror.root.lu/archlinux/$repo/os/$arch
#Server = http://archlinux.mirror.root.lu/$repo/os/$arch
## Moldova
#Server = ftp://mirror.ihost.md/archlinux/$repo/os/$arch
#Server = http://mirror.ihost.md/archlinux/$repo/os/$arch
## Netherlands
#Server = http://mirrors3.kernel.org/archlinux/$repo/os/$arch
#Server = ftp://mirror.nl.leaseweb.net/archlinux/$repo/os/$arch
#Server = http://mirror.nl.leaseweb.net/archlinux/$repo/os/$arch
#Server = ftp://ftp.nluug.nl/pub/os/Linux/distr/archlinux/$repo/os/$arch
#Server = http://ftp.nluug.nl/pub/os/Linux/distr/archlinux/$repo/os/$arch
## New Caledonia
#Server = ftp://archlinux.nautile.nc/archlinux/$repo/os/$arch
#Server = http://archlinux.nautile.nc/archlinux/$repo/os/$arch
## Norway
#Server = ftp://mirror.archlinux.no/$repo/os/$arch
#Server = http://mirror.archlinux.no/$repo/os/$arch
#Server = ftp://mirror.pvv.ntnu.no/pub/archlinux/$repo/os/$arch
## Poland
#Server = ftp://ftp.piotrkosoft.net/pub/mirrors/ftp.archlinux.org/$repo/os/$arch
#Server = http://piotrkosoft.net/pub/mirrors/ftp.archlinux.org/$repo/os/$arch
## Portugal
#Server = ftp://ftp.rnl.ist.utl.pt/pub/archlinux/$repo/os/$arch
#Server = http://ftp.rnl.ist.utl.pt/pub/archlinux/$repo/os/$arch
## Romania
#Server = ftp://mirrors.adnettelecom.ro/archlinux/$repo/os/$arch
#Server = http://mirrors.adnettelecom.ro/archlinux/$repo/os/$arch
#Server = ftp://mirror.archlinux.ro/archlinux/$repo/os/$arch
#Server = http://mirror.archlinux.ro/archlinux/$repo/os/$arch
#Server = ftp://ftp.roedu.net/mirrors/archlinux.org/$repo/os/$arch
#Server = http://ftp.roedu.net/mirrors/archlinux.org/$repo/os/$arch
## Russia
#Server = http://mirror.worldis.me/archlinux/$repo/os/$arch
#Server = ftp://mirror.yandex.ru/archlinux/$repo/os/$arch
#Server = http://mirror.yandex.ru/archlinux/$repo/os/$arch
## South Korea
#Server = ftp://ftp.kaist.ac.kr/ArchLinux/$repo/os/$arch
#Server = http://ftp.kaist.ac.kr/ArchLinux/$repo/os/$arch
## Spain
#Server = ftp://ftp.rediris.es/mirror/archlinux/$repo/os/$arch
#Server = http://sunsite.rediris.es/mirror/archlinux/$repo/os/$arch
## Sweden
#Server = http://mirrors4.kernel.org/archlinux/$repo/os/$arch
#Server = ftp://ftp.lysator.liu.se/pub/archlinux/$repo/os/$arch
#Server = http://ftp.lysator.liu.se/pub/archlinux/$repo/os/$arch
#Server = ftp://ftp.portlane.com/pub/os/linux/archlinux/$repo/os/$arch
#Server = http://ftp.portlane.com/pub/os/linux/archlinux/$repo/os/$arch
## Switzerland
#Server = ftp://archlinux.puzzle.ch/$repo/os/$arch
#Server = http://archlinux.puzzle.ch/$repo/os/$arch
## Taiwan
#Server = ftp://linux.cs.nctu.edu.tw/archlinux/$repo/os/$arch
#Server = http://linux.cs.nctu.edu.tw/archlinux/$repo/os/$arch
#Server = ftp://shadow.ind.ntou.edu.tw/archlinux/$repo/os/$arch
#Server = http://shadow.ind.ntou.edu.tw/archlinux/$repo/os/$arch
#Server = ftp://ftp.tku.edu.tw/Linux/ArchLinux/$repo/os/$arch
#Server = http://ftp.tku.edu.tw/Linux/ArchLinux/$repo/os/$arch
## Turkey
#Server = ftp://ftp.linux.org.tr/archlinux/$repo/os/$arch
#Server = http://ftp.linux.org.tr/archlinux/$repo/os/$arch
## Ukraine
#Server = ftp://ftp.linux.kiev.ua/pub/Linux/ArchLinux/$repo/os/$arch
#Server = http://ftp.linux.kiev.ua/pub/Linux/ArchLinux/$repo/os/$arch
## United States
#Server = ftp://archlinux.supsec.org/pub/linux/arch/$repo/os/$arch
#Server = http://archlinux.supsec.org/$repo/os/$arch
#Server = ftp://cake.lib.fit.edu/archlinux/$repo/os/$arch
#Server = http://cake.lib.fit.edu/archlinux/$repo/os/$arch
#Server = http://mirrors.cat.pdx.edu/archlinux/$repo/os/$arch
#Server = http://mirror.ece.vt.edu/archlinux/$repo/os/$arch
#Server = ftp://ftp.archlinux.org/$repo/os/$arch
#Server = ftp://ftp.gtlib.gatech.edu/pub/archlinux/$repo/os/$arch
#Server = http://www.gtlib.gatech.edu/pub/archlinux/$repo/os/$arch
#Server = ftp://mirror.ancl.hawaii.edu/linux/archlinux/$repo/os/$arch
#Server = http://mirror.ancl.hawaii.edu/linux/archlinux/$repo/os/$arch
#Server = http://mirrors1.kernel.org/archlinux/$repo/os/$arch
#Server = http://mirrors2.kernel.org/archlinux/$repo/os/$arch
#Server = ftp://locke.suu.edu/linux/dist/archlinux/$repo/os/$arch
#Server = ftp://lug.mtu.edu/archlinux/ftpfull/$repo/os/$arch
#Server = http://lug.mtu.edu/archlinux/ftpfull/$repo/os/$arch
#Server = http://mirror.mocker.org/archlinux/$repo/os/$arch
#Server = ftp://ftp.osuosl.org/pub/archlinux/$repo/os/$arch
#Server = http://ftp.osuosl.org/pub/archlinux/$repo/os/$arch
#Server = ftp://mirror.rit.edu/archlinux/$repo/os/$arch
#Server = http://mirror.rit.edu/archlinux/$repo/os/$arch
#Server = http://mirrors.rutgers.edu/archlinux/$repo/os/$arch
#Server = http://mirrors.lax1.thegcloud.com/arch//$repo/os/$arch
#Server = http://mirror.yellowfiber.net/archlinux/$repo/os/$arch
## Uzbekistan
#Server = ftp://mirrors.st.uz/archlinux/$repo/os/$arch
#Server = http://mirrors.st.uz/archlinux/$repo/os/$arch
respectively.
I can only sync the core.db. I tried creating extra and community files, thinking it would update them, but the same thing happens.
So, I manually downloaded the community and extra db files. Now I can use pacman to download packages, but this is not ideal. I would like pacman to sync the databases.
Last edited by ericbee (2011-09-09 17:04:45)
Offline
Have you tried using another server?
Offline
Yes. I tried several. It will only sync the core.db and it hangs immediately following that.
Its probably worth mentioning that I am on a proxy, but everything else works through it. I just downloaded tons of packages after manually downloading the db files.
Last edited by ericbee (2011-09-09 17:41:29)
Offline
Offline
You can run
pacman --debug -Syu
and paste the output here or e.g. on pastebin (it will be quite big).
Offline
I only manually downloaded the extra and community db files. I downloaded the packages through pacman.
I will know if its a proxy issue in a few hours when I go home.
Here is the 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: Architecture: x86_64
debug: config: new section 'core'
debug: registering sync database 'core'
debug: config file /etc/pacman.conf, line 65: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: adding new server URL to database 'core': http://mirrors.rutgers.edu/archlinux/core/os/x86_64
debug: setlibpaths() called
debug: option 'cachedir' = /var/cache/pacman/pkg/
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: new section 'extra'
debug: registering sync database 'extra'
debug: config file /etc/pacman.conf, line 68: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: adding new server URL to database 'extra': http://mirrors.rutgers.edu/archlinux/extra/os/x86_64
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: new section 'community'
debug: registering sync database 'community'
debug: config file /etc/pacman.conf, line 74: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: adding new server URL to database 'community': http://mirrors.rutgers.edu/archlinux/community/os/x86_64
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: finished parsing /etc/pacman.conf
:: Synchronizing package databases...
debug: database path for tree local set to /var/lib/pacman/local/
debug: local database version 2
debug: destfile found, using mtime only
debug: using 'core.db' for download progress
debug: HTTP_PROXY: (null)
debug: http_proxy: http://proxyblahblah:80
debug: FTP_PROXY: (null)
debug: ftp_proxy: (null)
debug: ust.mtime: 1315448782 local_time: 1315448782 compare: 0
debug: ust.size: 52579 local_size: 52579 compare: 0
debug: files are identical, skipping core.db
core is up to date
debug: destfile found, using mtime only
debug: using 'extra.db' for download progress
debug: HTTP_PROXY: (null)
debug: http_proxy: http://proxyblahblah:80
debug: FTP_PROXY: (null)
debug: ftp_proxy: (null)
debug: ust.mtime: 1315593870 local_time: 1315573263 compare: -20607
debug: ust.size: 760107 local_size: 760233 compare: 126
debug: mtimes were different or unavailable, downloading extra.db from beginning
Offline
Is it the whole debug log?
You've got
debug: http_proxy: http://proxyblahblah:80
while I get
debug: http_proxy: (null)
Offline
yes... he said he was using a proxy....
Yes, I know, but thanks for pointing that out, because now I see my previous post got truncated - probably sloppy copy-pasting, sorry.
Offline
That was the whole debug log.
Sure enough it worked at home. Pacman must not like the proxy. Odd that it downloads the source.db and then stops. At least I have a work around when need and on the proxy. Is there somewhere that I might be able to submit this as a bug?
Last edited by ericbee (2011-09-10 00:02:21)
Offline
That was the whole debug log.
Sure enough it worked at home. Pacman must not like the proxy. Odd that it downloads the source.db and then stops. At least I have a work around when need and on the proxy. Is there somewhere that I might be able to submit this as a bug?
I'd say go ahead and open a bug report, but it won't go anywhere. We've changed the download library that pacman uses for the next release. In part, because it handles proxied connections a lot more elegantly.
v4.0.0rc2 is hopefully due out in the next week. If you can reproduce this under the RC, I'm very interested in a bug report.
Offline
http://projects.archlinux.org/pacman.git/ is where pacman lives, in case you're wondering, ericbee :-)
Offline
Pages: 1