MX-LINUX配置源
# 设置清华源
在没设置前,执行sudo apt update
的时候,总是报以下错误:
$ sudo apt update
获取:1 http://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security InRelease [2,578 B]
错误:1 http://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security InRelease
明文签署文件不可用,结果为‘NOSPLIT’(您的网络需要认证吗?)
命中:2 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm InRelease
命中:3 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-updates InRelease
命中:4 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-backports InRelease
命中:5 https://packages.microsoft.com/repos/code stable InRelease
正在读取软件包列表... 完成
E: 无法下载 http://mirrors.tuna.tsinghua.edu.cn/debian-security/dists/bookworm-security/InRelease 明文签署文件不可用,结果为‘NOSPLIT’(您的网络需要认证吗?)
E: 仓库 “http://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security InRelease” 没有数字签名。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
MX Linux的源配置文件有三个,具体我也没必要清楚每个都是什么作用,设置了好用就行了,试了多次,最终以下版本的设置表现良好:
文件位置在这:
$ pwd
/etc/apt/sources.list.d
1
2
2
mx.list
deb https://mirrors.tuna.tsinghua.edu.cn/mxlinux/mx/repo/ bookworm main non-free
1
debian.list
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
1
2
3
2
3
debian-stable-updates.list
这个文件空着就行
1
设置完再执行update就没问题了。
上次更新: 2024/09/30, 01:34:11