Skip to content

Instantly share code, notes, and snippets.

@kbsali
Last active November 11, 2025 11:32
Show Gist options
  • Select an option

  • Save kbsali/478328c90de402118d376269a5ba6926 to your computer and use it in GitHub Desktop.

Select an option

Save kbsali/478328c90de402118d376269a5ba6926 to your computer and use it in GitHub Desktop.
PAMAC update "Error: Failed to prepare transaction: invalid or corrupted database" on ArchLinux
```bash
pamac update --aur
...
Error: Failed to prepare transaction: invalid or corrupted database
sudo vim /etc/pacman.conf
```
```
# /etc/pacman.conf
# update SigLevel from "Required DatabaseOptional" to "Required DatabaseNever"
...
SigLevel = Required DatabaseNever
```
```bash
sudo pacman -Syyu
pamac update
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment