一、参考链接
阿里巴巴开源镜像站:阿里巴巴开源镜像站
阿里镜像站—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
在这里插入图片描述
网友评论