release upgrader can restore sources.list file from a previous release upgrade
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-release-upgrader (Ubuntu) |
Fix Released
|
Medium
|
Brian Murray | ||
Focal |
Fix Released
|
High
|
Brian Murray | ||
Groovy |
Fix Released
|
Medium
|
Brian Murray |
Bug Description
Impact
------
The distribution upgrader creates a backup of your sources.list named sources.
Test Case
---------
A simple test case is the following:
1) Copy /etc/apt/
2) Modify /etc/apt/
3) Modify /etc/apt/
4) Run do-release-upgrade (with or w/o -d as necessary)
5) When prompted about "No valid sources.list entry found" choose not to upgrade
6) Observe that /etc/apt/
With the version of the release upgrader in -proposed sources.list and sources.
A more involved test case would have one complete a release upgrade choose not to reboot then reattach to the screen session (by pressing r). After that they'd see the same thing as in Step 5 and Step 6 but given that its the same code path it seems unnecessary.
Regression Potential
-------
The fix involves backing up your sources.list file before presenting the error dialog regarding "No valid sources.list entry found". So its literally moving the same two lines before the dialog but the copy and paste could have gone wrong so be observant for any Tracebacks.
Original Description
-------
I've upgraded a server via `do-release-
After it has finished:
```
System upgrade is complete.
Restart required
To finish the upgrade, a restart is required.
If you select 'y' the system will be restarted.
Continue [yN] y
I: molly-guard: reboot is always molly-guarded on this system.
Please type in hostname of the machine to reboot:
Good thing I asked; I won't reboot bates ...
=== Command detached from window (Tue Jul 21 15:23:36 2020) ===
=== Command terminated normally (Tue Jul 21 15:23:46 2020) ===
```
It doesn't alert you it was restoring original state of sources.list.
After rebooting the system and it came back up showing `Welcome to Ubuntu 20.04 LTS`, I've just noticed it was pointing out to bionic instead of focal installing a package.
tags: | removed: rls-gg-incoming |
tags: | added: id-5f22e99071f5a889bf3c4734 |
Changed in ubuntu-release-upgrader (Ubuntu Groovy): | |
status: | Triaged → Incomplete |
summary: |
- upgrade from bionic to focal a server with molly-guard moves back - sources.list to bionic entries + after upgrading running the upgrader again can restore your sources.list + file to the previous release |
summary: |
- after upgrading running the upgrader again can restore your sources.list - file to the previous release + after the upgrade completes reattaching to the screen session can + restore your sources.list file |
summary: |
- after the upgrade completes reattaching to the screen session can - restore your sources.list file + release upgrader can restore sources.list file from a previous release + upgrade |
description: | updated |
Changed in ubuntu-release-upgrader (Ubuntu Focal): | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in ubuntu-release-upgrader (Ubuntu Focal): | |
status: | Triaged → In Progress |
assignee: | nobody → Brian Murray (brian-murray) |
description: | updated |
tags: |
added: verification-done-focal removed: verification-needed verification-needed-focal |
attaching dist-upgrade/ screenlog. 0