Debian Context更新主要通过命令行操作,核心步骤如下:
sudo apt update
sudo apt upgrade -y # 自动确认安装
sudo apt full-upgrade -y # 或 sudo apt dist-upgrade -y
sudo apt autoremove -y
sudo reboot
自动更新配置(可选)
sudo apt install unattended-upgrades -y
sudo dpkg-reconfigure unattended-upgrades
sudo unattended-upgrade --dry-run
注意事项
/etc/apt/sources.list源文件后执行上述步骤。lsb_release -a验证系统版本。