软件更新

Copyright © Quectel Wireless Solutions Co., Ltd. 2026. All rights reserved.


Debian系统通过apt工具管理软件包。

软件源配置

软件源配置保存在 /etc/apt/sources.list 文件中,可根据地理位置选择访问速度较快的软件源。

Debian官方软件源(默认):

deb https://deb.debian.org/debian trixie main contrib non-free non-free-firmware
deb https://deb.debian.org/debian trixie-backports main contrib non-free non-free-firmware
deb https://deb.debian.org/debian trixie-updates main contrib non-free non-free-firmware
deb https://deb.debian.org/debian-security trixie-security main contrib non-free non-free-firmware
deb-src https://deb.debian.org/debian trixie main contrib non-free non-free-firmware
deb-src https://deb.debian.org/debian trixie-backports main contrib non-free non-free-firmware
deb-src https://deb.debian.org/debian trixie-updates main contrib non-free non-free-firmware
deb-src https://deb.debian.org/debian-security trixie-security main contrib non-free non-free-firmware

中国科学技术大学(USTC)软件源:

deb https://mirrors.ustc.edu.cn/debian trixie main contrib non-free non-free-firmware
deb https://mirrors.ustc.edu.cn/debian trixie-backports main contrib non-free non-free-firmware
deb https://mirrors.ustc.edu.cn/debian trixie-updates main contrib non-free non-free-firmware
deb https://mirrors.ustc.edu.cn/debian-security trixie-security main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian trixie main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian trixie-backports main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian trixie-updates main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian-security trixie-security main contrib non-free non-free-firmware

更新软件包索引

执行以下命令更新软件包索引:sudo apt update

更新已安装的软件

可以只更新指定软件,也可以全量更新系统中所有可更新的软件包。

更新指定软件包:执行 sudo apt install <软件包名>。若系统已安装该软件包且软件源中有新版本,会自动升级到新版本。

全量更新系统中所有可更新的软件包:执行 sudo apt upgrade

安装软件

安装软件:执行 sudo apt install <软件包名>

卸载软件

卸载软件使用:sudo apt purge <软件包名>; 如需保留配置,改用 sudo apt remove <软件包名>。

备注

卸载软件时,依赖该软件的包也会被一并卸载;若卸载关键软件包,可能导致桌面显示异常或系统异常。执行 sudo apt purge <软件包名> 时,请在确认提示中核对待卸载清单,若与预期不符,立即按 Ctrl+C 终止,避免破坏系统。