apt install unattended-upgrades -y
systemctl enable unattended-upgrades
systemctl start unattended-upgrades
vi /etc/apt/apt.conf.d/50unattended-upgrades
# find Unattended-Upgrade::Package-Blacklist and add
"icecast2";
# uncomment and set
Unattended-Upgrade::Remove-Unused-Kernel-Packages "true";
Unattended-Upgrade::Remove-New-Unused-Dependencies "true";
Unattended-Upgrade::Remove-Unused-Dependencies "true";
Unattended-Upgrade::Automatic-Reboot "false";
vi /etc/apt/apt.conf.d/20auto-upgrades
#Set the following variables or add 3rd line
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";
APT::Periodic::AutocleanInterval "7";
# restart service and dry run
systemctl restart unattended-upgrades
unattended-upgrades --dry-run --debug