共计 4263 个字符,预计需要花费 11 分钟才能阅读完成。
一、参考链接
阿里巴巴开源镜像站:阿里巴巴开源镜像站
阿里镜像站—Deepin 镜像:Debian 镜像
二、Debian 简介
Debian GNU/Linux,是一个操作系统及自由软件的发行版,由一群被迫付出工夫和精力的用户来保护并更新。它附带了超过 59000 个软件包,这些事后编译好的软件被打包成一种良好的格局以便于用户装置和应用。
下载地址: https://mirrors.aliyun.com/debian/
https://mirrors.aliyun.com/debian-archive/
三、更换阿里 Debian 镜像源
1、登录 Debian 操作系统
2、关上终端窗口
3、测试网络连通性
4、备份零碎源镜像文件
5、编辑 source.list 配置文件
编辑 /etc/apt/sources.list 文件(须要应用 sudo), 在文件最后面增加以下条目(操作前请做好相应备份
debian 11.x (bullseye)
root@debian:/etc/apt# cat sources.list
deb http://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb http://mirrors.aliyun.com/debian-security/ bullseye-security main
deb-src http://mirrors.aliyun.com/debian-security/ bullseye-security main
deb http://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib
6、运行命令生成缓存
apt-get clean
– 删除所有已下载的包文件apt-get update
– 取回更新的软件包列表信息apt-get upgrade
– 进行一次降级
root@debian:/etc/apt# apt-get clean
root@debian:/etc/apt# apt-get update
获取:1 http://mirrors.aliyun.com/debian bullseye InRelease [116 kB]
获取:2 http://mirrors.aliyun.com/debian-security bullseye-security InRelease [44.1 kB]
获取:3 http://mirrors.aliyun.com/debian bullseye-updates InRelease [39.4 kB]
获取:4 http://mirrors.aliyun.com/debian bullseye-backports InRelease [43.7 kB]
获取:5 http://mirrors.aliyun.com/debian bullseye/main Sources [8,617 kB]
获取:6 http://mirrors.aliyun.com/debian bullseye/contrib Sources [43.0 kB]
获取:7 http://mirrors.aliyun.com/debian bullseye/non-free Sources [80.5 kB]
获取:8 http://mirrors.aliyun.com/debian bullseye/main amd64 Packages [8,180 kB]
获取:9 http://mirrors.aliyun.com/debian bullseye/main Translation-en [6,241 kB]
获取:10 http://mirrors.aliyun.com/debian bullseye/main Translation-zh [1,215 B]
获取:11 http://mirrors.aliyun.com/debian bullseye/main Translation-zh_CN [114 kB]
获取:12 http://mirrors.aliyun.com/debian bullseye/main amd64 DEP-11 Metadata [4,049 kB]
获取:13 http://mirrors.aliyun.com/debian bullseye/main DEP-11 48x48 Icons [3,478 kB]
获取:14 http://mirrors.aliyun.com/debian bullseye/main DEP-11 64x64 Icons [7,315 kB]
获取:15 http://mirrors.aliyun.com/debian bullseye/non-free amd64 Packages [93.8 kB]
获取:16 http://mirrors.aliyun.com/debian bullseye/non-free Translation-en [91.5 kB]
获取:17 http://mirrors.aliyun.com/debian bullseye/non-free amd64 DEP-11 Metadata [17.9 kB]
获取:18 http://mirrors.aliyun.com/debian bullseye/non-free DEP-11 48x48 Icons [741 B]
获取:19 http://mirrors.aliyun.com/debian bullseye/non-free DEP-11 64x64 Icons [27.7 kB]
获取:20 http://mirrors.aliyun.com/debian bullseye/contrib amd64 Packages [50.5 kB]
获取:21 http://mirrors.aliyun.com/debian bullseye/contrib Translation-en [46.9 kB]
获取:22 http://mirrors.aliyun.com/debian bullseye/contrib amd64 DEP-11 Metadata [13.6 kB]
获取:23 http://mirrors.aliyun.com/debian bullseye/contrib DEP-11 48x48 Icons [47.2 kB]
获取:24 http://mirrors.aliyun.com/debian bullseye/contrib DEP-11 64x64 Icons [93.3 kB]
获取:25 http://mirrors.aliyun.com/debian-security bullseye-security/main Sources [68.4 kB]
获取:26 http://mirrors.aliyun.com/debian-security bullseye-security/main amd64 Packages [97.1 kB]
获取:27 http://mirrors.aliyun.com/debian-security bullseye-security/main Translation-en [60.1 kB]
获取:28 http://mirrors.aliyun.com/debian bullseye-updates/main Sources [1,868 B]
获取:29 http://mirrors.aliyun.com/debian bullseye-updates/main amd64 Packages [2,592 B]
获取:30 http://mirrors.aliyun.com/debian bullseye-updates/main Translation-en [2,343 B]
获取:31 http://mirrors.aliyun.com/debian bullseye-backports/main Sources [119 kB]
获取:32 http://mirrors.aliyun.com/debian bullseye-backports/non-free Sources [780 B]
获取:33 http://mirrors.aliyun.com/debian bullseye-backports/contrib Sources [1,608 B]
获取:34 http://mirrors.aliyun.com/debian bullseye-backports/main amd64 Packages [138 kB]
获取:35 http://mirrors.aliyun.com/debian bullseye-backports/main Translation-en [102 kB]
获取:36 http://mirrors.aliyun.com/debian bullseye-backports/non-free amd64 Packages [1,224 B]
获取:37 http://mirrors.aliyun.com/debian bullseye-backports/non-free Translation-en [472 B]
获取:38 http://mirrors.aliyun.com/debian bullseye-backports/contrib amd64 Packages [3,108 B]
获取:39 http://mirrors.aliyun.com/debian bullseye-backports/contrib Translation-en [2,908 B]
已下载 39.4 MB,耗时 11 秒 (3,698 kB/s)
正在读取软件包列表... 实现
7、测试应用阿里云镜像源下载速度
root@debian:/etc/apt# apt install -d -y vim*
apt install -d -y xfce4 gnome libreoffice vlc
正文完