Debian 13使用的的 .sources 新格式,而不是传统的 sources.list。
我的系统是基于Debian13的Armbian 26.0 ,在 /etc/apt/sources.list.d/目录下三个文件:
armbian-config.sources armbian.sources debian.sources
armbian.sources是Armbian源配置文件,Armbian 官方源本来就不大、同步快,所以一般不需要修改。
debian.sources是Debian系统的源文件配置,需要修改成国内源。
cat /etc/apt/sources.list.d/debian.sources
查看 debian.sources 内容请运行
cat /etc/apt/sources.list.d/debian.sources
你会看到类似这样的结构:
Types: deb URIs: http://deb.debian.org/debian Suites: trixie trixie-updates trixie-backports Components: main contrib non-free non-free-firmware Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg Types: deb URIs: http://security.debian.org/ Suites: trixie-security Components: main contrib non-free non-free-firmware Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
把官方源改成国内镜像(推荐清华 TUNA)
编辑文件:
sudo nano /etc/apt/sources.list.d/debian.sources
把 URIs: 改成
Types: deb URIs: https://mirrors.tuna.tsinghua.edu.cn/debian Suites: trixie trixie-updates trixie-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: trixie-security Components: main contrib non-free non-free-firmware Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
保存退出(Ctrl+O 回车,Ctrl+X)。
如果只需要稳定版本的软件源,不使用 beta / nightly / edge / unstable 源。
应该使用的 Armbian 源(稳定,不含 beta)
编辑:
sudo nano /etc/apt/sources.list.d/armbian.sources
修改为:
Types: deb URIs: https://mirrors.tuna.tsinghua.edu.cn/armbian Suites: trixie Components: main Signed-By: /usr/share/keyrings/armbian-archive-keyring.gpg
应该使用的 Debian 主源(Trixie 稳定 testing,不含 backports)
编辑:
sudo nano /etc/apt/sources.list.d/debian.sources
修改为:
Types: deb URIs: https://mirrors.tuna.tsinghua.edu.cn/debian Suites: trixie trixie-updates 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: trixie-security Components: main contrib non-free non-free-firmware Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
最后更新系统,可以看到更新源改成了国内镜像了,下载软件快多了。
sudo apt update sudo apt upgrade



![xunsearch编译[Makefile:793: bufferevent_openssl.lo] Error 1错误解决方法](https://www.huojunqiang.com/wp-content/themes/begin/prune.php?src=https://www.huojunqiang.com/wp-content/uploads/2018/10/微信公众号185x185.png&w=280&h=210&a=&zc=1)
