apt-spy halts if there's an error with any mirror
Closed this issue · 3 comments
nergdron commented
When running "apt-spy2 check", it halts immediately if it finds a problem with any mirror in the list:
$ apt-spy2 check
Mirror: http://mirrors.mit.edu/ubuntu/ - UP
Mirror: http://mirror.steadfast.net/ubuntu/ - UP
Mirror: http://mirrors.us.kernel.org/ubuntu/ - UP
Mirror: http://mirror.jmu.edu/pub/ubuntu/ - UP
Mirror: http://mirror.pnl.gov/ubuntu/ - UP
Failed to open TCP connection to mirror.uoregon.edu:80 (Network is unreachable - connect(2) for "mirror.uoregon.edu" port 80)
$ apt-spy2 check
Mirror: http://mirrors.mit.edu/ubuntu/ - UP
Mirror: http://mirror.steadfast.net/ubuntu/ - UP
Mirror: http://mirrors.us.kernel.org/ubuntu/ - UP
Mirror: http://mirror.jmu.edu/pub/ubuntu/ - UP
Mirror: http://mirror.pnl.gov/ubuntu/ - UP
Mirror: http://mirror.uoregon.edu/ubuntu/ - UP
Failed to open TCP connection to mirrors.namecheap.com:80 (getaddrinfo: Name or service not known)
It should just mark the faulty mirror as bad and continue checking the rest of the mirrors.