d-r-u cancel mangles sources.list when sources.list.distUpgrade exists and you use an internal mirror

Bug #1276931 reported by Ryan Finnie
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
Fix Released
High
Brian Murray
Trusty
Fix Released
High
Brian Murray

Bug Description

ubuntu-release-upgrader (1:0.205.4), on a fully updated saucy system. When running `do-release-upgrade -d`, it found my non-standard sources.list (I run a local caching proxy mirror):

---
Updating repository information

No valid mirror found

While scanning your repository information no mirror entry for the
upgrade was found. This can happen if you run an internal mirror or
if the mirror information is out of date.

Do you want to rewrite your 'sources.list' file anyway? If you choose
'Yes' here it will update all 'saucy' to 'trusty' entries.
If you select 'No' the upgrade will cancel.

Continue [yN] N

Restoring original system state

Aborting
---

Upon exiting, /etc/apt/sources.list was all raring entries. Turns out, this was the contents of /etc/apt/sources.list.distUpgrade, which existed before I ran d-r-u (no idea why, presumably something to do with quantal->raring or raring->saucy).

Related branches

Changed in ubuntu-release-upgrader (Ubuntu):
status: New → Triaged
importance: Undecided → High
Changed in ubuntu-release-upgrader (Ubuntu Trusty):
milestone: none → ubuntu-14.04.1
Revision history for this message
Brian Murray (brian-murray) wrote :

This is because a backup is restored before one is actually made, so whatever last distribution upgrade was made is restored.

summary: d-r-u cancel mangles sources.list when sources.list.distUpgrade exists
+ and you use an internal mirror
Changed in ubuntu-release-upgrader (Ubuntu Trusty):
status: Triaged → In Progress
assignee: nobody → Brian Murray (brian-murray)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-release-upgrader - 1:0.220.2

---------------
ubuntu-release-upgrader (1:0.220.2) trusty; urgency=medium

  * DistUpgrade/DistUpgradeController.py:
    - really backup sources.list first (LP: #1276931)
 -- Brian Murray <email address hidden> Fri, 11 Apr 2014 15:25:07 -0700

Changed in ubuntu-release-upgrader (Ubuntu Trusty):
status: In Progress → Fix Released
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.