sudo apt updatesudo apt upgrade -ysudo apt update --security && sudo apt upgrade --securitysudo apt full-upgradesudo apt install unattended-upgrades -ysudo dpkg-reconfigure unattended-upgrades,选择“Yes”启用sudo systemctl status apt-daily-upgrade.timersudo unattended-upgrade --dry-runsudo systemctl restart 服务名操作。sudo reboot。以上步骤参考自。