From c070ba1d7b6ec2936b0a770c06a7356a5c569a85 Mon Sep 17 00:00:00 2001 From: tiyn Date: Mon, 5 Jan 2026 15:32:40 +0100 Subject: [PATCH] linux/pacman: error with database files added --- wiki/linux/package_manager/pacman_and_aur.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/wiki/linux/package_manager/pacman_and_aur.md b/wiki/linux/package_manager/pacman_and_aur.md index 8029348..de3c225 100644 --- a/wiki/linux/package_manager/pacman_and_aur.md +++ b/wiki/linux/package_manager/pacman_and_aur.md @@ -335,3 +335,16 @@ To update the package either way the following command can be used. ```sh sudo pacman -S --overwrite "*" ``` + +### 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.