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

Set local mirror instead of mirror list in /etc/apt/sources.list #636

Open
vjr opened this issue Nov 18, 2022 · 3 comments
Open

Set local mirror instead of mirror list in /etc/apt/sources.list #636

vjr opened this issue Nov 18, 2022 · 3 comments

Comments

@vjr
Copy link
Member

vjr commented Nov 18, 2022

Currently an installation of elementary 7 horus daily results in /etc/apt/source.list having mirrorlists instead of the local archive.

This results in a poor experience during package updates/installs due to many of the mirrors being slow or out of order.

I'm located in India but I suspect these issues are relevant in many places across the globe.

Updating the build system to specify local mirrors (if possible) instead would greatly improve the experience because the requirements/guidelines for being an official country mirror from Canonical are stricter as noted here: https://wiki.ubuntu.com/Mirrors

@vjr
Copy link
Member Author

vjr commented Nov 18, 2022

I'll see if I can work on proposing a PR for this over the weekend although I am not familiar with the build options and will need to look them up.

@vjr
Copy link
Member Author

vjr commented Dec 10, 2022

On further thought, a mirrorlist may be preferable in situations such as a person carrying their laptop while traveling to different locations around the globe.

Not sure how Ubuntu handles this, if at all, because IIRC they set the archive mirror to the country mirror.

@vjr
Copy link
Member Author

vjr commented Dec 10, 2022

I was thinking of two PRs, one for the OS repo to set the mirrors value to the default "archive.ubuntu.com/ubuntu" instead of the mirrorlist and a second PR for initial-setup to prepend the two-letter country code to the /etc/apt/source.list archive entries upon selecting the language.

davidmhewitt added a commit that referenced this issue Jul 12, 2023
Partially reverts #328 

I'm seeing regular issues with these mirror lists on my installed system where `apt` will get stuck on some garbage tier mirror while trying to do updates.

Ever since this has been merged, we've been seeing the daily builds of the iso fail due to the same issue, and it feels like the frequency of this is increasing.

It also seems I'm not alone in this issue: #636 https://github.com/orgs/elementary/discussions/271

I think we did this originally due to something about maybe ending up with a country specific mirror (i.e. `us.archive.ubuntu.com`) after installation, or maybe the fact that the default mirror only has servers in the UK and US and is therefore maybe less efficient for users elsewhere in the world.

Either way, I think we should give this another try, and maybe look at having initial setup set the right mirror for the country after installation if we still think there are issues.
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

No branches or pull requests

1 participant