Ubuntu禁止自动更新内核
禁用unattended-upgrades
编辑20auto-upgrades文件禁止自动更新
vim /etc/apt/apt.conf.d/20auto-upgrades
APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";
APT::Periodic::Unattended-Upgrade "0";
禁用安全更新
编辑10periodic文件禁止自动更新
vim /etc/apt/apt.conf.d/10periodic
APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";
APT::Periodic::Unattended-Upgrade "0";
打开自动更新内核
打开unattended-upgrades
编辑20auto-upgrades文件禁止自动更新
vim /etc/apt/apt.conf.d/20auto-upgrades
APT::Periodic::Update-Package-Lists "2";
APT::Periodic::Download-Upgradeable-Packages "1";
APT::Periodic::AutocleanInterval "0";
APT::Periodic::Unattended-Upgrade "1";
打开安全更新
编辑10periodic文件禁止自动更新
vim /etc/apt/apt.conf.d/10periodic
APT::Periodic::Update-Package-Lists "2";
APT::Periodic::Download-Upgradeable-Packages "1";
APT::Periodic::AutocleanInterval "0";
APT::Periodic::Unattended-Upgrade "1";