Welcome to the Pacman bug tracker. Please search the current bugs and feature requests before filing a new one! Use advanced search and select "Search in Comments".

* Please select the correct category and version.
* Write a descriptive summary, background info, and provide a reproducible test case whenever possible.

FS#72259 - pacman feature request, automatically delete *.db and its *.sig, when they are corrupted

Attached to Project: Pacman
Opened by Evan Greenup (evgrup) - Tuesday, 28 September 2021, 01:39 GMT
Last edited by Andreas Radke (AndyRTR) - Wednesday, 29 September 2021, 05:25 GMT
Task Type Feature Request
Category Packages
Status Unconfirmed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 1
Private No



Some times due to network issue,

got GPGME error.

failed to synchronize all database (invalid or corrupted database (PGP signature)).

according to

Even if it is a Manjaro forum, but it is still suitable for archlinux pacman.

It would be a good idea, to let pacman automatically remove the tree in /var/lib/pacman/sync/ and retry `pacman -Syyu`.

This can make pacman more robust.

Additional info:
* package version(s)
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:
This task depends upon

Comment by morganamilo (morganamilo) - Tuesday, 05 October 2021, 20:00 GMT
Pacman already forces a re download with -Sy if the repo is invalid.
Maybe there can be a prompt for this but auto deleting I'm against.