The solution is discussed in several places; you need to comment out or remove the community lines from /etc/pacman.conf and then run sudo pacman-mirrors -f
/etc/pacman.conf
sudo pacman-mirrors -f
See this post for instance: Tried to to update my system and I get this error - #9 by jeanmarc
and here