do-release-upgrade breaks if /etc/apt/preferences.d has a rule against a release
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-release-upgrader (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
The system was Ubuntu Xenial (16.04.3) LTS.
I occasionally try to install a newer version of OpenSSH by using three files (note that in previous incarnations they had "zenity" instead of "artful", the idea is "a slightly newer release of the platform I'm using for a specific set of packages -- but don't upgrade the farm"):
/etc/apt/
Package: *
Pin: release n=artful
Pin-Priority: -10
/etc/apt/
Package: openssh-client
Pin: release n=artful
Pin-Priority: 600
Package: libgssapi-krb5-2
Pin: release n=artful
Pin-Priority: 600
Package: libkrb5-3
Pin: release n=artful
Pin-Priority: 600
Package: libkrb5support0
Pin: release n=artful
Pin-Priority: 600
Package: libk5crypto3
Pin: release n=artful
Pin-Priority: 600
Package: openssh-server
Pin: release n=artful
Pin-Priority: 600
Package: openssh-sftp-server
Pin: release n=artful
Pin-Priority: 600
/etc/apt/
deb http://
deb-src http://
## Major bug fix updates produced after the final release of the
## distribution.
deb http://
deb-src http://
root@mail-ca:~# cat /etc/apt/
deb http://
deb-src http://
## Major bug fix updates produced after the final release of the
## distribution.
deb http://
deb-src http://
----
This didn't work for OpenSSH as the artful version requires a newer version of libc6. So, I decided to do a release upgrade (but left the files in place...)
----
I set `Prompt=normal` in `/etc/update-
do-release-upgrade
It eventually gave me:
```
The software on this computer is up to date.
There are no upgrades available for your system. The upgrade will now
be canceled.
Do you want to start the upgrade?
Continue [yN] Details [d]
```
Which was very confusing... Along this path, it even encouraged me to reboot my computer (which I did).
Nothing was harmed, but nothing particularly useful was achieved either.
----
Expected results:
When do-release-upgrade performs an update, it has enough knowledge to ignore the files in /etc/apt/
tags: | added: dist-upgrade |
tags: |
added: xenial removed: dist-upgrade |
Changed in ubuntu-release-upgrader (Ubuntu): | |
status: | New → Incomplete |
Could you add your log files about the upgrade? They'll be found in /var/log/ dist-upgrade/ .