I’m hoping this awesome forum can help because I’m really freaking out right now. I tried to update with pacman in the terminal like I always do and I get this error message:
:: Starting full system upgrade…
error: could not open file /var/lib/pacman/sync/core.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/extra.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/community.db: Unrecognized archive format
error: could not open file /var/lib/pacman/sync/multilib.db: Unrecognized archive format
error: failed to prepare transaction (invalid or corrupted database)
Can someone please point me in the right direction to fix this.
I pasted both of those sudo commands and the end result is the same. This is perplexing because I haven’t done anything weird or exotic on this machine, it’s my daily driver.
NAME TYPE FSTYPE SIZE MOUNTPOINT
sda disk 1.8T
├─sda1 part vfat 300M /boot/efi
├─sda2 part crypto_LUKS 1.8T
│ └─luks-3e62ed5d-f68c-4093-9416-a822046f5acf crypt ext4 1.8T /
└─sda3 part crypto_LUKS 16.9G
└─luks-3fc68538-c344-4680-8c91-5aecc76a15d5 crypt swap 16.9G [SWAP]
sdb disk 0B
Although for me, /var/lib/pacman/sync existed and had its files, but they were for some reason replaced with html files for a website I have never visited, or even known of.
I have tried removing them and attempting pacman -Syyu and yay again, but with the same result.
If anyone could assist me with this that would be great.