vagga
vagga copied to clipboard
Better choose ubuntu mirror
Actually a lot of people have this problem on normal ubuntu too. Here is the link:
http://askubuntu.com/questions/319433/making-mirror-mirrors-ubuntu-com-highly-available
We can probably get a strategy similar to what apt-spy2 uses (which is < 200 LoC). Or if we will already do any network requests we can probably just fetch indexes instead of apt-get with try and switch mirror strategy. Not sure it is worth the effort though.
Anyway currently we're switching back to using
mirrors://mirrors.ubuntu.com/mirrors.txt url but still have a recommendation to set a regional mirror.
This issue is for tracking and discussing these changes in the long term.
I have met this issue a couple of times, and that's why I am voting for fixing this issue)
Well, I took a closer look to apt-spy2. It looks like it doesn't detect a country and only detects broken hosts within a country list. And broken hosts it detects by simple HTTP requests. So I think it's not the thing most people are getting.
So detecting a country is still a problem. And, I don't want to ping some third party provider from every user's machine.
BTW, I think the error is appearing much on trusty much more often that on xenial, just because infrastructure for xenial is better. But I don't have any data to back it up. So more specific errors posted here by users would be helpful.