Я добавил хранилище в соответствии с руководством https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-using-the-repository
, но когда я запускаю sudo apt-get update, я получаю следующий стек
Ign:9 https://download.docker.com/linux/ubuntu stretch/stable amd64 Packages Ign:10 https://download.docker.com/linux/ubuntu stretch/stable all Packages Ign:12 https://download.docker.com/linux/ubuntu stretch/stable Translation-en Ign:13 https://download.docker.com/linux/ubuntu stretch/stable Translation-en_US Err:9 https://download.docker.com/linux/ubuntu stretch/stable amd64 Packages 404 Not Found Ign:10 https://download.docker.com/linux/ubuntu stretch/stable all Packages Ign:12 https://download.docker.com/linux/ubuntu stretch/stable Translation-en Ign:13 https://download.docker.com/linux/ubuntu stretch/stable Translation-en_US Reading package lists... Done W: The repository 'https://download.docker.com/linux/ubuntu stretch Release' does not have a Release file. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. E: Failed to fetch https://download.docker.com/linux/ubuntu/dists/stretch/stable/binary-amd64/Packages 404 Not Found`
My / etc / apt/sources.list выглядит следующим образом
deb http://deb.debian.org/debian stretch main deb http://security.debian.org/debian-security stretch/updates main deb [arch=amd64] https://download.docker.com/linux/ubuntu stretch stable # deb-src [arch=amd64] https://download.docker.com/linux/ubuntu stretch stable
В Ubuntu нет stretch.Вы, вероятно, нажали не ту ссылку на документы.Замените ubuntu в URL-адресе файла sources.list на debian, как вы, похоже, на компьютере с Debian.
stretch
ubuntu
sources.list
debian