Running a Debian 9 (stretch). During every installation/removal of a package I get the following error thrown
Failed to start unattended-upgrades.service: Unit unattended-> upgrades.service failed to load: Invalid argument
systemctl status unattended-upgrades.service ● unattended-upgrades.service - Unattended Upgrades Shutdown Loaded: error (Reason: Invalid argument) Active: inactive (dead) Docs: man:unattended-upgrade(8)
I neither can remove
unattended-upgrades (v0.93.1) nor find anything helpful on the web (in other related
unattended-upgrades questions) to solve this issue.
Workaround: I manually deleted
/lib/systemd/unattended.upgrades.service. After that, I could do
sudo apt-get remove unattended-upgrades. I would prefer to reinstall it with a working setup though.