vagga icon indicating copy to clipboard operation
vagga copied to clipboard

Better choose ubuntu mirror

Open tailhook opened this issue 9 years ago • 2 comments

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.

tailhook avatar Jun 05 '16 20:06 tailhook

I have met this issue a couple of times, and that's why I am voting for fixing this issue)

AlexMost avatar Sep 29 '16 18:09 AlexMost

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.

tailhook avatar Sep 29 '16 20:09 tailhook