not able to update with pacman: "error: failed to synchronize all databases"

I'm not able to perform any updates with pacman. Here are the results of inxi -Fxz:

System:    Host: alex-works Kernel: 5.5.0-3.1-MANJARO-ARM aarch64 bits: 64 compiler: gcc v: 9.2.0 Desktop: KDE Plasma 5.17.5 
           Distro: Manjaro ARM 
Machine:   Type: ARM Device System: Pine64 Pinebook Pro details: N/A serial: <filter> 
Battery:   ID-1: cw2015-battery charge: 34% condition: N/A model: N/A status: Discharging 
CPU:       Topology: 6-Core (2-Die) model: N/A variant-1: cortex-a53 variant-2: cortex-a72 bits: 64 type: MCP MCM arch: ARMv8 
           rev: 4 
           features: Use -f option to see features bogomips: 0 
           Speed: 1008 MHz min/max: 408/1416:2000 MHz Core speeds (MHz): 1: 408 2: 408 3: 408 4: 408 5: 1008 6: 1008 
Graphics:  Device-1: display-subsystem driver: rockchip_drm v: N/A bus ID: N/A 
           Device-2: rk3399-mali driver: panfrost v: kernel bus ID: N/A 
           Display: x11 server: X.org 1.20.7 driver: fbturbo resolution: <xdpyinfo missing> 
           Message: Unable to show advanced data. Required tool glxinfo missing. 
Audio:     Device-1: simple-audio-card driver: asoc_simple_card bus ID: N/A 
           Device-2: simple-audio-card driver: N/A bus ID: N/A 
           Sound Server: ALSA v: k5.5.0-3.1-MANJARO-ARM 
Network:   Device-1: wlan-platdata driver: N/A bus ID: N/A 
           IF-ID-1: wlan0 state: up mac: <filter> 
Drives:    Local Storage: total: 58.24 GiB used: 12.34 GiB (21.2%) 
           ID-1: /dev/mmcblk2 model: DA4064 size: 58.24 GiB 
Partition: ID-1: / size: 57.26 GiB used: 12.34 GiB (21.6%) fs: ext4 dev: /dev/mmcblk2p1 
Sensors:   System Temperatures: cpu: 37.5 C mobo: N/A 
           Fan Speeds (RPM): N/A 
Info:      Processes: 183 Uptime: 3h 38m Memory: 3.71 GiB used: 2.26 GiB (60.9%) Init: systemd Compilers: gcc: 9.2.0 
           Shell: bash v: 5.0.11 inxi: 3.0.37

And the results of sudo pacman -Syu --debug:

debug: pacman v5.2.1 - libalpm v12.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: HoldPkg: manjaro-system
debug: config: arch: aarch64
debug: config: verbosepkglists
debug: config: SigLevel: Required
debug: config: SigLevel: DatabaseOptional
debug: config: LocalFileSigLevel: Optional
debug: config: new section 'core'
debug: config file /etc/pacman.conf, line 69: including /etc/pacman.d/mirrorlist
debug: config: new section 'extra'
debug: config file /etc/pacman.conf, line 72: including /etc/pacman.d/mirrorlist
debug: config: new section 'community'
debug: config file /etc/pacman.conf, line 75: including /etc/pacman.d/mirrorlist
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://mirrors.dotsrc.org/manjaro-arm/stable/aarch64/core
debug: adding new server URL to database 'core': http://natrox.jp/pub/manjaro-arm/stable/aarch64/core
debug: adding new server URL to database 'core': https://smail.net.pl/manjaro-arm/stable/aarch64/core
debug: adding new server URL to database 'core': https://manjaro-arm.moson.org/stable/aarch64/core
debug: adding new server URL to database 'core': https://manjaro-arm.moson.eu/stable/aarch64/core
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://mirrors.dotsrc.org/manjaro-arm/stable/aarch64/extra
debug: adding new server URL to database 'extra': http://natrox.jp/pub/manjaro-arm/stable/aarch64/extra
debug: adding new server URL to database 'extra': https://smail.net.pl/manjaro-arm/stable/aarch64/extra
debug: adding new server URL to database 'extra': https://manjaro-arm.moson.org/stable/aarch64/extra
debug: adding new server URL to database 'extra': https://manjaro-arm.moson.eu/stable/aarch64/extra
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://mirrors.dotsrc.org/manjaro-arm/stable/aarch64/community
debug: adding new server URL to database 'community': http://natrox.jp/pub/manjaro-arm/stable/aarch64/community
debug: adding new server URL to database 'community': https://smail.net.pl/manjaro-arm/stable/aarch64/community
debug: adding new server URL to database 'community': https://manjaro-arm.moson.org/stable/aarch64/community
debug: adding new server URL to database 'community': https://manjaro-arm.moson.eu/stable/aarch64/community
:: Synchronizing package databases...
debug: url: https://mirrors.dotsrc.org/manjaro-arm/stable/aarch64/core/core.db
debug: maxsize: 26214400
debug: using time condition: 1581439295
debug: opened tempfile for download: /var/lib/pacman/sync/core.db.part (wb)
debug: curl returned error 0 from transfer
debug: response code: 404
error: failed retrieving file 'core.db' from mirrors.dotsrc.org : The requested URL returned error: 404
debug: url: http://natrox.jp/pub/manjaro-arm/stable/aarch64/core/core.db
debug: maxsize: 26214400
debug: using time condition: 1581439295
debug: opened tempfile for download: /var/lib/pacman/sync/core.db.part (wb)
debug: curl returned error 0 from transfer
debug: response code: 404
error: failed retrieving file 'core.db' from natrox.jp : The requested URL returned error: 404
debug: url: https://smail.net.pl/manjaro-arm/stable/aarch64/core/core.db
debug: maxsize: 26214400
debug: using time condition: 1581439295
debug: opened tempfile for download: /var/lib/pacman/sync/core.db.part (wb)
debug: curl returned error 0 from transfer
debug: response code: 404
error: failed retrieving file 'core.db' from smail.net.pl : The requested URL returned error: 404
debug: url: https://manjaro-arm.moson.org/stable/aarch64/core/core.db
debug: maxsize: 26214400
debug: using time condition: 1581439295
debug: opened tempfile for download: /var/lib/pacman/sync/core.db.part (wb)
debug: curl returned error 0 from transfer
debug: response code: 404
error: failed retrieving file 'core.db' from manjaro-arm.moson.org : The requested URL returned error: 404
debug: url: https://manjaro-arm.moson.eu/stable/aarch64/core/core.db
debug: maxsize: 26214400
debug: using time condition: 1581439295
debug: opened tempfile for download: /var/lib/pacman/sync/core.db.part (wb)
debug: curl returned error 0 from transfer
debug: response code: 404
error: failed retrieving file 'core.db' from manjaro-arm.moson.eu : The requested URL returned error: 404
debug: failed to sync db: failed to retrieve some files
error: failed to update core (failed to retrieve some files)
debug: url: https://mirrors.dotsrc.org/manjaro-arm/stable/aarch64/extra/extra.db
debug: maxsize: 26214400
debug: using time condition: 1581439296
debug: opened tempfile for download: /var/lib/pacman/sync/extra.db.part (wb)
debug: curl returned error 0 from transfer
debug: response code: 404
error: failed retrieving file 'extra.db' from mirrors.dotsrc.org : The requested URL returned error: 404
debug: url: http://natrox.jp/pub/manjaro-arm/stable/aarch64/extra/extra.db
debug: maxsize: 26214400
debug: using time condition: 1581439296
debug: opened tempfile for download: /var/lib/pacman/sync/extra.db.part (wb)
debug: curl returned error 0 from transfer
debug: response code: 404
error: failed retrieving file 'extra.db' from natrox.jp : The requested URL returned error: 404
debug: url: https://smail.net.pl/manjaro-arm/stable/aarch64/extra/extra.db
debug: maxsize: 26214400
debug: using time condition: 1581439296
debug: opened tempfile for download: /var/lib/pacman/sync/extra.db.part (wb)
debug: curl returned error 0 from transfer
debug: response code: 404
error: failed retrieving file 'extra.db' from smail.net.pl : The requested URL returned error: 404
debug: url: https://manjaro-arm.moson.org/stable/aarch64/extra/extra.db
debug: maxsize: 26214400
debug: using time condition: 1581439296
debug: opened tempfile for download: /var/lib/pacman/sync/extra.db.part (wb)
debug: curl returned error 0 from transfer
debug: response code: 404
error: failed retrieving file 'extra.db' from manjaro-arm.moson.org : The requested URL returned error: 404
debug: url: https://manjaro-arm.moson.eu/stable/aarch64/extra/extra.db
debug: maxsize: 26214400
debug: using time condition: 1581439296
debug: opened tempfile for download: /var/lib/pacman/sync/extra.db.part (wb)
debug: curl returned error 0 from transfer
debug: response code: 404
error: failed retrieving file 'extra.db' from manjaro-arm.moson.eu : The requested URL returned error: 404
debug: failed to sync db: failed to retrieve some files
error: failed to update extra (failed to retrieve some files)
debug: url: https://mirrors.dotsrc.org/manjaro-arm/stable/aarch64/community/community.db
debug: maxsize: 26214400
debug: using time condition: 1581439295
debug: opened tempfile for download: /var/lib/pacman/sync/community.db.part (wb)
debug: curl returned error 0 from transfer
debug: response code: 404
error: failed retrieving file 'community.db' from mirrors.dotsrc.org : The requested URL returned error: 404
debug: url: http://natrox.jp/pub/manjaro-arm/stable/aarch64/community/community.db
debug: maxsize: 26214400
debug: using time condition: 1581439295
debug: opened tempfile for download: /var/lib/pacman/sync/community.db.part (wb)
debug: curl returned error 0 from transfer
debug: response code: 404
error: failed retrieving file 'community.db' from natrox.jp : The requested URL returned error: 404
debug: url: https://smail.net.pl/manjaro-arm/stable/aarch64/community/community.db
debug: maxsize: 26214400
debug: using time condition: 1581439295
debug: opened tempfile for download: /var/lib/pacman/sync/community.db.part (wb)
debug: curl returned error 0 from transfer
debug: response code: 404
error: failed retrieving file 'community.db' from smail.net.pl : The requested URL returned error: 404
debug: url: https://manjaro-arm.moson.org/stable/aarch64/community/community.db
debug: maxsize: 26214400
debug: using time condition: 1581439295
debug: opened tempfile for download: /var/lib/pacman/sync/community.db.part (wb)
debug: curl returned error 0 from transfer
debug: response code: 404
error: failed retrieving file 'community.db' from manjaro-arm.moson.org : The requested URL returned error: 404
debug: url: https://manjaro-arm.moson.eu/stable/aarch64/community/community.db
debug: maxsize: 26214400
debug: using time condition: 1581439295
debug: opened tempfile for download: /var/lib/pacman/sync/community.db.part (wb)
debug: curl returned error 0 from transfer
debug: response code: 404
error: failed retrieving file 'community.db' from manjaro-arm.moson.eu : The requested URL returned error: 404
debug: failed to sync db: failed to retrieve some files
error: failed to update community (failed to retrieve some files)
error: failed to synchronize all databases
debug: unregistering database 'local'
debug: unregistering database 'core'
debug: unregistering database 'extra'
debug: unregistering database 'community'

Things I tried
I tried removing the database lock using sudo rm /var/lib/pacman/db.lck as suggested here:


but I think the database isn't locked, since the file doesn't exist.

I also tried up refreshing my keys using sudo pacman-key --refresh-keys and that went with out error, but didn't help. Likewise, I tried to regenerate the mirror list using sudo pacman-mirrors -g which goes without error itself but then I get the same original synchrosization error when I try sudo pacman -Syyu.

I haven't found any posts of people with this exact problem, and the few solutings to related problem I've found don't seem to help me, so I'd greatly appreciate any help someone here can give.

Sounds like its network related with 404 errors

Here is an arch Linux post with the same errors as you

Have a look here:

1 Like

I found another post with your errors. In both, mirrors started working after waiting a few minutes.

Isn’t that for Manjaro ARM though? Will it work here?

As OP is using ARM I would think so... :stuck_out_tongue_winking_eye:

1 Like

Thanks, I apparently didn't search very well :grimacing:

However, when I try

sudo pacman -U http://ftp-osl.osuosl.org/pub/manjaro-arm/repo/stable/aarch64/core/pacman-mirrorlist-20200211-1-any.pkg.tar.xz 

the result is

loading packages...
error: '/var/cache/pacman/pkg/pacman-mirrorlist-20200211-1-any.pkg.tar.xz': package missing required signature

Any suggestion what I should do? or should i ask in that announcement thread?

Try to update your keys:

https://wiki.manjaro.org/index.php?title=Pacman_troubleshooting#Errors_about_Keys

I'm not able to do the second step, because then I run into the same original problem of not being able to synchronize the databases :confused:

Quick workaround. Download the package with wget:

wget http://ftp-osl.osuosl.org/pub/manjaro-arm/repo/stable/aarch64/core/pacman-mirrorlist-20200211-1-any.pkg.tar.xz

And then install it with pacman:

sudo pacman -U pacman-mirrorlist-*
6 Likes

Thank you! That works, and I'm able to upgrade like normal afterwords :slight_smile:

2 Likes

Stupid me, just noticed ARM in inxi -Fxz

I've just followed @Strit's workaround above and it seems that the filesytem structure on the server has changed. I sucessfully downloaded the mirrorlist from:
http://ftp-osl.osuosl.org/pub/manjaro-arm/repo/stable/core/aarch64/pacman-mirrorlist-20200217-1-any.pkg.tar.xz
Installing the mirrorlist with pacman fixed my '404' problem - thanks for the info @Strit.

Thank you for updating the link. The Strit link is already out of date. Where is the source of these links for my future reference?

I had put yay on about a month ago and was not sure which was causing the update problem (I was getting 404s) since neither yay or pacman were updating correctly. Always scares me when package managers stop working. :dizzy_face:

I would recommend to check for updates of the pacman-mirrorlist... file here:

http://ftp-osl.osuosl.org/pub/manjaro-arm/repo/stable/core/aarch64/

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by