找回密码
 注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 617|回复: 0

Debian 10 更换国内源 (中科大、网易源、阿里云)

[复制链接]
发表于 2022-1-18 12:07:53 | 显示全部楼层 |阅读模式
本帖最后由 super 于 2022-1-18 12:10 编辑

如有必要请在修改的覆盖的操作前做好备份, 下面内容可按需复制或抄写,比如我一般只用中科大源

1. 修改文件 /etc/apt/sources.list 为下面内容
下面内容中默认开启了中科大的源,请根据自己需求决定使用哪个源。 方法: 直接取消注释就好

  1. # Debian 10 buster

  2. # 中科大源

  3. deb http://mirrors.ustc.edu.cn/debian buster main contrib non-free
  4. deb http://mirrors.ustc.edu.cn/debian buster-updates main contrib non-free
  5. deb http://mirrors.ustc.edu.cn/debian buster-backports main contrib non-free
  6. deb http://mirrors.ustc.edu.cn/debian-security/ buster/updates main contrib non-free

  7. # deb-src http://mirrors.ustc.edu.cn/debian buster main contrib non-free
  8. # deb-src http://mirrors.ustc.edu.cn/debian buster-updates main contrib non-free
  9. # deb-src http://mirrors.ustc.edu.cn/debian buster-backports main contrib non-free
  10. # deb-src http://mirrors.ustc.edu.cn/debian-security/ buster/updates main contrib non-free

  11. # 官方源

  12. # deb http://deb.debian.org/debian buster main contrib non-free
  13. # deb http://deb.debian.org/debian buster-updates main contrib non-free
  14. # deb http://deb.debian.org/debian-security/ buster/updates main contrib non-free

  15. # deb-src http://deb.debian.org/debian buster main contrib non-free
  16. # deb-src http://deb.debian.org/debian buster-updates main contrib non-free
  17. # deb-src http://deb.debian.org/debian-security/ buster/updates main contrib non-free

  18. # 网易源

  19. # deb http://mirrors.163.com/debian/ buster main non-free contrib
  20. # deb http://mirrors.163.com/debian/ buster-updates main non-free contrib
  21. # deb http://mirrors.163.com/debian/ buster-backports main non-free contrib
  22. # deb http://mirrors.163.com/debian-security/ buster/updates main non-free contrib

  23. # deb-src http://mirrors.163.com/debian/ buster main non-free contrib
  24. # deb-src http://mirrors.163.com/debian/ buster-updates main non-free contrib
  25. # deb-src http://mirrors.163.com/debian/ buster-backports main non-free contrib
  26. # deb-src http://mirrors.163.com/debian-security/ buster/updates main non-free contrib

  27. # 阿里云

  28. # deb http://mirrors.aliyun.com/debian/ buster main non-free contrib
  29. # deb http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
  30. # deb http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
  31. # deb http://mirrors.aliyun.com/debian-security buster/updates main

  32. # deb-src http://mirrors.aliyun.com/debian/ buster main non-free contrib
  33. # deb-src http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
  34. # deb-src http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
  35. # deb-src http://mirrors.aliyun.com/debian-security buster/updates main
复制代码


2. 直接用此文件覆盖掉源
请依次执行:

下载设置好的源文件
覆盖现有源
更新软件列表并更新软件
  1. wget http://qiniu.xiwen.online/Debian10.list
  2. sudo mv Debian10.list /etc/apt/sources.list
  3. sudo apt update && sudo apt upgrade -y
复制代码


文件内容与上面代码内容相同


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

本版积分规则

Archiver|手机版|小黑屋|中国飞逸网

GMT+8, 2024-11-24 18:43

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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