[不指定 2024/06/07 14:50 | by 孤城浪子 ]
如何在 /etc/apt/sources.list.d/docker.list 文件中使用国内源安装 Docker 的方法:

步骤:

  1. 备份原始文件: 在修改之前,最好备份一下原始的 docker.list 文件,以便出现问题时可以恢复:

    sudo cp /etc/apt/sources.list.d/docker.list /etc/apt/sources.list.d/docker.list.bak 
  2. 编辑 docker.list 文件: 使用你喜欢的文本编辑器打开 docker.list 文件:

    sudo nano /etc/apt/sources.list.d/docker.list 
  3. 添加国内源:

    将以下内容添加到 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 命令查看。
    • 建议选择地理位置上离你最近的镜像源,以获得更快的下载速度。
  4. 更新软件包列表并安装 Docker:

    sudo apt update sudo apt install docker-ce docker-ce-cli containerd.io 
  5. 验证安装:

    sudo docker run hello-world 

    如果 Docker 安装成功,你将看到 "Hello from Docker!" 的输出信息。

现在,你已经成功配置了国内源,并可以使用 apt 命令安装和管理 Docker 了。

把 /etc/apt/sources.list 里面的内容全部注释掉,增加以下 Debian 12 的软件源:

国内常见镜像站点

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
VMware 于2025年2月24日推出了桌面虚拟化平台的最新版本 Workstation Pro 17.6.3 和 Fusion Pro  13.6.3,并且宣布这两个产品对个人使用完全免费。大家可以点击下面的链接下载,下载需要登录 Broadcom Support  Portal,如果你在上面还没有账号的话可以注册一个。        

注意:只有这两个最新版本以及以后的版本才支持个人使用 (Personal Use) 免费许可。以 Workstation Pro  为例,在第一次启动时会要求你输入 license key,对于个人用户而言,你只需要选 Personal Use 就可以免费使用了。

  
      

需要注意的是,Workstation Pro 和 Fusion Pro 的免费仅适用于非商业用途,VMware 对于个人使用和商业用途的定义如下:

    
  • 个人使用: Workstation 或 Fusion 安装到电脑后,被用于运行非商业目的的虚拟机。个人使用明确排除将产品用于商业目的,包括经营或运营企业、组织、政府组织或教育机构等。
  • 商业用途:企业许可允许将产品用于商业目的,包括经营或运营企业、组织、政府组织或教育机构等。
    

把 Workstation Pro 和 Fusion Pro 用于商业用途的话需要购买企业许可。

首先按照https://rspamd.com/downloads.html操作,安装出现缺少以下库

The following packages have unmet dependencies:
 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.

解决办法:
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 16

sudo apt install libc++-16-dev libc++abi-16-dev libunwind-16-dev
Windows使用网络位置感知 (NLA) 服务检测网络的属性并确定如何管理与该网络的连接。 NLA 使用名为网络连接状态指示器 (NCSI) 的组件来确定计算机是否已成功连接到网络,以及网络是否具有 Intranet 或 Internet 连接。

NCSI 同时使用主动和被动探测器。 这些探测器由任意网络接口中的更改触发。 当按照"症状"部分所述将计算机连接到网络时,NCSI 将开始一个包含以下一个或多个内容的进程:


解决方法

开始-运行-gpedit

若要使用组策略禁用 NCSI 活动探测器,请配置以下 GPO:

  • 计算机配置 \管理模板 \系统 \Internet 通信管理 \Internet 通信设置 \关闭Windows网络连接状态指示器活动测试
    • 值:已启用

若要使用组策略禁用 NCSI 被动探测器,请配置以下 GPO:

  • 计算机配置 \管理模板 \网络 \网络连接状态指示器 \指定被动轮询
    • 值:已启用
 
分页: 2/70 第一页 上页 1 2 3 4 5 6 7 8 9 10 下页 最后页 [ 显示模式: 摘要 | 列表