【阿里云镜像】切换阿里巴巴开源镜像站镜像——Debian镜像
程序员文章站
2022-03-24 09:55:48
...
一、参考链接
阿里巴巴开源镜像站:阿里巴巴开源镜像站
阿里镜像站—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.listdeb http://mirrors.aliyun.com/debian/ bullseye main non-free contribdeb-src http://mirrors.aliyun.com/debian/ bullseye main non-free contribdeb http://mirrors.aliyun.com/debian-security/ bullseye-security maindeb-src http://mirrors.aliyun.com/debian-security/ bullseye-security maindeb http://mirrors.aliyun.com/debian/ bullseye-updates main non-free contribdeb-src http://mirrors.aliyun.com/debian/ bullseye-updates main non-free contribdeb http://mirrors.aliyun.com/debian/ bullseye-backports main non-free contribdeb-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 cleanroot@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
推荐阅读
-
阿里云镜像站怎么下载(阿里云服务器下载镜像)
-
Maven settings.xml 配置阿里云或华为开源镜像,eclipse引入指定maven
-
【阿里云镜像】配置阿里巴巴开源镜像站镜像——Epel镜像
-
切换阿里巴巴开源镜像站镜像——Kali镜像
-
阿里云开源镜像站支持IPv6访问
-
切换阿里巴巴开源镜像站镜像——Kali镜像
-
阿里云镜像站全新上线镜像合集,速度收藏!(内含manjaro,gnu,openwrt等多个镜像资源)
-
使用阿里巴巴开源镜像站镜像——Kubernetes 镜像
-
使用阿里巴巴开源镜像站镜像——Kubernetes 镜像
-
使用阿里云镜像站NTP服务搭建NTP服务器(基于CentOS 7系统)