Software updater snuck in a package that is unwanted

Ralf Mardorf silver.bullet at zoho.com
Wed Oct 18 02:09:37 UTC 2017


On Wed, 18 Oct 2017 03:52:10 +0200, Ralf Mardorf wrote:
>[weremouse at moonstudio ~]$
>cat /lib/systemd/system/unattended-upgrades.service [Unit]
>Description=Unattended Upgrades Shutdown

Oops, "Shutdown".

"This script is the backend  for  the  APT::Periodic::Unattended-Upgrade
       option and designed to be run from cron (e.g.
via /etc/cron.daily/apt)." -
http://manpages.ubuntu.com/manpages/yakkety/man8/unattended-upgrade.8.html

This means that masking the systemd unit is useless.

Anyway, there are two files in /bin:

/usr/bin/unattended-upgrade
/usr/bin/unattended-upgrades (just a link against /usr/bin/unattended-upgrade)

So running

  sudo dpkg-divert --add --rename --divert /usr/bin/unattended-upgrade.real /usr/bin/unattended-upgrade

should make it impossible to launch it.





More information about the ubuntu-users mailing list