Debian 13.2 升级到最新稳定版

Debian 13.2 升级到最新稳定版 Debian 13.2 升级到最新稳定版笔记一、查看当前版本查看 Debian 版本cat/etc/debian_version查看系统信息cat/etc/os-release查看内核uname-a二、检查软件源查看 sourcesgrep-R^[^#]/etc/apt/sources.list /etc/apt/sources.list.d/*.list /etc/apt/sources.list.d/*.sources2/dev/null示例腾讯云服务器安装的debian13自带国内腾讯源deb http://mirrors.tencentyun.com/debian trixie main contrib non-free non-free-firmware deb http://mirrors.tencentyun.com/debian trixie-updates main contrib non-free non-free-firmware deb http://mirrors.tencentyun.com/debian-security trixie-security main contrib non-free non-free-firmware三、更新软件源缓存aptupdate可能看到91 packages can be upgraded说明有可升级包。四、升级系统重点执行aptfull-upgrade-y作用升级所有软件包 升级内核 升级 systemd 处理依赖变化这是Debian 正式推荐升级方式五、升级过程中 SSH 配置提示升级 OpenSSH 时可能弹出sshd_config modified建议保留当前配置选择keep the local version currently installed避免SSH 配置被覆盖 远程连接异常六、升级完成后重启reboot七、重启后检查查看系统版本cat/etc/debian_version查看内核uname-a查看 SSHsystemctl statusssh查看监听端口ss-ntl确认22端口正常 SSH正常八、清理无用包aptautoremove--purge-y清理缓存aptclean