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\ .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\.4\.0-72-generic$|^ '.*-modules'-5\.4\.0-72-generic$|^ '.*-kernel']-5\.4\.0-72-generic$ 23:03
Seems like the test is broken APT::VersionedKernelPackages "['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::VersionedKernelPackages") apt.apt_pkg.config.set("APT::VersionedKernelPackages", "linux-.*") self.addCleanup( lambda: apt.apt_pkg.config.set("APT::VersionedKernelPackages", str(real_versioned_kernel_pkgs))) 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. ** Package changed: apt (Ubuntu) => update-manager (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apt in Ubuntu. https://bugs.launchpad.net/bugs/1924809 Title: apt 2.0.5 in focal causes autopkgtest failures for update-manager Status in update-manager package in Ubuntu: Triaged Bug description: ====================================================================== ERROR: Test that updates from the security node go in ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/autopkgtest.0o0kua/build.B7h/src/tests/test_update_list.py", line 30, in setUp self.cache = MyCache(apt.progress.base.OpProgress(), File "/tmp/autopkgtest.0o0kua/build.B7h/src/UpdateManager/Core/MyCache.py", line 70, in __init__ apt.Cache.__init__(self, progress, rootdir) File "/usr/lib/python3/dist-packages/apt/cache.py", line 170, in __init__ self.open(progress) File "/usr/lib/python3/dist-packages/apt/cache.py", line 232, in open self._cache = apt_pkg.Cache(progress) apt_pkg.Error: W:Unable to read /tmp/autopkgtest.0o0kua/build.B7h/src/tests/aptroot-update-list-test/etc/apt/preferences.d/ - DirectoryExists (2: No such file or directory), E:Regex compilation error - Invalid range end Full test results can be found here: https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac /autopkgtest-focal/focal/amd64/u/update- manager/20210416_180839_df210@/log.gz Downgrading apt to version 2.0.4 causes the test to pass again. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1924809/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp