ubuntu安装docker,安装docker时候提示Package 'docker-ce' has no installation candidate

image

你刚才的步骤是依赖软件没装上 现在装上了吗?
安装命令一条一条执行 成功了再执行下一条

参考这个文档,看是否有帮助~

前面都执行通过了,就到最后的时候不行,是不是执行下面红色命令要替换成啥?

image
image
image
image

echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

官网有一行命令更新了