Pacman errors: unknown key, name mismatch

When I try to run any pacman operation, I get:

$ sudo pacman -Syu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 multilib is up to date
:: Starting full system upgrade...
warning: haskell-gi-gdkx11: unknown key 'gyl<3BZ50boxit0Dx5' in sync database
warning: haskell-gi-gdkx11: unknown key 'LD=' in sync database
warning: haskell-gi-gdkx11: unknown key '%PAGbpe1lp5IFAmeOgtgACgkQeGxj8zDXy5LOAg//XDdLoMQLpWj8e3J3MDJp9JlDaiCcOqrDl2t66sHUsAjbFL22p1SRG376zOD06pUDytARaoalL42JFf/5G+lhn9S7fCK0/AM6QzTHH0drVHzGOzEe/bGbec/GeG10sG4.pkg.tar.zst' in sync database
error: extra database is inconsistent: name mismatch on package haskell-gi-gdkx11
warning: haskell-gi-gdkx11: unknown key 'ghc' in sync database
warning: haskell-gi-gdkx11: unknown key '08abpJZSNrF0dNtIZelDQ//diDaGV1XQ71kCe8gMkcpu+T4cie/LVTZHUyuyG792oRr1nMPBOGNQKG7NTSOA0ppkK+z8JrQcUVDCg4DL+xrcbgRkqXMw9BM+4FEXYTrPl6PKNtdCNqiSyAFWoEpXbkfbp8uLEYeZgxKP70hq7BWLCtMzg/WNynTSGQ43laMWi0byYz1p19fUqSd8Ilo8ASduHnRr7G0TEOHHC/zqG+scTr0PoyW+hhmb3E9aBXjZ7saNqD1rA/EUPJmn7aWfv/D3CRWOwQhdNtBXxzxbEW4B2FvkMsYwlR51HvkIOooiBvQftkcIEUgwxZ+7E3hS4ulKDFGQAii0MfHlNlvSnUCz8eUjkulb+IpUY3NyqnVJN1Hjv7nTImaySDsYtYd6QQegwx43pqgt1M0e4wZmstLV5m/nWND3aiaHm0wL+KGnBBJnULf94ptNFM4gYSptwQBY3q5k/QkgVM9XZ6Xyxh7rO1h/Vrcjsjd6S4WS4iObpZqienBDATA+IdtPUJk%PAlEOLXhhCm9UueLdwmRkclrqor5weAnfWTPXJTK1plekEHQBck8+GpwWFTPGFcipTEcR9+LPKf8XvTx3qeCDVaQAIPBj26dlNuRM86G4LniNzARFu+f7ChONtdWgUFnWrhDjNTfLqNIggouAO2FiGk7u3/8oq' in sync database
error: could not parse package description file 'haskell-gi-gdkx11-4.0.7-104/desc' from db 'extra'
 there is nothing to do

I have tried:

  1. Instructions found here to rebuild the keys
  2. Regenerating mirrors via pacman-mirrors --geoip and pacman -Syu --overwrite \* haskell-gi-gdkx11
  3. Moving /var/lib/pacman/sync/extra.db and extra.files out of the way and re-downloading

All result in the same errors. What appears to be the offending package, haskell-gi-gdkx11 is not currently installed on my system that I can tell.

Can anyone suggest another course of action?

The db file contains invalid metadata and while read by pacman - the strucuture parser fails on the mentioned entry.

If your current country has a single mirror you will keep getting the same error as the db file is malformed.

Try using --fasttrack instead

sudo pacman-mirrors --fasttrack 10

Or you can set a specific mirror using the --api

sudo pacman-mirrors --api --url https://mirror.easyname.at/manjaro

Then clear the metadata folder

sudo rm /var/lib/pacman/sync/*

And rerun the sync

sudo pacman -Syu

Thanks much. These steps resolved the issue.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.