当前位置:   article > 正文

armbian的换源_armbian换源

armbian换源

安装好armbian和众多Linux一样,最重要的就是把原来的官方源给替换掉,换成国内的源,当然个人建议还是把官方的源备份一下以防出错。

cp /etc/apt/sources.list /etc/apt/sources.list.backage

打开源文件文本

nano /etc/apt/sources.list

这里是各个国内源。不用全复制,挑一个就行,我用的是163源(网易源)

  1. 163镜像站
  2. deb http://mirrors.163.com/debian/ buster main non-free contrib
  3. deb http://mirrors.163.com/debian/ buster-updates main non-free contrib
  4. deb http://mirrors.163.com/debian/ buster-backports main non-free contrib
  5. deb http://mirrors.163.com/debian-security/ buster/updates main non-free contrib
  6. deb-src http://mirrors.163.com/debian/ buster main non-free contrib
  7. deb-src http://mirrors.163.com/debian/ buster-updates main non-free contrib
  8. deb-src http://mirrors.163.com/debian/ buster-backports main non-free contrib
  9. deb-src http://mirrors.163.com/debian-security/ buster/updates main non-free contrib
  10. 华为云镜像站
  11. deb https://mirrors.huaweicloud.com/debian/ buster main contrib non-free
  12. deb https://mirrors.huaweicloud.com/debian/ buster-updates main contrib non-free
  13. deb https://mirrors.huaweicloud.com/debian/ buster-backports main contrib non-free
  14. deb https://mirrors.huaweicloud.com/debian-security/ buster/updates main contrib non-free
  15. deb-src https://mirrors.huaweicloud.com/debian/ buster main contrib non-free
  16. deb-src https://mirrors.huaweicloud.com/debian/ buster-updates main contrib non-free
  17. deb-src https://mirrors.huaweicloud.com/debian/ buster-backports main contrib non-free
  18. 腾讯云镜像站
  19. deb http://mirrors.cloud.tencent.com/debian/ buster main non-free contrib
  20. deb http://mirrors.cloud.tencent.com/debian-security buster/updates main
  21. deb http://mirrors.cloud.tencent.com/debian/ buster-updates main non-free contrib
  22. deb http://mirrors.cloud.tencent.com/debian/ buster-backports main non-free contrib
  23. deb-src http://mirrors.cloud.tencent.com/debian-security buster/updates main
  24. deb-src http://mirrors.cloud.tencent.com/debian/ buster main non-free contrib
  25. deb-src http://mirrors.cloud.tencent.com/debian/ buster-updates main non-free contrib
  26. deb-src http://mirrors.cloud.tencent.com/debian/ buster-backports main non-free contrib
  27. 中科大镜像站
  28. deb https://mirrors.ustc.edu.cn/debian/ buster main contrib non-free
  29. deb https://mirrors.ustc.edu.cn/debian/ buster-updates main contrib non-free
  30. deb https://mirrors.ustc.edu.cn/debian/ buster-backports main contrib non-free
  31. deb https://mirrors.ustc.edu.cn/debian-security/ buster/updates main contrib non-free
  32. deb-src https://mirrors.ustc.edu.cn/debian/ buster main contrib non-free
  33. deb-src https://mirrors.ustc.edu.cn/debian/ buster-updates main contrib non-free
  34. deb-src https://mirrors.ustc.edu.cn/debian/ buster-backports main contrib non-free
  35. deb-src https://mirrors.ustc.edu.cn/debian-security/ buster/updates main contrib non-free
  36. 阿里云镜像站
  37. deb http://mirrors.aliyun.com/debian/ buster main non-free contrib
  38. deb http://mirrors.aliyun.com/debian-security buster/updates main
  39. deb http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
  40. deb http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
  41. deb-src http://mirrors.aliyun.com/debian-security buster/updates main
  42. deb-src http://mirrors.aliyun.com/debian/ buster main non-free contrib
  43. deb-src http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
  44. deb-src http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
  45. 清华大学镜像站
  46. deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free
  47. deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free
  48. deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free
  49. deb https://mirrors.tuna.tsinghua.edu.cn/debian-security/ buster/updates main contrib non-free
  50. deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free
  51. deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free
  52. deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free
  53. deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security/ buster/updates main contrib non-free
  54. 兰州大学镜像站
  55. deb http://mirror.lzu.edu.cn/debian stable main contrib non-free
  56. deb http://mirror.lzu.edu.cn/debian stable-updates main contrib non-free
  57. deb http://mirror.lzu.edu.cn/debian/ buster-backports main contrib non-free
  58. deb http://mirror.lzu.edu.cn/debian-security/ buster/updates main contrib non-free
  59. deb-src http://mirror.lzu.edu.cn/debian stable main contrib non-free
  60. deb-src http://mirror.lzu.edu.cn/debian stable-updates main contrib non-free
  61. deb-src http://mirror.lzu.edu.cn/debian/ buster-backports main contrib non-free
  62. deb-src http://mirror.lzu.edu.cn/debian-security/ buster/updates main contrib non-free
  63. 上海交大镜像站
  64. deb https://mirror.sjtu.edu.cn/debian/ buster main contrib non-free
  65. deb https://mirror.sjtu.edu.cn/debian/ buster-updates main contrib non-free
  66. deb https://mirror.sjtu.edu.cn/debian/ buster-backports main contrib non-free
  67. deb https://mirror.sjtu.edu.cn/debian-security/ buster/updates main contrib non-free
  68. deb-src https://mirror.sjtu.edu.cn/debian/ buster-updates main contrib non-free
  69. deb-src https://mirror.sjtu.edu.cn/debian/ buster-backports main contrib non-free
  70. deb-src https://mirror.sjtu.edu.cn/debian/ buster main contrib non-free
  71. deb-src https://mirror.sjtu.edu.cn/debian-security/ buster/updates main contrib non-free

恢复官方源时只需执行(前提是你备份了,或者直接百度armbian官方源进行替换就行了)

rm /etc/apt/sources.list&&mv /etc/apt/sources.list.backage /etc/apt/sources.list

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号