找回密码
 register

QQ登录

只需一步,快速开始

[*网络运维*] Debian12 国内镜像源设置

[复制链接]

[*网络运维*] Debian12 国内镜像源设置

[复制链接]
Waylee

主题

0

回帖

1万

积分

仙帝

积分
10124
Waylee 2024-9-17 16:27 | 显示全部楼层 |阅读模式

马上注册,查看网站隐藏内容!!

您需要 登录 才可以下载或查看,没有账号?register

×
设置镜像源
我们通过vi打开/etc/apt/sources.list
将下面其中一个镜像站内容拷贝粘贴(shift+insert)进里面,之后保存输入sudo apt update即可。

国内常见镜像站点
Debian全球镜像站列表:https://www.debian.org/mirror/list

下面列出国内常用的镜像站点及 /etc/apt/sources.list 中的具体对应内容:
  1. deb https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
  2. deb-src https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
  3. deb https://mirrors.aliyun.com/debian-security/ bookworm-security main
  4. deb-src https://mirrors.aliyun.com/debian-security/ bookworm-security main
  5. deb https://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
  6. deb-src https://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
  7. deb https://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib
  8. deb-src https://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib
复制代码
腾讯云镜像站

  1. deb https://mirrors.tencent.com/debian/ bookworm main non-free non-free-firmware contrib
  2. deb-src https://mirrors.tencent.com/debian/ bookworm main non-free non-free-firmware contrib
  3. deb https://mirrors.tencent.com/debian-security/ bookworm-security main
  4. deb-src https://mirrors.tencent.com/debian-security/ bookworm-security main
  5. deb https://mirrors.tencent.com/debian/ bookworm-updates main non-free non-free-firmware contrib
  6. deb-src https://mirrors.tencent.com/debian/ bookworm-updates main non-free non-free-firmware contrib
  7. deb https://mirrors.tencent.com/debian/ bookworm-backports main non-free non-free-firmware contrib
  8. deb-src https://mirrors.tencent.com/debian/ bookworm-backports main non-free non-free-firmware contrib
复制代码
网易镜像站

  1. deb https://mirrors.163.com/debian/ bookworm main non-free non-free-firmware contrib
  2. deb-src https://mirrors.163.com/debian/ bookworm main non-free non-free-firmware contrib
  3. deb https://mirrors.163.com/debian-security/ bookworm-security main
  4. deb-src https://mirrors.163.com/debian-security/ bookworm-security main
  5. deb https://mirrors.163.com/debian/ bookworm-updates main non-free non-free-firmware contrib
  6. deb-src https://mirrors.163.com/debian/ bookworm-updates main non-free non-free-firmware contrib
  7. deb https://mirrors.163.com/debian/ bookworm-backports main non-free non-free-firmware contrib
  8. deb-src https://mirrors.163.com/debian/ bookworm-backports main non-free non-free-firmware contrib
复制代码
华为镜像站

  1. deb https://mirrors.huaweicloud.com/debian/ bookworm main non-free non-free-firmware contrib
  2. deb-src https://mirrors.huaweicloud.com/debian/ bookworm main non-free non-free-firmware contrib
  3. deb https://mirrors.huaweicloud.com/debian-security/ bookworm-security main
  4. deb-src https://mirrors.huaweicloud.com/debian-security/ bookworm-security main
  5. deb https://mirrors.huaweicloud.com/debian/ bookworm-updates main non-free non-free-firmware contrib
  6. deb-src https://mirrors.huaweicloud.com/debian/ bookworm-updates main non-free non-free-firmware contrib
  7. deb https://mirrors.huaweicloud.com/debian/ bookworm-backports main non-free non-free-firmware contrib
  8. deb-src https://mirrors.huaweicloud.com/debian/ bookworm-backports main non-free non-free-firmware contrib
复制代码
清华大学镜像站

  1. deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
  2. deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
  3. deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
  4. deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
  5. deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
  6. deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
  7. deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware
  8. deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware
复制代码
中科大镜像站

  1. deb https://mirrors.ustc.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
  2. deb-src https://mirrors.ustc.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
  3. deb https://mirrors.ustc.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
  4. deb-src https://mirrors.ustc.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
  5. deb https://mirrors.ustc.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
  6. deb-src https://mirrors.ustc.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
  7. deb https://mirrors.ustc.edu.cn/debian-security/ bookworm-security main contrib non-free non-free-firmware
  8. deb-src https://mirrors.ustc.edu.cn/debian-security/ bookworm-security main contrib non-free non-free-firmware
复制代码
更新内容:
sudo apt-get update
sudo apt-get dist-upgrade




您需要登录后才可以回帖 登录 | register

本版积分规则

雪舞知识库 | 浙ICP备15015590号-1 | 萌ICP备20232229号|浙公网安备33048102000118号 |网站地图|天天打卡

GMT+8, 2024-12-5 02:49 , Processed in 0.051892 second(s), 8 queries , Redis On.

Powered by XueWu Licensed

Copyright © Tencent Cloud.

快速回复 返回顶部 返回列表