Hi everyone,
After an improper shutdown caused by a battery drain yesterday, I’ve been having persistent issues with the pacman
package manager and this update, specifically related to the extra
database. Here’s a summary of the symptoms and what I’ve tried so far:
Symptoms:
-
When running
pacman
, I repeatedly get the error:error: could not read db 'extra' (Damaged tar archive (bad header checksum)) warning: haskell-filepattern: unknown key ...
-
These errors are followed by issues with package resolution, most notably:
warning: cannot resolve "nvidia-utils=570.144", a dependency of "lib32-nvidia-utils" :: The following package cannot be upgraded due to unresolvable dependencies: lib32-nvidia-utils
-
Also seeing some warnings like:
dependency cycle detected: libcap will be installed before its systemd-libs dependency
What I’ve Tried:
-
Basic system update:
sudo pacman -Syu
-
Forced refresh:
sudo pacman -Syyu
-
Manually removing corrupted database and re-syncing:
sudo rm -f /var/lib/pacman/sync/extra.* sudo pacman -Syy
-
Refreshing keyrings:
sudo pacman -Syy archlinux-keyring manjaro-keyring
-
Clearing package cache and trying again:
sudo pacman -Scc sudo pacman -Syu
Background Context:
-
Yesterday my laptop powered off improperly due to full battery discharge.
-
Suspecting file system damage, I booted into a live USB and ran GParted’s file system check on my root and var partitions.
-
It found and repaired errors in
/var
.
At this point, I’m unsure whether:
-
The pacman sync database is still damaged and not properly refreshing,
-
There’s a mismatch between the
nvidia-utils
andlib32-nvidia-utils
versions in the repo, -
Or some deeper issue remains in the file system.