docker安装出现The repository 'http://security.debian.org bullseye/updates Release' does not have a Release file.

docker安装出现The repository 'http://security.debian.org bullseye/updates Release' does not have a Release file.,这种问题基本上换源就能解决,这里给下解决方法。

1、问题:debian11安装docker出现如下问题:

root@hkddkMcHQ6OU:~# curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
# Executing docker install script, commit: 6d9743e9656cc56f699a64800b098d5ea5a60020
+ sh -c apt-get update -qq >/dev/null
E: The repository 'http://security.debian.org bullseye/updates Release' does not have a Release file.

 

 

2、换源

linux换源,我没可以通过一键脚本来解决如下:

1)一键更换国内软件源脚本(请通过 SSH客户端工具 使用)

bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh)

2)海外用户使用脚本

bash <(curl -sSL https://github.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) --abroad

3、安装docker

curl -sSL https://get.docker.com/ | sh

这下安装起来就没问题了。

THE END