If we have installed programs from official repositories as well as from AUR repositories. This command will check for updates to packages from distribution repositories as well as packages installed from AUR.
yay -Syyu
this command is identical in operation to
sudo pamac -Syyu
it only additionally checks for updates to AUR packages.
There are times when you need to refresh the mirror server list. It is worth doing it quite regularly (I personally do it once a month or more often), because sooner or later the problem will come back.
sudo pacman-mirrors -g
or
sudo pacman-mirrors -id
graphical interface for mirror servers