雅云公共镜像服务
https://mirrors.yacloud.net
提示
-
互联网: https
-
雅云内部: http | https
Ubuntu 源
-
24.04
编辑 /etc/apt/source.list.d/ubuntu.sources
Types: deb
URIs: https://mirrors.yacloud.net/ubuntu
Suites: noble noble-updates noble-backports
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释,下同
# Types: deb-src
# URIs: https://mirrors.yacloud.net/ubuntu
# Suites: noble noble-updates noble-backports
# Components: main restricted universe multiverse
# Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
# 以下安全更新软件源包含了官方源与镜像站配置,如有需要可自行修改注释切换
Types: deb
URIs: https://mirrors.yacloud.net/ubuntu/
Suites: noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
# Types: deb-src
# URIs: https://mirrors.yacloud.net/ubuntu/
# Suites: noble-security
# Components: main restricted universe multiverse
# Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
# 预发布软件源,不建议启用
# Types: deb
# URIs: https://mirrors.yacloud.net/ubuntu
# Suites: noble-proposed
# Components: main restricted universe multiverse
# Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
# # Types: deb-src
# # URIs: https://mirrors.yacloud.net/ubuntu
# # Suites: noble-proposed
# # Components: main restricted universe multiverse
# # Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
-
23.04
编辑 /etc/apt/source.list
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.yacloud.net/ubuntu/ lunar main restricted universe multiverse
deb https://mirrors.yacloud.net/ubuntu/ lunar-updates main restricted universe multiverse
deb https://mirrors.yacloud.net/ubuntu/ lunar-backports main restricted universe multiverse
deb https://mirrors.yacloud.net/ubuntu/ lunar-security main restricted universe multiverse
deb https://mirrors.yacloud.net/ubuntu/ lunar-proposed main restricted universe multiverse
# deb-src https://mirrors.yacloud.net/ubuntu/ lunar main restricted universe multiverse
# deb-src https://mirrors.yacloud.net/ubuntu/ lunar-updates main restricted universe multiverse
# deb-src https://mirrors.yacloud.net/ubuntu/ lunar-backports main restricted universe multiverse
# deb-src http://security.ubuntu.com/ubuntu/ lunar-security main restricted universe multiverse
# deb-src https://mirrors.yacloud.net/ubuntu/ lunar-proposed main restricted universe multiverse
-
22.04
默认注释源码镜像,提高速度
编辑 /etc/apt/source.list
deb https://mirrors.yacloud.net/ubuntu jammy main restricted universe multiverse
deb https://mirrors.yacloud.net/ubuntu jammy-security main restricted universe multiverse
deb https://mirrors.yacloud.net/ubuntu jammy-updates main restricted universe multiverse
deb https://mirrors.yacloud.net/ubuntu jammy-proposed main restricted universe multiverse
deb https://mirrors.yacloud.net/ubuntu jammy-backports main restricted universe multiverse
# 默认注释源码镜像,提高速度
# deb-src https://mirrors.yacloud.net/ubuntu jammy main restricted universe multiverse
# deb-src https://mirrors.yacloud.net/ubuntu jammy-security main restricted universe multiverse
# deb-src https://mirrors.yacloud.net/ubuntu jammy-updates main restricted universe multiverse
# deb-src https://mirrors.yacloud.net/ubuntu jammy-proposed main restricted universe multiverse
# deb-src https://mirrors.yacloud.net/ubuntu jammy-backports main restricted universe multiverse
-
20.04
编辑 /etc/apt/source.list
deb https://mirrors.yacloud.net/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.yacloud.net/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.yacloud.net/ubuntu/ focal-backports main restricted universe multiverse
deb https://mirrors.yacloud.net/ubuntu/ focal-security main restricted universe multiverse
# 默认注释源码镜像,提高速度
# deb-src https://mirrors.yacloud.net/ubuntu/ focal main restricted universe multiverse
# deb-src https://mirrors.yacloud.net/ubuntu/ focal-updates main restricted universe multiverse
# deb-src https://mirrors.yacloud.net/ubuntu/ focal-backports main restricted universe multiverse
# deb-src https://mirrors.yacloud.net/ubuntu/ focal-security main restricted universe multiverse
-
18.04
编辑 /etc/apt/source.list
deb https://mirrors.yacloud.net/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.yacloud.net/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.yacloud.net/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.yacloud.net/ubuntu/ bionic-security main restricted universe multiverse
# 默认注释源码镜像,提高速度
# deb-src https://mirrors.yacloud.net/ubuntu/ bionic main restricted universe multiverse
# deb-src https://mirrors.yacloud.net/ubuntu/ bionic-updates main restricted universe multiverse
# deb-src https://mirrors.yacloud.net/ubuntu/ bionic-backports main restricted universe multiverse
# deb-src https://mirrors.yacloud.net/ubuntu/ bionic-security main restricted universe multiverse
Ubuntu Release
Debian
-
Debian 12 bookworm
Option 1. 编辑 /etc/apt/sources.list
deb https://mirrors.yacloud.net/debian/ bookworm main contrib non-free non-free-firmware
# deb-src https://mirrors.yacloud.net/debian/ bookworm main contrib non-free non-free-firmware
deb https://mirrors.yacloud.net/debian/ bookworm-updates main contrib non-free non-free-firmware
# deb-src https://mirrors.yacloud.net/debian/ bookworm-updates main contrib non-free non-free-firmware
deb https://mirrors.yacloud.net/debian/ bookworm-backports main contrib non-free non-free-firmware
# deb-src https://mirrors.yacloud.net/debian/ bookworm-backports main contrib non-free non-free-firmware
deb https://mirrors.yacloud.net/debian-security/ bookworm-security main contrib non-free non-free-firmware
# deb-src https://mirrors.yacloud.net/debian-security/ bookworm-security main contrib non-free non-free-firmware
Option 2. 编辑 /etc/apt/sources.list.d/debian.sources
Types: deb
URIs: https://mirrors.yacloud.net/debian
Suites: bookworm bookworm-updates bookworm-backports
Components: main contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
# Types: deb-src
# URIs: https://mirrors.yacloud.net/debian
# Suites: bookworm bookworm-updates bookworm-backports
# Components: main contrib non-free non-free-firmware
# Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
# 以下安全更新软件源包含了官方源与镜像站配置,如有需要可自行修改注释切换
Types: deb
URIs: https://mirrors.yacloud.net/debian-security
Suites: bookworm-security
Components: main contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
# Types: deb-src
# URIs: https://mirrors.yacloud.net/debian-security
# Suites: bookworm-security
# Components: main contrib non-free non-free-firmware
# Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
-
Debian 11 bullseye
同上,将
bookworm
修改为bullseye
-
Debian 10 buster
同上,将
bookworm
修改为buster
OpenEuler
使用以下命令替换默认配置:
sudo sed -e 's|http://repo.openeuler.org/|https://mirrors.yacloud.net/openeuler/|g' \
-e 's|https://mirrors.openeuler.org/|https://mirrors.yacloud.net/openeuler/|g' \
-i.bak \
/etc/yum.repos.d/openEuler.repo
Alpine
将地址替换为雅云镜像站的地址:mirrors.yacloud.net
sed -i 's/dl-cdn.alpinelinux.org/mirrors.yacloud.net/g' /etc/apk/repositories
或者手动编辑**/etc/apk/repositories**文件,例如:
https://mirrors.yacloud.net/alpine/v3.20/main
https://mirrors.yacloud.net/alpine/v3.20/community
MXLinux
-
MXLinux 23.3 AHS
编辑
/etc/apt/sources.list.d
# MX Community Main and Test Repos deb https://mirrors.yacloud.net/mxlinux/mx/repo/ bookworm main non-free #ahs hardware stack repo deb https://mirrors.yacloud.net/mxlinux/mx/repo/ bookworm ahs
Docker 安装
-
使用
curl
export DOWNLOAD_URL="https://mirrors.yacloud.net/docker-ce" && curl -fsSL https://mirrors.yacloud.net/get-docker.sh | sh
-
使用
wget
export DOWNLOAD_URL="https://mirrors.yacloud.net/docker-ce" && wget -O- https://mirrors.yacloud.net/get-docker.sh | sh
-
openEuler
官方脚本暂不支持openEuler,可以使用CentOS 7对应的包来进行安装。
- 添加CentOS的repo,文件位于
/etc/yum.repos.d/
:
dnf config-manager --add-repo https://mirrors.yacloud.net/docker-ce/linux/centos/docker-ce.repo
- 修改
/etc/yum.repos.d/docker-ce.repo
,将发行版本修改为CentOS 9,并替换下载链接为雅云镜像:
sed -e 's/$releasever/9/g' \ -e 's+download.docker.com+mirrors.yacloud.net/docker-ce+' \ -i.bak \ /etc/yum.repos.d/docker-ce.repo
- 刷新软件源
dnf clean dbcache && dnf makecache
- 删除旧版docker(Optional)
dnf remove -y docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-engine
- 安装docker
dnf install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
- 添加CentOS的repo,文件位于
Docker Registry 镜像加速
提示
- 雅云平台内自动匹配内网地址
-
Linux
Edit
/etc/docker/daemon.json
{ "registry-mirrors": [ "https://docker-registry.yacloud.net" ] }
重启docker服务:
systemctl restart docker
其他镜像收集:
{ "registry-mirrors": [ "https://docker.1ms.run", "https://docker.m.daocloud.io", "https://0zek2s53.mirror.aliyuncs.com", "https://hub-mirror.c.163.com/", "https://0416954af6184aeeada64d39f45b0ec5.mirror.swr.myhuaweicloud.com" ] }