root@x-uu-lp-1260041:~# yes no |apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-image-4.8.0-53-generic linux-image-extra-4.8.0-53-generic
0 upgraded, 0 newly installed, 2 to remove and 10 not upgraded.
After this operation, 234 MB disk space will be freed.
Do you want to continue? [Y/n] Abort.
root@x-uu-lp-1260041:~# ls /var/run/reboot*
ls: cannot access '/var/run/reboot*': No such file or directory
root@x-uu-lp-1260041:~# apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-image-4.8.0-53-generic linux-image-extra-4.8.0-53-generic
0 upgraded, 0 newly installed, 2 to remove and 10 not upgraded.
After this operation, 234 MB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 53554 files and directories currently installed.)
Removing linux-image-extra-4.8.0-53-generic (4.8.0-53.56~16.04.1) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.8.0-53-generic /boot/vmlinuz-4.8.0-53-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.8.0-53-generic /boot/vmlinuz-4.8.0-53-generic
update-initramfs: Generating /boot/initrd.img-4.8.0-53-generic
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.8.0-53-generic /boot/vmlinuz-4.8.0-53-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.8.0-53-generic /boot/vmlinuz-4.8.0-53-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.8.0-53-generic /boot/vmlinuz-4.8.0-53-generic
Removing linux-image-4.8.0-53-generic (4.8.0-53.56~16.04.1) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.8.0-53-generic /boot/vmlinuz-4.8.0-53-generic
update-initramfs: Deleting /boot/initrd.img-4.8.0-53-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.8.0-53-generic /boot/vmlinuz-4.8.0-53-generic
root@x-uu-lp-1260041:~# ls /var/run/reboot*
ls: cannot access '/var/run/reboot*': No such file or directory
root@x-uu-lp-1260041:~# dpkg -l unattended-upgrades | cat
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===================-==========================-============-===========================================
ii unattended-upgrades 1.1ubuntu1.18.04.7~16.04.2 all automatic installation of security upgrades
Tested 1.1ubuntu1. 18.04.7~ 16.04.2 on Xenial.
root@x- uu-lp-1260041: ~# yes no |apt-get autoremove image-4. 8.0-53- generic linux-image- extra-4. 8.0-53- generic uu-lp-1260041: ~# ls /var/run/reboot* uu-lp-1260041: ~# apt-get autoremove image-4. 8.0-53- generic linux-image- extra-4. 8.0-53- generic extra-4. 8.0-53- generic (4.8.0- 53.56~16. 04.1) ... postinst. d/apt-auto- removal 4.8.0-53-generic /boot/vmlinuz- 4.8.0-53- generic postinst. d/initramfs- tools 4.8.0-53-generic /boot/vmlinuz- 4.8.0-53- generic img-4.8. 0-53-generic mdadm.conf defines no arrays. postinst. d/unattended- upgrades 4.8.0-53-generic /boot/vmlinuz- 4.8.0-53- generic postinst. d/update- notifier 4.8.0-53-generic /boot/vmlinuz- 4.8.0-53- generic postinst. d/zz-update- grub 4.8.0-53-generic /boot/vmlinuz- 4.8.0-53- generic 4.8.0-53- generic (4.8.0- 53.56~16. 04.1) ... postrm. d . postrm. d/initramfs- tools 4.8.0-53-generic /boot/vmlinuz- 4.8.0-53- generic img-4.8. 0-53-generic postrm. d/zz-update- grub 4.8.0-53-generic /boot/vmlinuz- 4.8.0-53- generic uu-lp-1260041: ~# ls /var/run/reboot* uu-lp-1260041: ~# dpkg -l unattended-upgrades | cat Unknown/ Install/ Remove/ Purge/Hold Not/Inst/ Conf-files/ Unpacked/ halF-conf/ Half-inst/ trig-aWait/ Trig-pend /Reinst- required (Status,Err: uppercase=bad) ======= ======= ==-==== ======= ======= ======= =-===== ======= -====== ======= ======= ======= ======= ======= == 18.04.7~ 16.04.2 all automatic installation of security upgrades
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-
0 upgraded, 0 newly installed, 2 to remove and 10 not upgraded.
After this operation, 234 MB disk space will be freed.
Do you want to continue? [Y/n] Abort.
root@x-
ls: cannot access '/var/run/reboot*': No such file or directory
root@x-
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-
0 upgraded, 0 newly installed, 2 to remove and 10 not upgraded.
After this operation, 234 MB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 53554 files and directories currently installed.)
Removing linux-image-
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
update-initramfs: Generating /boot/initrd.
W: mdadm: /etc/mdadm/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
Removing linux-image-
Examining /etc/kernel/
run-parts: executing /etc/kernel/
update-initramfs: Deleting /boot/initrd.
run-parts: executing /etc/kernel/
root@x-
ls: cannot access '/var/run/reboot*': No such file or directory
root@x-
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++-===
ii unattended-upgrades 1.1ubuntu1.