ubuntu關閉內核自動更新的方法:1、打開終端;2、輸入命令打開/etc/apt/apt.conf.d/10periodic配置文件和/etc/apt/apt.conf.d/20auto-upgrades配置文件并修改設置關閉自動更新;3、重啟ubuntu系統使設置生效即可。
具體操作步驟:
1、使用快捷鍵【Ctrl+Alt+T】打開終端;
2、輸入以下命令打開/etc/apt/apt.conf.d/10periodic配置文件。
sudo gedit /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";
再輸入命令打開/etc/apt/apt.conf.d/20auto-upgrades配置文件。
sudo gedit /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";
3、設置完成后,輸入以下命令重啟ubuntu系統使其生效即可。
reboot