File /var/cache/pacman/pkg/openssl-3.0.7-4-x86_64.pkg.tar.zst is corrupted

Got this notice on the latest update. So none of the updates were installed. Does anyone else have this same issue? Thanks

You could try to remove the package named openssl, reboot, and afterwards install it again, together with the needed dependencies, that may have got removed during uninstalling it. :wink:

You should probably try to update the Arch Linux keyring first and see if that works.

1 Like

Thanks all for your quick responses. I will give them all a try. Happy Holidays and Merry Christmas

Perhaps, try the last one first. :wink:

1 Like

Yup. The last suggestions did the trick.

1 Like

had the same issue and your solution worked like a charm, thx!

question: why would the keyring not be updated automatically when you update using the command yay?

Because yay uses pacman under the hood. For an update to be successful, pacman needs to verify the signatures of all the packages it has downloaded. This verification process requires the archlinux-keyring package to be up-to-date to begin with. Even if archlinux-keyring is among the list of packages to be updated, the update will fail because pacman’s verification process failed (due to the current archlinux-keyring being out of date). The recommended solution is to run pacman -Sy archlinux-keyring && sudo pacman -Su. This will install the latest/up-to-date keyring and sync the packages database before upgrading the entire system.

pacman used to allow users to configure a list of packages under an option called SyncFirst, which instructs pacman to check for newer versions of the listed packages before carrying out the update. After that, pacman will prompt the user to choose between syncing the listed packages first or carrying on the update. The reason SyncFirst was removed is that it can lead to dependency issues when misused. Imagine someone listing gtk3 under SyncFirst and then breaking his system as a result due to a partial upgrade.