一个简单的小开发
首页
分类
标签
归档
关于

YDS

30岁大龄程java程序员,心不老,神不灭
首页
分类
标签
归档
关于
  • K8S

  • DOCKER

  • HELM

  • LINUX

    • 安装nfs (storageclass制备器)
    • linux中快速的文件传输方式
    • NGINX配置详解
    • MX LINUX安装五笔输入法
    • MX-LINUX配置源
      • 设置清华源
    • LINUX连接openvpn
  • DEVOPS
  • LINUX
yds
2024-06-27
目录

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

MX Linux的源配置文件有三个,具体我也没必要清楚每个都是什么作用,设置了好用就行了,试了多次,最终以下版本的设置表现良好:

文件位置在这:

$ pwd
/etc/apt/sources.list.d
1
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
debian-stable-updates.list
这个文件空着就行
1

设置完再执行update就没问题了。

上次更新: 2024/09/30, 01:34:11
MX LINUX安装五笔输入法
LINUX连接openvpn

← MX LINUX安装五笔输入法 LINUX连接openvpn→

最近更新
01
使用docker-compose安装mysql
09-30
02
鸿蒙app开发中的数据驱动ui渲染问题
08-01
03
LINUX连接openvpn
07-02
更多文章>
Theme by Vdoing | Copyright © 2020-2024 YDS
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式