当我关注社区码头时,我遇到了以下问题:
sudo add-apt-repository \
> "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
> $(lsb_release -cs) \
> stable"
[sudo] password for yogesh:
Hit:1 https://download.docker.com/linux/ubuntu bionic InRelease
Get:2 http://in.archive.ubuntu.com/ubuntu focal InRelease [265 kB]
Ign:3 http://dl.google.com/linux/chrome/deb stable InRelease
Ign:4 https://download.docker.com/linux/ubuntu focal InRelease
Hit:5 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:6 http://packages.microsoft.com/repos/vscode stable InRelease
Err:7 https://download.docker.com/linux/ubuntu focal Release
404 Not Found [IP: 54.182.0.11 443]
Hit:8 http://dl.google.com/linux/chrome/deb stable Release
Hit:10 http://in.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:11 http://in.archive.ubuntu.com/ubuntu focal-backports InRelease
Reading package lists... Done
E: The repository 'https://download.docker.com/linux/ubuntu focal Release' does …Run Code Online (Sandbox Code Playgroud) thufir@dur:~$ sudo snap install docker
docker 17.06.1-ce from 'docker-inc' installed
thufir@dur:~$ sudo service docker start
Failed to start docker.service: Unit docker.service not found.
thufir@dur:~$ sudo systemctl status docker
Unit docker.service could not be found.
thufir@dur:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 17.10
Release: 17.10
Codename: artful
thufir@dur:~$ snap list
Name Version Rev Developer Notes
core 16-2.29.3 3440 canonical core
docker 17.06.1-ce 171 docker-inc -
hello-world 6.3 27 canonical - …Run Code Online (Sandbox Code Playgroud)