`pamac update` failed to read AUR data

recently when I run pamac update, it will download some AUR metadata

$ pamac update
Preparing...
Synchronizing package databases...
Refreshing AUR...                                                               
1.9 MB/9.3 MB About 3 minutes remaining                                         
https://aur.archlinux.org/packages-meta-ext-v1.json.gz: Socket I/O timed out

After some retry the download is completed, however the metadata has wrong format

$ pamac update
Preparing...
Synchronizing package databases...
Refreshing AUR...                                                               
Failed to read AUR data from /var/tmp/pamac-build-lance/packages-meta-ext-v1.json.gz : Invalid compressed data
Nothing to do.
Transaction successfully finished.
$ pamac --version
Pamac 10.3.0-4  -  libpamac 11.2.0
Copyright © 2019-2022 Guillaume Benoit
This program is free software, you can redistribute it under the terms of the GNU GPL.

How could I get rid of it? Thanks

sudo pacman-mirrors -f5 && sudo pacman -Syyu

To point it out again … -f is random … so using flag -f5 is 5 random working mirrors.
In order to attempt a ‘localized’ query the -g flag should be used instead.
To rank all mirrors globally (maybe avoid on a metered connection) use -f0 or -f with no integer.

2 Likes

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