Armbian系统默认使用国外软件源,由于网络环境差异,国内用户访问时可能出现下载速度慢、连接不稳定等问题。更换国内源可显著提升软件包更新速度,同时保障软件安全性与稳定性。
一、修改 debian.sources文件
nano /etc/apt/sources.list.d/debian.sources
替换下面的
Types: deb
URIs: https://mirrors.tuna.tsinghua.edu.cn/debian
Suites: bookworm bookworm-updates bookworm-backports
Components: main contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
Types: deb
URIs: https://mirrors.tuna.tsinghua.edu.cn/debian-security
Suites: bookworm-security
Components: main contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
二、修改 armbian.sources文件
nano /etc/apt/sources.list.d/armbian.sources
替换下面的
Types: deb
URIs: https://mirrors.tuna.tsinghua.edu.cn/armbian
Suites: bookworm
Components: main bookworm-utils bookworm-desktop
Signed-By: /usr/share/keyrings/armbian.gpg
三、然后执行
apt update && apt full-upgrade -y
upgrade不加-y会检查哪些已安装的包有可用的更新,并询问你是否想升级它们,如果你确定要自动升级所有可用的包,可以使用-y选项。
full-upgrade类似于upgrade命令,但是它还会考虑依赖关系的变化,并可能升级一些非用户选择的包。
四、最后执行reboot重启。
评论前必须登录!
注册