If you are stuck on some unapdated mirror, you might want to refresh them:
sudo pacman-mirrors -f && sudo pacman -Syyu
Or do it from the Pamac UI > Preferences > Official Rrepositories > Refresh Mirrors List
and after that Refresh Database
Then try again to install “something” 