You are not logged in.

#1 2011-10-17 03:30:28

dhruvmittal
Member
Registered: 2011-10-03
Posts: 4

Pacman gets stuck Synchronizing package databases

Today, I tried to run a normal pacman -Syu to update my system, and I found it hanging at the "Sychronizing packacge databases" step. I can still install and remove packages, but I seem not to be able to resynch my database. Here's the output from pacman -Sy --debug, up to where it stops at.

sunshine% sudo pacman -Sy --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': ftp://ftp.gtlib.gatech.edu/pub/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': http://www.gtlib.gatech.edu/pub/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': http://mirrors1.kernel.org/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': http://mirrors2.kernel.org/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': ftp://ftp.gtlib.gatech.edu/pub/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': http://www.gtlib.gatech.edu/pub/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': http://mirrors1.kernel.org/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': http://mirrors2.kernel.org/archlinux/extra/os/x86_64
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: new section 'multilib'
debug: registering sync database 'multilib'
debug: config file /etc/pacman.conf, line 71: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: adding new server URL to database 'multilib': ftp://ftp.gtlib.gatech.edu/pub/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': http://www.gtlib.gatech.edu/pub/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': http://mirrors1.kernel.org/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': http://mirrors2.kernel.org/archlinux/multilib/os/x86_64
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: new section 'archlinuxfr'
debug: registering sync database 'archlinuxfr'
debug: adding new server URL to database 'archlinuxfr': http://repo.archlinux.fr/x86_64
debug: config: new section 'community'
debug: registering sync database 'community'
debug: config file /etc/pacman.conf, line 80: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: adding new server URL to database 'community': ftp://ftp.gtlib.gatech.edu/pub/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': http://www.gtlib.gatech.edu/pub/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': http://mirrors1.kernel.org/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': http://mirrors2.kernel.org/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: (null)
debug: FTP_PROXY:  (null)
debug: ftp_proxy:  (null)

I've made sure that I have uncommented mirrors and the like-- all these things worked just fine the last time I ran -Syu, a couple days ago.  I've changed no proxy settings in the meantime, so I don't see how that can be the issue.

Any ideas?

Below is my 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 -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

[multilib]
Include = /etc/pacman.d/mirrorlist

[archlinuxfr] 
Server = http://repo.archlinux.fr/$arch

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

Offline

#2 2011-10-17 04:10:39

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Pacman gets stuck Synchronizing package databases

Your first mirror is broken. Fix that.

Offline

#3 2011-10-17 04:21:53

dhruvmittal
Member
Registered: 2011-10-03
Posts: 4

Re: Pacman gets stuck Synchronizing package databases

Thanks, that did it. I'm used to getting some sort of message when the mirror doesn't work. How come that didn't happen?

Offline

#4 2011-10-17 04:22:54

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Pacman gets stuck Synchronizing package databases

Simply put: because it's FTP.

Offline

#5 2019-03-05 01:28:06

ZiNez
Member
Registered: 2018-01-06
Posts: 10

Re: Pacman gets stuck Synchronizing package databases

(Post Deleted by User)

Mirrorlist corruption, replaced with new one and all works.

Last edited by ZiNez (2019-03-05 02:00:14)

Offline

#6 2019-03-05 02:14:31

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Pacman gets stuck Synchronizing package databases

Seven years later? FFS.


Closing


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB