Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Ubuntu APT use archive.ubuntu.com rather than the US domain #838

Merged
merged 1 commit into from
Jul 5, 2017
Merged

Make Ubuntu APT use archive.ubuntu.com rather than the US domain #838

merged 1 commit into from
Jul 5, 2017

Conversation

edmorley
Copy link
Contributor

@edmorley edmorley commented Jul 4, 2017

By default the Ubuntu installer sets the repository hostnames in /etc/apt/sources.list to the country-specific mirrors based on the locale chosen, which for this image is us.archive.ubuntu.com.

The US mirror is slow for users outside the US, so a better option is to use archive.ubuntu.com, which automatically resolves to the closest official country mirror to them. This is also the hostname used in the official Ubuntu Docker images.

Fixes #810.

By default the Ubuntu installer sets the repository hostnames in
`/etc/apt/sources.list` to the country-specific mirrors based on the
locale chosen, which for this image is `us.archive.ubuntu.com`.

The US mirror is slow for users outside the US, so a better option is
to use `archive.ubuntu.com`, which automatically resolves to the
closest official country mirror to them. This is also the hostname
used in the official Ubuntu Docker images.

Fixes #810.

Signed-off-by: Ed Morley <edmorley@users.noreply.github.com>
@edmorley
Copy link
Contributor Author

edmorley commented Jul 4, 2017

The Travis run is failing, but it's the same failure seen on master - for which I've filed #839.

@cheeseplus
Copy link
Contributor

👍

@cheeseplus cheeseplus merged commit e8dce0f into chef:master Jul 5, 2017
@edmorley edmorley deleted the ubuntu-redirector-apt-mirror branch July 5, 2017 13:42
@edmorley
Copy link
Contributor Author

edmorley commented Jul 5, 2017

Many thanks :-)

@noaho
Copy link
Contributor

noaho commented Aug 4, 2017

Is anyone else seeing this as not fixed on 2.3.8?

I still see eg:

deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted

in /etc/apt/sources.list

@edmorley @cheeseplus

@edmorley
Copy link
Contributor Author

edmorley commented Aug 4, 2017

Yeah that is due to #864 meaning the config file updated here isn't being used by the virtualbox/vmware boxes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ubuntu 14.04 uses US mirror by default
3 participants