Ubuntu禁止内核自动更新

禁用自动更新
sudo nano /etc/apt/apt.conf.d/20auto-upgrades
将以下行中的 1改为 0:
APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Unattended-Upgrade "0";
​
禁用与自动更新相关的服务:
sudo systemctl disable apt-daily.service
sudo systemctl disable apt-daily-upgrade.service
sudo systemctl disable apt-daily.timer
sudo systemctl disable apt-daily-upgrade.timer