mirrors only added to mirrors.cfg, never removed
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | ubuntu-release-upgrader (Ubuntu) |
Medium
|
Brian Murray | ||
Bug Description
/usr/share/
Thanks
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: ubuntu-
ProcVersionSign
Uname: Linux 3.13.0-46-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.11
Architecture: amd64
CrashDB: ubuntu
CurrentDesktop: Unity
Date: Tue Jun 9 23:22:17 2015
InstallationDate: Installed on 2012-10-18 (965 days ago)
InstallationMedia: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release amd64 (20120823.1)
PackageArchitec
SourcePackage: ubuntu-
UpgradeStatus: Upgraded to trusty on 2014-04-12 (424 days ago)
VarLogDistupgra
Related branches
- Barry Warsaw (community): Approve on 2015-11-02
-
Diff: 975 lines (+35/-560)2 files modifieddata/mirrors.cfg (+10/-551)
utils/update_mirrors.py (+25/-9)
| Seth Arnold (seth-arnold) wrote : | #1 |
| Changed in ubuntu-release-upgrader (Ubuntu): | |
| status: | New → Triaged |
| importance: | Undecided → Medium |
| milestone: | none → trusty-updates |
| summary: |
- mirror.anl.gov no longer works + mirror.anl.gov still listed in mirrors.cfg |
| Brian Murray (brian-murray) wrote : | #3 |
I've marked an older bug as a duplicate of this one, just because.
| summary: |
- mirror.anl.gov still listed in mirrors.cfg + mirrors only added to mirrors.cfg, never removed |
| Brian Murray (brian-murray) wrote : | #4 |
Testing this on a Vivid system and setting the mirror to the anl.gov server caused the upgrade process to just quit. The release upgrader rewrote the entries from vivid to wily and then received 403s trying to contact the mirror, which then caused the failure.
, W:Failed to fetch http://
, W:Failed to fetch http://
, E:Some index files failed to download. They have been ignored, or old ones used instead.'. Retrying (currentRetry: 2)
2015-10-14 08:58:17,234 ERROR doUpdate() failed completely
2015-10-14 08:58:17,237 DEBUG abort called
There was no prompt to report a bug, so its hard to say how many people end up in this situation.
| Brian Murray (brian-murray) wrote : | #5 |
And then when I removed the mirror from mirrors.cfg my sources.list file was modified by the release upgrader to the following.
root@clean-
# deb http://
# deb http://
# deb http://
# deb http://
# deb-src http://
# deb-src http://
# deb-src http://
deb http://
# deb-src http://
| Brian Murray (brian-murray) wrote : | #6 |
I've added a branch that will also remove mirrors when updating the mirrors.cfg file, but that'll just put people in the situation where their sources.list files is modified to only only contain main which isn't good either.
| tags: | added: rls-x-incoming |
| Brian Murray (brian-murray) wrote : | #7 |
I've reported the minimal sources.list issue in bug 1511783.
| Changed in ubuntu-release-upgrader (Ubuntu): | |
| status: | Triaged → In Progress |
| assignee: | nobody → Brian Murray (brian-murray) |
| Changed in ubuntu-release-upgrader (Ubuntu): | |
| milestone: | trusty-updates → ubuntu-16.04 |
| Launchpad Janitor (janitor) wrote : | #8 |
This bug was fixed in the package ubuntu-
---------------
ubuntu-
* DistUpgrade/
because an Ubuntu mirror has been deactivated, then create a useful
sources.list file that parallels the one for the deactivated mirror.
(LP: #1511783)
* utils/update_
mirrors.cfg file also remove mirrors that are no longer valid.
(LP: #1463680)
-- Brian Murray <email address hidden> Wed, 18 Nov 2015 11:05:19 -0800
| Changed in ubuntu-release-upgrader (Ubuntu): | |
| status: | In Progress → Fix Released |
| Brian Murray (brian-murray) wrote : | #9 |
I've tested this fix by upgrading from wily to xenial with my mirror set to mirror.mcs.anl.gov. During the upgrade process my sources.list file was changed to the following:
# deb http://
# deb http://
# deb http://
# deb http://
# deb-src http://
# deb-src http://
# deb-src http://
deb http://
deb http://
deb http://
deb http://
deb-src http://
deb-src http://
deb-src http://
# deb-src http://
So this, and the fix for bug 1511783, looks good to me.


Oh right, this is because update_mirrors.py only adds mirrors and doesn't remove them.
13 d = feedparser.parse("https:/ /launchpad. net/ubuntu/ +archivemirrors -rss") PrettyPrinter( indent= 4) write(link. href + "\n")
14
15 #import pprint
16 #pp = pprint.
17 #pp.pprint(d)
18
19 with open(sys.argv[1], "a") as outfile:
20 for entry in d.entries:
21 for link in entry.links:
22 if link.href not in current_mirrors:
23 outfile.
Having said that I'm not certain what ubuntu- release- upgrader would do if your mirror wasn't in that list.