Verified 2.3ubuntu0.1 on Focal (checking reproducibility with buggy
version first):
root@ff-uu-1-verify:~# apt list --upgradable
Listing... Done
open-vm-tools/focal-updates 2:11.1.0-2~ubuntu20.04.1 amd64 [upgradable from:
2:11.0.5-4]
N: There is 1 additional version. Please use the '-a' switch to see it
root@ff-uu-1-verify:~# unattended-upgrade
root@ff-uu-1-verify:~# echo 'Unattended-Upgrade::Package-Whitelist-Strict
"true";' > /etc/apt/apt.conf.d/51unattended-upgrades-whitelist
root@ff-uu-1-verify:~# echo 'Unattended-Upgrade::Package-Whitelist {"foo";}' >>
/etc/apt/apt.conf.d/51unattended-upgrades-whitelist
root@ff-uu-1-verify:~# unattended-upgrade
Traceback (most recent call last):
File "/usr/bin/unattended-upgrade", line 2512, in <module>
sys.exit(main(options))
File "/usr/bin/unattended-upgrade", line 1983, in main
res = run(options, rootdir, mem_log, logfile_dpkg,
File "/usr/bin/unattended-upgrade", line 2124, in run
cache = UnattendedUpgradesCache(rootdir=rootdir)
File "/usr/bin/unattended-upgrade", line 171, in __init__
apt.Cache.__init__(self, rootdir=rootdir)
File "/usr/lib/python3/dist-packages/apt/cache.py", line 170, in __init__
self.open(progress)
File "/usr/bin/unattended-upgrade", line 330, in open
self.apply_pinning(self.pinning_from_config())
File "/usr/bin/unattended-upgrade", line 302, in pinning_from_config
and policy.get_candidate_ver(pkg) > -1: # type: ignore
TypeError: '>' not supported between instances of 'apt_pkg.Version' and 'int'
root@ff-uu-1-verify:~# sed -i 's/backports/proposed/' /etc/apt/sources.list
root@ff-uu-1-verify:~# apt update
Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:3 http://security.ubuntu.com/ubuntu focal-security InRelease
Get:4 http://archive.ubuntu.com/ubuntu focal-proposed InRelease [265 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal-proposed/main amd64 Packages [42.9
kB]
Get:6 http://archive.ubuntu.com/ubuntu focal-proposed/main Translation-en [19.5
kB]
Get:7 http://archive.ubuntu.com/ubuntu focal-proposed/main amd64 c-n-f Metadata
[1308 B]
Get:8 http://archive.ubuntu.com/ubuntu focal-proposed/restricted amd64 Packages
[3684 B]
Get:9 http://archive.ubuntu.com/ubuntu focal-proposed/restricted Translation-en
[1252 B]
Get:10 http://archive.ubuntu.com/ubuntu focal-proposed/restricted amd64 c-n-f
Metadata [116 B]
Get:11 http://archive.ubuntu.com/ubuntu focal-proposed/universe amd64 Packages
[40.9 kB]
Get:12 http://archive.ubuntu.com/ubuntu focal-proposed/universe Translation-en
[22.5 kB]
Get:13 http://archive.ubuntu.com/ubuntu focal-proposed/universe amd64 c-n-f
Metadata [1688 B]
Get:14 http://archive.ubuntu.com/ubuntu focal-proposed/multiverse amd64
Packages [672 B]
Get:15 http://archive.ubuntu.com/ubuntu focal-proposed/multiverse
Translation-en [3492 B]
Get:16 http://archive.ubuntu.com/ubuntu focal-proposed/multiverse amd64 c-n-f
Metadata [188 B]
Fetched 403 kB in 2s (179 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
17 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@ff-uu-1-verify:~# apt install unattended-upgrades
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libfreetype6
Use 'apt autoremove' to remove it.
Suggested packages:
bsd-mailx default-mta | mail-transport-agent needrestart
The following packages will be upgraded:
unattended-upgrades
1 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
Need to get 48.7 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal-proposed/main amd64
unattended-upgrades all 2.3ubuntu0.1 [48.7 kB]
Fetched 48.7 kB in 0s (135 kB/s)
Preconfiguring packages ...
(Reading database ... 31266 files and directories currently installed.)
Preparing to unpack .../unattended-upgrades_2.3ubuntu0.1_all.deb ...
Unpacking unattended-upgrades (2.3ubuntu0.1) over (2.3) ...
Setting up unattended-upgrades (2.3ubuntu0.1) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for systemd (245.4-4ubuntu3.2) ...
seroot@ff-uu-1-verify:~# sed -i 's/proposed/backports/' /etc/apt/sources.list
root@ff-uu-1-verify:~# apt update
Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:3 http://security.ubuntu.com/ubuntu focal-security InRelease
Get:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease [98.3 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 c-n-f
Metadata [112 B]
Get:6 http://archive.ubuntu.com/ubuntu focal-backports/restricted amd64 c-n-f
Metadata [116 B]
Get:7 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages
[3096 B]
Get:8 http://archive.ubuntu.com/ubuntu focal-backports/universe Translation-en
[1448 B]
Get:9 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 c-n-f
Metadata [224 B]
Get:10 http://archive.ubuntu.com/ubuntu focal-backports/multiverse amd64 c-n-f
Metadata [116 B]
Fetched 103 kB in 1s (73.9 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
root@ff-uu-1-verify:~# unattended-upgrade
root@ff-uu-1-verify:~# unattended-upgrade --verbose
Starting unattended upgrades script
Allowed origins are: o=Ubuntu,a=focal, o=Ubuntu,a=focal-security,
o=UbuntuESMApps,a=focal-apps-security, o=UbuntuESM,a=focal-infra-security
Initial blacklist:
Initial whitelist (strict): foo
No packages found that can be upgraded unattended and no pending auto-removals
root@ff-uu-1-verify:~#
** Tags removed: verification-needed verification-needed-focal
** Tags added: verification-done verification-done-focal
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1883082
Title:
Crash when using Package-Whitelist-Strict
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1883082/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs