我正试图在我的Ubuntu20.04上安装对接器。尝试使用apt-get和snap安装对接器:
sudo apt-get install docker输出:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
wmdocker
The following NEW packages will be installed:
docker wmdocker
0 upgraded, 2 newly installed, 0 to remove and 6 not upgraded.
Need to get 0 B/14.3 kB of archives.
After this operation, 58.4 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package wmdocker.
(Reading database ... 193518 files and directories currently installed.)
Preparing to unpack .../wmdocker_1.5-2_amd64.deb ...
Unpacking wmdocker (1.5-2) ...
Selecting previously unselected package docker.
Preparing to unpack .../archives/docker_1.5-2_all.deb ...
Unpacking docker (1.5-2) ...
Setting up wmdocker (1.5-2) ...
Setting up docker (1.5-2) ...
Processing triggers for man-db (2.9.1-1) ...如果运行docker命令,就会得到错误:
a@ubuntu:~$ docker
Command 'docker' not found, but can be installed with:
sudo snap install docker # version 19.03.11, or
sudo apt install docker.io # version 19.03.8-0ubuntu1.20.04.1
See 'snap info docker' for additional versions.为什么系统找不到对接命令?
然后我打成平手:
sudo snap install docker 码头命令运行良好。
为什么我可以安装插口而不能用apt-get?
发布于 2020-12-04 14:35:49
因为那docker不是你所期望的码头工人你所期望的码头工人。docker是KDE3 3/GNOME2 2的系统托盘的包名。您可以通过访问Ubuntu包搜索或运行
apt show docker从终端运行docker时收到的错误消息简要介绍了这种混淆。
若要安装所需的对接程序,请参阅正式文件或查看如何在Ubuntu20.04LTS上安装码头社区?
https://askubuntu.com/questions/1297462
复制相似问题