apt 2.0.5 in focal causes autopkgtest failures for update-manager
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
update-manager (Ubuntu) |
Fix Released
|
Undecided
|
Brian Murray | ||
Focal |
Fix Released
|
Undecided
|
Brian Murray | ||
Groovy |
Fix Released
|
Undecided
|
Brian Murray | ||
Hirsute |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
=======
ERROR: Test that updates from the security node go in
-------
Traceback (most recent call last):
File "/tmp/autopkgte
self.cache = MyCache(
File "/tmp/autopkgte
apt.
File "/usr/lib/
self.
File "/usr/lib/
self._cache = apt_pkg.
apt_pkg.Error: W:Unable to read /tmp/autopkgtes
Full test results can be found here:
Downgrading apt to version 2.0.4 causes the test to pass again.
Related branches
tags: | added: rls-ff-incoming |
Changed in update-manager (Ubuntu Focal): | |
assignee: | nobody → Brian Murray (brian-murray) |
Changed in update-manager (Ubuntu Groovy): | |
assignee: | nobody → Brian Murray (brian-murray) |
Changed in update-manager (Ubuntu): | |
assignee: | nobody → Brian Murray (brian-murray) |
status: | Triaged → In Progress |
Changed in update-manager (Ubuntu Focal): | |
status: | New → In Progress |
Changed in update-manager (Ubuntu Groovy): | |
status: | New → In Progress |
tags: | removed: rls-ff-incoming |
tags: | added: fr-1328 |
Can confirm it's broken:
^['linux- .*'-5\. 4\.0-72- generic$ |^ 'kfreebsd- .*'-5\. 4\.0-72- generic$ |^ 'gnumach- .*'-5\. 4\.0-72- generic$ |^ '.*-modules' -5\.4\. 0-72-generic$ |^ '.*-kernel' -5\.4\. 0-72-generic$ |^ 'linux- .*'-5\. 4\.0-72- generic$ |^ 'kfreebsd- .*'-5\. 4\.0-72- generic$ |^ 'gnumach-.*'-5\ -5\.4\. 0-72-generic$ |^ '.*-kernel' -5\.4\. 0-72-generic$ |^ 'linux- .*'-5\. 4\.0-72- generic$ |^ 'kfreebsd- .*'-5\. 4\.0-72- generic$ |^ 'gnumach- .*'-5\. 4\.0-72- generic$ |^ '.*-modules' -5\.4\. 0-72-generic$ |^ '.*-kernel' ]-5\.4\ .0-72-generic$
.4\.0-72-generic$|^ '.*-modules'
23:03
Seems like the test is broken
APT::VersionedK ernelPackages "['linux-.*', 'kfreebsd-.*', 'gnumach-.*', '.*-modules', '.*-kernel', 'linux-.*', 'kfreebsd-.*', 'gnumach-.*', '.*-modules', '.*-kernel', 'linux-.*', 'kfreebsd-.*', 'gnumach-.*', '.*-modules', '.*-kernel']";
This code sequence is wrong:
# override the kernel autoremove regex
real_versioned _kernel_ pkgs = apt.apt_ pkg.config. value_list(
"APT: :VersionedKerne lPackages" )
apt.apt_ pkg.config. set("APT: :VersionedKerne lPackages" , "linux-.*")
self.addCleanu p( pkg.config. set("APT: :VersionedKerne lPackages" ,
str(real_ versioned_ kernel_ pkgs)))
lambda: apt.apt_
It reads a list, then sets a value option instead of the list, and then after exit, overrides the value option with a string representation of the python list.