换源


软件源

请自行设置可用镜像源

可用镜像源:

docker-ce apt源

export MIRROR='https://mirrors.tuna.tsinghua.edu.cn/docker-ce'
sed "s|https\?://\w\+.\w\+.\w\+/|$MIRROR/|" -i.bak /etc/apt/sources.list.d/docker.list

ubuntu源

使用前需确认支持https: apt install ca-certificates

export MIRROR='https://mirrors.tuna.tsinghua.edu.cn'
sed "s|https\?://\w\+.\w\+.\w\+/|$MIRROR/|" -i.bak /etc/apt/sources.list.d/ubuntu.sources

若失败,尝试修改 /etc/apt/sources.list.d/ubuntu.sources/etc/apt/sources.list.

pypi源

~/.pip/pip.conf

[global]
index-url = https://mirrors.aliyun.com/pypi/simple/
extra-index-url = https://pypi.org/simple/

[install]
trusted-host = mirrors.aliyun.com

github

ghfast.top

https://github.com 改为 https://ghfast.top/https://github.com

kkgithub.com

将原链接github.com改为kkgithub即可

more

https://ghproxylist.com/


发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注