APT::Default-Release breaks distribution upgrade
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-release-upgrader (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
I just tried to upgrade my Ubuntu system from cosmic to disco, but it seems the presence of the Default-Release configuration value breaks the upgrade.
I have some Debian sources in my sources.list so I can occasionally cherry-pick packages from there. To make sure these are not by default, I created a /etc/apt/
APT:
When doing the actual upgrade (through `update-manager -c`, but that probably started something else in the background), I get the following output in the terminal:
```
Checking for a new Ubuntu release [25/498]
/usr/lib/
Gtk', '3.0') before import to ensure that the right version gets loaded.
from gi.repository import Gtk, Gdk
/usr/lib/
_version('WebKit2', '4.0') before import to ensure that the right version gets loaded.
from gi.repository import WebKit2 as WebKit
authenticate 'disco.tar.gz' against 'disco.tar.gz.gpg'
extracting 'disco.tar.gz'
The AppStream system cache was updated, but some errors were detected, which might lead to missing metadata. Refer to the verbose log for more information.
Traceback (most recent call last):
File "/tmp/ubuntu-
sys.
File "/tmp/ubuntu-
if app.run():
File "/tmp/ubuntu-
return self.fullUpgrade()
File "/tmp/ubuntu-
self.
File "/tmp/ubuntu-
return self._openCache
File "/tmp/ubuntu-
lock)
File "/tmp/ubuntu-
apt.
File "/usr/lib/
self.
File "/usr/lib/
self._cache = apt_pkg.
apt_pkg.Error: E:The value 'cosmic' is invalid for APT::Default-
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/
self.write(f)
File "/usr/lib/
block = f.read(1048576)
File "/usr/lib/
(result, consumed) = self._buffer_
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte
Original exception was:
Traceback (most recent call last):
File "/tmp/ubuntu-
sys.
File "/tmp/ubuntu-
if app.run():
File "/tmp/ubuntu-
return self.fullUpgrade()
File "/tmp/ubuntu-
self.
File "/tmp/ubuntu-
return self._openCache
File "/tmp/ubuntu-
lock)
File "/tmp/ubuntu-
apt.
File "/usr/lib/
self.
File "/usr/lib/
self._cache = apt_pkg.
apt_pkg.Error: E:The value 'cosmic' is invalid for APT::Default-
```
In the GUI, I got a a fairly non-descript "there was a problem" popup, which offered to report a bug / send info to developers, which I did (but this just happened in the background, no clue where the info went).
Ideally, this Apt config value would be updated during the update (at the same time when the sources.list is updated). Alternatively, they could perhaps be disabled (just like it already disables unsupported sources such as my debian sources.list entries)?
Changed in ubuntu-release-upgrader (Ubuntu): | |
importance: | Undecided → Low |
After this error, removing the Default-Release config and starting `update-manager -c` again shows a popup "Failed to load the package list". Clicking "ok" shows a spinner that takes some time and then offers a partial upgrade, which looks reasonable (but has not finished yet).