关闭UBUNTU自动更新

关闭UBUNTU自动更新
方法一:
1.编辑配置文件 /etc/apt/apt.conf.d/10periodic
APT::Periodic::Update-Packae-Lists "0";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";
APT::Periodic::Unattended-Upgrade "0";

2.编辑配置文件 /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";

方法二:
Disabled apt-daily.service
systemctl stop apt-daily.timer
systemctl disabled apt-daily.timer
systemctl disalbed apt-daily.service

systemctl stop apt-daily-upgrade.timer
systemctl disabled apt-daily-upgrade.timer
systemctl disabled apt-daily-upgrade.service

or

systemctl disabled --now apt-daily{,-upgrade}.{timer,service}

 

你可能感兴趣的:(linux)