Manjaro - update errors.

While trying to install avr-gcc using:

sudo pacman -S avr-gcc avr-libc

I was getting errors including:

error: GPGME error: No data

After quite a bit of searching I found reference to using the following commands:

sudo rm -R /var/lib/pacman/sync

followed by:

sudo -E pacman -Syu

This did the trick and a large backlog of updates were flagged.