Linux · 2022-05-05

解决apt-get check和check-new-release导致的系统io高

解决方法是把自动更新程序删除和禁止对应的服务


sudo apt-get purge unattended-upgrades
 
sudo systemctl disable apt-daily-upgrade.timer 
sudo systemctl stop apt-daily-upgrade.timer 
sudo systemctl disable apt-daily.timer 
sudo systemctl stop apt-daily.timer 

sudo echo 'APT::Periodic::Enable "0";' > /etc/apt/apt.conf.d/99periodic-disable