Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Bash command to find out which ubuntu repo mirrors support https
# From
# More details about the mirrors:
# Run this in bash
for mirror in $(wget -O - | grep '>http</a>' | cut -d '"' -f 2); do https_mirror=https${mirror#http}; wget --timeout 2 --tries=1 "$https_mirror" && echo "$https_mirror" >> https_mirrors; done
# Checkout the created file https_mirrors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment