Error failed to prepare transaction(incalid or corrupted package

:: Synchronizing package databases…
core is up to date
extra is up to date
community is up to date
multilib is up to date
:: Starting full system upgrade…
:: Replace nerd-fonts-terminus with community/ttf-terminus-nerd? [Y/n] y
resolving dependencies…
looking for conflicting packages…
error: could not open file /var/lib/pacman/local/go-2:1.19.2-1/files: No such file or directory
warning: could not fully load metadata for package go-2:1.19.2-1
error: failed to prepare transaction (invalid or corrupted package)

any ideas how to solve this?

Welcome to the forum! :wave:

It seems the package is corrupted. You don’t need go installed as it would only be required to build an AUR package or building a program from source. Remove it and try updating again.

Please see [HowTo] Post command output and file content as formatted text and edit your post accordingly.

1 Like