Debian Minimal 系统更新指南
一 基本更新流程
sudo apt update && sudo apt upgrade -yapt update 同步软件源索引;apt upgrade 在不改变依赖的前提下升级已安装包,适合日常维护。sudo apt full-upgrade -yfull-upgrade 会智能处理依赖关系变化,必要时移除冲突包,适合较大版本或内核相关更新。sudo apt autoremove -y && sudo apt clean二 安全更新与自动更新
sudo apt update && sudo unattended-upgradesudo apt install -y unattended-upgrades && sudo dpkg-reconfigure unattended-upgradessudo systemctl status apt-daily.timer apt-daily-upgrade.timer三 跨版本升级与注意事项
cat /etc/os-releasesudo apt update && sudo apt full-upgrade -ysudo apt autoremove -y && sudo rebootapt list --upgradable