Sometimes I get an error like such, “error: failed to commit transaction (invalid or corrupted package)” in Arch Linux when updating a package, recently it was cdrtools causing my pain.

To fix this, run the following, sudo pacman -S archlinux-keyring