You are not logged in.

#1 2016-11-27 12:02:01

sakh
Member
Registered: 2012-06-04
Posts: 28

[SOLVED] Pacman won't update, mirrors timeout

Having for a few days now. Tried different mirrors, both Australia and world wide. Thank you.

[sakh@KGB ~]$ sudo pacman -Syu --debug
debug: pacman v5.0.1 - libalpm v10.0.1
debug: config: attempting to read file /etc/pacman.conf
debug: config: new section 'options'
debug: config: HoldPkg: pacman
debug: config: HoldPkg: glibc
debug: config: arch: x86_64
debug: config: SigLevel: Required
debug: config: SigLevel: DatabaseOptional
debug: config: LocalFileSigLevel: Optional
debug: config: new section 'core'
debug: config file /etc/pacman.conf, line 75: including /etc/pacman.d/mirrorlist
debug: config: new section 'extra'
debug: config file /etc/pacman.conf, line 78: including /etc/pacman.d/mirrorlist
debug: config: new section 'community'
debug: config file /etc/pacman.conf, line 84: including /etc/pacman.d/mirrorlist
debug: config: new section 'multilib'
debug: config file /etc/pacman.conf, line 93: including /etc/pacman.d/mirrorlist
debug: config: new section 'archlinuxfr'
debug: config: SigLevel: Never
debug: config: finished parsing /etc/pacman.conf
debug: setup_libalpm called
debug: option 'logfile' = /var/log/pacman.log
debug: option 'gpgdir' = /etc/pacman.d/gnupg/
debug: option 'hookdir' = /etc/pacman.d/hooks/
debug: option 'cachedir' = /var/cache/pacman/pkg/
debug: registering sync database 'core'
debug: database path for tree core set to /var/lib/pacman/sync/core.db
debug: "/var/lib/pacman/sync/core.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/core.db.sig could not be opened
debug: missing optional signature
debug: setting usage of 15 for core repository
debug: adding new server URL to database 'core': https://archlinux.surlyjake.com/archlinux/core/os/x86_64
debug: registering sync database 'extra'
debug: database path for tree extra set to /var/lib/pacman/sync/extra.db
debug: "/var/lib/pacman/sync/extra.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/extra.db.sig could not be opened
debug: missing optional signature
debug: setting usage of 15 for extra repository
debug: adding new server URL to database 'extra': https://archlinux.surlyjake.com/archlinux/extra/os/x86_64
debug: registering sync database 'community'
debug: database path for tree community set to /var/lib/pacman/sync/community.db
debug: "/var/lib/pacman/sync/community.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/community.db.sig could not be opened
debug: missing optional signature
debug: setting usage of 15 for community repository
debug: adding new server URL to database 'community': https://archlinux.surlyjake.com/archlinux/community/os/x86_64
debug: registering sync database 'multilib'
debug: database path for tree multilib set to /var/lib/pacman/sync/multilib.db
debug: "/var/lib/pacman/sync/multilib.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/multilib.db.sig could not be opened
debug: missing optional signature
debug: setting usage of 15 for multilib repository
debug: adding new server URL to database 'multilib': https://archlinux.surlyjake.com/archlinux/multilib/os/x86_64
debug: registering sync database 'archlinuxfr'
debug: database path for tree archlinuxfr set to /var/lib/pacman/sync/archlinuxfr.db
debug: setting usage of 15 for archlinuxfr repository
debug: adding new server URL to database 'archlinuxfr': http://repo.archlinux.fr/x86_64
:: Synchronizing package databases...
debug: url: https://archlinux.surlyjake.com/archlinux/core/os/x86_64/core.db
debug: maxsize: 26214400
debug: using time condition: 1479374127
debug: opened tempfile for download: /var/lib/pacman/sync/core.db.part (wb)
debug: curl returned error 28 from transfer
error: failed retrieving file 'core.db' from archlinux.surlyjake.com : Resolving timed out after 10518 milliseconds
debug: failed to sync db: download library error
error: failed to update core (download library error)
debug: url: https://archlinux.surlyjake.com/archlinux/extra/os/x86_64/extra.db
debug: maxsize: 26214400
debug: using time condition: 1479376342
debug: opened tempfile for download: /var/lib/pacman/sync/extra.db.part (wb)
debug: curl returned error 28 from transfer
error: failed retrieving file 'extra.db' from archlinux.surlyjake.com : Resolving timed out after 10520 milliseconds
debug: failed to sync db: download library error
error: failed to update extra (download library error)
debug: url: https://archlinux.surlyjake.com/archlinux/community/os/x86_64/community.db
debug: maxsize: 26214400
debug: using time condition: 1479382337
debug: opened tempfile for download: /var/lib/pacman/sync/community.db.part (wb)
debug: curl returned error 28 from transfer
error: failed retrieving file 'community.db' from archlinux.surlyjake.com : Resolving timed out after 10518 milliseconds
debug: failed to sync db: download library error
error: failed to update community (download library error)
debug: url: https://archlinux.surlyjake.com/archlinux/multilib/os/x86_64/multilib.db
debug: maxsize: 26214400
debug: using time condition: 1479367839
debug: opened tempfile for download: /var/lib/pacman/sync/multilib.db.part (wb)
debug: curl returned error 28 from transfer
error: failed retrieving file 'multilib.db' from archlinux.surlyjake.com : Resolving timed out after 10520 milliseconds
debug: failed to sync db: download library error
error: failed to update multilib (download library error)
debug: url: http://repo.archlinux.fr/x86_64/archlinuxfr.db
debug: maxsize: 26214400
debug: using time condition: 1478986737
debug: opened tempfile for download: /var/lib/pacman/sync/archlinuxfr.db.part (wb)
debug: curl returned error 28 from transfer
error: failed retrieving file 'archlinuxfr.db' from repo.archlinux.fr : Resolving timed out after 10519 milliseconds
debug: failed to sync db: download library error
error: failed to update archlinuxfr (download library error)
error: failed to synchronize any databases
error: failed to init transaction (download library error)
debug: unregistering database 'local'
debug: unregistering database 'core'
debug: unregistering database 'extra'
debug: unregistering database 'community'
debug: unregistering database 'multilib'
debug: unregistering database 'archlinuxfr'
#
# /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
#GPGDir      = /etc/pacman.d/gnupg/
HoldPkg     = pacman glibc
#XferCommand = /usr/bin/curl -C - -f %u > %o
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
#UseDelta    = 0.7
Architecture = auto

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

#NoUpgrade   =
#NoExtract   =

# Misc options
#UseSyslog
#Color
#TotalDownload
CheckSpace
#VerbosePkgLists

# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel    = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required

# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Arch Linux
# packagers with `pacman-key --populate archlinux`.

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

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

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

Last edited by sakh (2017-01-13 10:19:04)

Offline

#2 2016-11-27 13:07:07

philo
Member
Registered: 2015-01-26
Posts: 251

Re: [SOLVED] Pacman won't update, mirrors timeout

Apart from anything else you do, removing archlinuxfr from pacman.conf will  greatly help. It might even be enough.

Last edited by philo (2016-11-27 13:17:49)

Offline

#3 2016-11-27 14:42:44

sakh
Member
Registered: 2012-06-04
Posts: 28

Re: [SOLVED] Pacman won't update, mirrors timeout

Nope, not enough sad

Offline

#4 2016-11-27 15:30:10

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,544

Re: [SOLVED] Pacman won't update, mirrors timeout

If you have "wins" in /etc/nsswitch.conf, make sure winbindd is running. You could also try removing it.

Offline

#5 2016-11-27 15:32:01

sakh
Member
Registered: 2012-06-04
Posts: 28

Re: [SOLVED] Pacman won't update, mirrors timeout

Negative, don't have wins.

Offline

#6 2016-11-27 15:37:47

philo
Member
Registered: 2015-01-26
Posts: 251

Re: [SOLVED] Pacman won't update, mirrors timeout

Update miirorlist or, better, do it with reflector?

Last edited by philo (2016-11-27 15:39:48)

Offline

#7 2016-11-27 15:52:11

sakh
Member
Registered: 2012-06-04
Posts: 28

Re: [SOLVED] Pacman won't update, mirrors timeout

Updated. Tried different locations around the world, same story. Whats a reflector?

Offline

#8 2016-11-27 16:14:25

sakh
Member
Registered: 2012-06-04
Posts: 28

Re: [SOLVED] Pacman won't update, mirrors timeout

I think I remember changing system locality around the same time when it happened. Can it possibly be related?

Offline

#9 2016-11-27 16:42:33

philo
Member
Registered: 2015-01-26
Posts: 251

Re: [SOLVED] Pacman won't update, mirrors timeout

https://wiki.archlinux.org/index.php/Reflector

EDIT-
Reflector will find the good mirrors for your location, whatever that location is. Better NOT to choose a specific  location when running reflector.Just let reflector find the mirrors.

Last edited by philo (2016-11-27 17:12:30)

Offline

#10 2016-11-27 17:10:45

seth
Member
Registered: 2012-09-03
Posts: 51,018

Re: [SOLVED] Pacman won't update, mirrors timeout

Do you have network at all?

Online

#11 2016-11-27 17:17:36

philo
Member
Registered: 2015-01-26
Posts: 251

Re: [SOLVED] Pacman won't update, mirrors timeout

Cannot you download the package and then install it:

https://www.archlinux.org/packages/comm … reflector/

Offline

#12 2016-11-27 17:43:08

sakh
Member
Registered: 2012-06-04
Posts: 28

Re: [SOLVED] Pacman won't update, mirrors timeout

Ye, network is fine everything else works.

Offline

#13 2016-11-28 16:18:25

philo
Member
Registered: 2015-01-26
Posts: 251

Re: [SOLVED] Pacman won't update, mirrors timeout

It cold be a DNS resolver issue. What is in your /etc/resolv.conf?

In IPV4, this is known to work well:

/etc/resolv.conf 
# Generated by resolvconf
nameserver 8.8.4.4
nameserver 8.8.8.8

There is wiki on the subject.

(EDITED)

Last edited by philo (2016-11-29 10:22:54)

Offline

#14 2016-11-28 16:47:34

seth
Member
Registered: 2012-09-03
Posts: 51,018

Re: [SOLVED] Pacman won't update, mirrors timeout

does

wget -O /dev/null 'https://archlinux.surlyjake.com/archlinux/community/os/x86_64/community.db'

cause any error messages?
Can you ping archlinux.surlyjake.com?

Online

#15 2017-01-13 10:18:32

sakh
Member
Registered: 2012-06-04
Posts: 28

Re: [SOLVED] Pacman won't update, mirrors timeout

philo wrote:

It cold be a DNS resolver issue. What is in your /etc/resolv.conf?

In IPV4, this is known to work well:

/etc/resolv.conf 
# Generated by resolvconf
nameserver 8.8.4.4
nameserver 8.8.8.8

There is wiki on the subject.

(EDITED)

This solved it, thank you.

Offline

Board footer

Powered by FluxBB