apt-get dist-upgrade shouldn't run when asked to upgrade between two releases
Bug #281232 reported by
James Troup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Triaged
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: apt
apt-get dist-upgrade is not a supported upgrade path for upgrading
from one release to another (e.g. hardy to intrepid). However, I see
a lot of people who a) don't realise it's not a supported upgrade path
(for various reasons) and b) don't even realise do-release-upgrade
exists.
I think it'd be really useful to alter apt to check to see whether the
dist-upgrade it's being asked to do is across releases and refuse to
run if it is (or at least require confirmation like removing essential
packages does) and suggest the user use do-release-upgrade instead.
To post a comment you must log in.
How would the upgrade from one release to the next be best checked? Probably by checking the lsb release codename versus the distribution field in sources.list. This might conflict with users of mirrors that might have renamed that field. So the check needs to be configurable.