1
0
mirror of https://github.com/tiyn/wiki.git synced 2026-01-10 08:39:45 +01:00

linux/pacman: error with database files added

This commit is contained in:
2026-01-05 15:32:40 +01:00
parent 90c8863021
commit c070ba1d7b

View File

@@ -335,3 +335,16 @@ To update the package either way the following command can be used.
```sh ```sh
sudo pacman -S --overwrite "*" <package name> sudo pacman -S --overwrite "*" <package name>
``` ```
### Error `error: could not open file /var/lib/pacman/sync/core.db: Unrecognized archive format`
If the error `error: could not open file /var/lib/pacman/sync/core.db: Unrecognized archive format`
or a similar one with another database file is thrown it can mostly be easily fixed by removing the
database file with the following command.
```txt
rm -rf /var/lib/pacman/sync/*
```
Alternatively - and this is probably a bit safer - the files can be temporarily be moved somewhere
else and removed after confirming the error was fixed.