Public bug reported:
The two consequent runs of unattended-upgrade shows the difference:
$ sudo unattended-upgrade --dry-run -d
Initial blacklisted packages:
Initial whitelisted packages:
Starting unattended upgrades script
Allowed origins are: ['o=Ubuntu,a=wily-security']
pkgs that look like they should be upgraded:
Fetched 0 B in 0s (0 B/s)
fetch.run() result: 0
blacklist: []
whitelist: []
Option --dry-run given, *not* performing real actions
Packages that will be upgraded:
marking linux-headers-4.2.0-16-generic for remove
marking linux-headers-4.2.0-16 for remove
marking linux-image-4.2.0-16-generic for remove
marking linux-image-extra-4.2.0-16-generic for remove
Packages that are auto removed: 'linux-headers-4.2.0-16-generic
linux-headers-4.2.0-16 linux-image-4.2.0-16-generic
linux-image-extra-4.2.0-16-generic'
/usr/bin/dpkg --status-fd 9 --force-depends --force-remove-essential --remove
linux-headers-4.2.0-16-generic:amd64 linux-headers-4.2.0-16:all
linux-image-extra-4.2.0-16-generic:amd64 linux-image-4.2.0-16-generic:amd64
/usr/bin/dpkg --status-fd 11 --configure --pending
Packages were successfully auto-removed
InstCount=0 DelCount=4 BrokenCount=0
$ sudo unattended-upgrade --dry-run -d
Initial blacklisted packages:
Initial whitelisted packages:
Starting unattended upgrades script
Allowed origins are: ['o=Ubuntu,a=wily-security']
pkgs that look like they should be upgraded:
Fetched 0 B in 0s (0 B/s)
fetch.run() result: 0
blacklist: []
whitelist: []
No packages found that can be upgraded unattended and no pending auto-removals
Expected behaviour is that dpkg is run with --dry-run, if unattended-
upgrade is run with that, so that it does not actually remove packages.
ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: unattended-upgrades 0.86.2ubuntu1.1
ProcVersionSignature: Ubuntu 4.2.0-27.32-generic 4.2.8-ckt1
Uname: Linux 4.2.0-27-generic x86_64
ApportVersion: 2.19.1-0ubuntu5
Architecture: amd64
CurrentDesktop: XFCE
Date: Fri Feb 12 13:58:29 2016
EcryptfsInUse: Yes
InstallationDate: Installed on 2016-01-24 (18 days ago)
InstallationMedia: Xubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
PackageArchitecture: all
SourcePackage: unattended-upgrades
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile..etc.apt.apt.conf.d.50unattended.upgrades:
2016-02-12T13:53:13.426454
** Affects: unattended-upgrades (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug wily
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1544942
Title:
removes unneeded packages even if --dry-run is used
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1544942/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs