Re: pacman -Syu fails to synchronize databases
Reply #3 –
I'm using XFCE and this script from a kind contributor to this forum :
#!/bin/bash
exec xfce4-terminal --maximize -H -x sh -c 'curl -s "https://archlinux.org/mirrorlist/?country=FR&country=DE&protocol=https&use_mirror_status=on" | sed -e 's/^#Server/Server/' -e '/^#/d' | rankmirrors -n 5 - > ~/mirrorlist-arch; sudo cp ~/mirrorlist-arch /etc/pacman.d/mirrorlist-arch; cat /etc/pacman.d/mirrorlist-arch; exec bash;'
## If needed, run first : sudo pacman -Sy pacman-contrib && sudo touch /etc/pacman.d/mirrorlist-arch
You must adapt this script to your desktop and the country in which you are located.
For example : you need to replace "country=FR&country=DE" by "country=US" if you are in the US.