Command to update mirror list

Bug #1875910 reported by edurenye
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned
python-apt (Ubuntu)
Triaged
High
Unassigned

Bug Description

I see a lot of issues regarding outdated Ubuntu.mirrors file, I think there should be a command that imports the list of mirrors from https://launchpad.net/ubuntu/+archivemirrors and updates the templates/Ubuntu.mirrors file, then in the UI add a button that can update the list of Mirrors. I don't see the point of needing a new release every time the list needs to be updated.

I want a mirror that was updated yesterday, because is the closest to my location, but it is not in the list, and as you can see there are lots of issues from people that could have been avoided with this.

This is not really a bug, but a feature.
Also could be great if there was some kind of filter, like if you select now in Ubuntu 19.10 a ftp mirror and update it will fail, and the UI gets broken (you can't even close the window, you have to kill it), so doing this update should just import those mirrors that are safe to use.

Revision history for this message
Julian Andres Klode (juliank) wrote :

I think Launchpad should start shipping mirror lists in -updates pocket (only; probably), so that we can update the mirror lists of installed systems as part of apt update and don't have to rebuild python-apt and upgrade everywhere.

Changed in python-apt (Ubuntu):
status: New → Triaged
Revision history for this message
Julian Andres Klode (juliank) wrote :

Mirror lists change on a daily basis, python-apt on less than a point release basis (it should update mirror lists before point release, but this does not always happen afaict).

Changed in python-apt (Ubuntu):
importance: Undecided → High
Revision history for this message
Julian Andres Klode (juliank) wrote :

On the (python-apt) client side, this involves adding an apt.conf snippet to configure a new index target and then change the code to read from there.

Tom Wardill (twom)
Changed in launchpad:
status: New → Triaged
importance: Undecided → Medium
Colin Watson (cjwatson)
Changed in launchpad:
importance: Medium → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.