
步骤:
-
备份原始文件: 在修改之前,最好备份一下原始的 docker.list 文件,以便出现问题时可以恢复:
sudo cp /etc/apt/sources.list.d/docker.list /etc/apt/sources.list.d/docker.list.bak
-
编辑 docker.list 文件: 使用你喜欢的文本编辑器打开 docker.list 文件:
sudo nano /etc/apt/sources.list.d/docker.list
-
添加国内源:
将以下内容添加到 docker.list 文件中,替换掉原有的内容(如果存在)。可以选择其中一个源:
-
阿里云:
deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/ubuntu focal stable
-
清华大学:
deb [arch=amd64] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu focal stable
-
网易:
deb [arch=amd64] http://mirrors.163.com/docker-ce/linux/ubuntu focal stable
注意:
- 将 focal 替换为你正在使用的 Ubuntu 版本代号。可以使用 lsb_release -cs 命令查看。
- 建议选择地理位置上离你最近的镜像源,以获得更快的下载速度。
-
-
更新软件包列表并安装 Docker:
sudo apt update sudo apt install docker-ce docker-ce-cli containerd.io
-
验证安装:
sudo docker run hello-world
如果 Docker 安装成功,你将看到 "Hello from Docker!" 的输出信息。
现在,你已经成功配置了国内源,并可以使用 apt 命令安装和管理 Docker 了。

国内常见镜像站点
Debian全球镜像站列表:https://www.debian.org/mirror/list 。
下面列出国内常用的镜像站点及 /etc/apt/sources.list 中的具体对应内容:
阿里云镜像站
deb https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
deb-src https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
deb https://mirrors.aliyun.com/debian-security/ bookworm-security main
deb-src https://mirrors.aliyun.com/debian-security/ bookworm-security main
deb https://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb-src https://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb https://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib
deb-src https://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib
腾讯云镜像站
deb https://mirrors.tencent.com/debian/ bookworm main non-free non-free-firmware contrib
deb-src https://mirrors.tencent.com/debian/ bookworm main non-free non-free-firmware contrib
deb https://mirrors.tencent.com/debian-security/ bookworm-security main
deb-src https://mirrors.tencent.com/debian-security/ bookworm-security main
deb https://mirrors.tencent.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb-src https://mirrors.tencent.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb https://mirrors.tencent.com/debian/ bookworm-backports main non-free non-free-firmware contrib
deb-src https://mirrors.tencent.com/debian/ bookworm-backports main non-free non-free-firmware contrib
网易镜像站
deb https://mirrors.163.com/debian/ bookworm main non-free non-free-firmware contrib
deb-src https://mirrors.163.com/debian/ bookworm main non-free non-free-firmware contrib
deb https://mirrors.163.com/debian-security/ bookworm-security main
deb-src https://mirrors.163.com/debian-security/ bookworm-security main
deb https://mirrors.163.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb-src https://mirrors.163.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb https://mirrors.163.com/debian/ bookworm-backports main non-free non-free-firmware contrib
deb-src https://mirrors.163.com/debian/ bookworm-backports main non-free non-free-firmware contrib
华为镜像站
deb https://mirrors.huaweicloud.com/debian/ bookworm main non-free non-free-firmware contrib
deb-src https://mirrors.huaweicloud.com/debian/ bookworm main non-free non-free-firmware contrib
deb https://mirrors.huaweicloud.com/debian-security/ bookworm-security main
deb-src https://mirrors.huaweicloud.com/debian-security/ bookworm-security main
deb https://mirrors.huaweicloud.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb-src https://mirrors.huaweicloud.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb https://mirrors.huaweicloud.com/debian/ bookworm-backports main non-free non-free-firmware contrib
deb-src https://mirrors.huaweicloud.com/debian/ bookworm-backports main non-free non-free-firmware contrib
清华大学镜像站
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb-src 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-src 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
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware
中科大镜像站
deb https://mirrors.ustc.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb https://mirrors.ustc.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb https://mirrors.ustc.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
deb https://mirrors.ustc.edu.cn/debian-security/ bookworm-security main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian-security/ bookworm-security main contrib non-free non-free-firmware

- Workstation Pro 17.6.3 下载 (适用于 Windows 桌面上的虚拟化)
- Fusion Pro 13.6.3 下载 (适用于 Mac OS 桌面上的虚拟化)
注意:只有这两个最新版本以及以后的版本才支持个人使用 (Personal Use) 免费许可。以 Workstation Pro 为例,在第一次启动时会要求你输入 license key,对于个人用户而言,你只需要选 Personal Use 就可以免费使用了。

需要注意的是,Workstation Pro 和 Fusion Pro 的免费仅适用于非商业用途,VMware 对于个人使用和商业用途的定义如下:
- 个人使用: Workstation 或 Fusion 安装到电脑后,被用于运行非商业目的的虚拟机。个人使用明确排除将产品用于商业目的,包括经营或运营企业、组织、政府组织或教育机构等。
- 商业用途:企业许可允许将产品用于商业目的,包括经营或运营企业、组织、政府组织或教育机构等。
把 Workstation Pro 和 Fusion Pro 用于商业用途的话需要购买企业许可。

rspamd : Depends: libc++1-16 (>= 1:16.0.0~++20230308013049+7b4e71bcf991) but it is not installable
Depends: libc++abi1-16 (>= 1:16.0.0~++20230308013049+7b4e71bcf991) but it is not installable
Depends: libunwind-16 (>= 1:16.0.0~++20230308013049+7b4e71bcf991) but it is not installable
E: Unable to correct problems, you have held broken packages.
chmod +x llvm.sh
sudo ./llvm.sh 16
sudo apt install libc++-16-dev libc++abi-16-dev libunwind-16-dev

NCSI 同时使用主动和被动探测器。 这些探测器由任意网络接口中的更改触发。 当按照"症状"部分所述将计算机连接到网络时,NCSI 将开始一个包含以下一个或多个内容的进程:
解决方法
若要使用组策略禁用 NCSI 活动探测器,请配置以下 GPO:
- 计算机配置 \管理模板 \系统 \Internet 通信管理 \Internet 通信设置 \关闭Windows网络连接状态指示器活动测试
- 值:已启用
若要使用组策略禁用 NCSI 被动探测器,请配置以下 GPO:
- 计算机配置 \管理模板 \网络 \网络连接状态指示器 \指定被动轮询。
- 值:已启用