Pacman-mirrors 4.11.4 in unstable
The mirrorlist created after interactive - used https where it should use http.
Our user @korealinux reported this issue.
As pacman-mirrors probes the mirrors it loops the available protocols which has been sorted in decending order so it probes https first and secondly http etc.
If the mirror has an expired certificate the following happens:
The first probe assign the mirror a response time of 99.99 to the https protocol but as the subsequent probe on the http protocol returns a valid response within the alotted time the mirror now gets the new response time of s.mss.
When the mirrors is written to the mirrorlist - again https is proritized over http and since the mirror now has a valid reponse time the https protocol is written to the mirror list.
The behavior is expected - what is not expected is a mirror to have an expired certificate, which in this case results in undesired behavior.
Please test it against German mirrors (philpot.de has an expired certificate).
The console output will show the expired certificate and the fix should ensure that the final mirrorlist does not contain the philpot.de server with the https protocol - only with http.
Watch out for the final mirrorlist if philpot.de mirror should be with http and not https.
~ >>> sudo pacman-mirrors -c Germany [sudo] password for fh: .: INFO Downloading mirrors from repo.manjaro.org .: INFO User generated mirror list -------------------------- .: INFO Custom mirror file saved: /var/lib/pacman-mirrors/custom-mirrors.json .: INFO Using custom mirror file .: INFO Querying mirrors - This may take some time 0.121 Germany : http://mirror.ragenetwork.de/manjaro/ 0.223 Germany : https://ftp.halifax.rwth-aachen.de/manjaro/ 0.673 Germany : ftp://ftp.halifax.rwth-aachen.de/manjaro/ 0.220 Germany : https://mirror.netzspielplatz.de/manjaro/packages/ ..... Germany : https://mirror.philpot.de/manjaro/ .: ERROR [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:841) 'https://mirror.philpot.de/manjaro/' 0.072 Germany : http://mirror.philpot.de/manjaro/ 0.190 Germany : https://manjaro.moson.eu/ 0.062 Germany : http://manjaro.moson.eu/ .: INFO Writing mirror list Germany : https://manjaro.moson.eu/unstable/$repo/$arch Germany : http://mirror.philpot.de/manjaro/unstable/$repo/$arch Germany : http://mirror.ragenetwork.de/manjaro/unstable/$repo/$arch Germany : https://mirror.netzspielplatz.de/manjaro/packages/unstable/$repo/$arch Germany : https://ftp.halifax.rwth-aachen.de/manjaro/unstable/$repo/$arch .: INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist .: INFO To remove custom config run 'sudo pacman-mirrors -c all'
sudo pacman-mirrors -c Germany -i