0%

ubuntu系统中unattended-upgrade进程长时间占用CPU

  1. 执行以下命令:
1
$ sudo dpkg-reconfigure -plow unattended-upgrades

即更新文件:

1
2
/etc/apt/apt.conf.d/20auto-upgrades 中的:
APT::Periodic::Unattended-Upgrade -> "0"
1
2
3
4
5
$ sudo dpkg-reconfigure -plow unattended-upgrades
Replacing config file /etc/apt/apt.conf.d/20auto-upgrades with new version
$ cat /etc/apt/apt.conf.d/20auto-upgrades
APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Unattended-Upgrade "0";
  1. kill掉相关unattended-upgrades的进程