Sudo issues and invalid or corrupt package

You can switch to root to fix this issue first. Then just update your mirrors and do a full system upgrade.

Links

Update or package installation returns “error: failed to commit transaction (invalid or corrupted package)”

Error when I try installing things via pacman - #13 by linux-aarhus