我已经运行了十多年的复式meida服务器。在那十年里,我结婚了,买了房子,生了3个孩子,所以由于时间不够,我从来没有从16.04升级到18.04。最近,我原来持有操作系统的SDD终于退出了。我给了它一个适当的纪念,现在我的妻子和孩子都迷上了它,得到了升级的许可。游戏时间。所以我买了一个新的500 to的SSD,我从16 to的Sata raid升级到16 to的SAS Raid (买了控制器和驱动器)。一切都进行得很好,sas卡工作得很好,没有问题。我的问题是我对20.04和工作方式的新鲜感。从我的16.04知识,我做了正常的
sudo apt install docker所有的设备都没有问题。太棒了。接下来,我所做的逻辑就是通过键入以下内容来检查程序的状态:
sudo systemctl status docker我得到了错误
tmataraza@plexstorage:~$ 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 0 not upgraded.
Need to get 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
Get:1 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 wmdocker amd64 1.5-2 [13.0 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 docker all 1.5-2 [1,316 B]
Fetched 14.3 kB in 0s (38.1 kB/s)
Selecting previously unselected package wmdocker.
(Reading database ... 71232 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) ...
tmataraza@plexstorage:~$ apt-cache policy docker
docker:
Installed: 1.5-2
Candidate: 1.5-2
Version table:
*** 1.5-2 500
500 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
100 /var/lib/dpkg/status
tmataraza@plexstorage:~$ sudo systemctl status docker
Unit docker.service could not be found.所以我毫无头绪。如果我试图再次安装,我已经安装了码头,但如果我试图检查它是否运行,它说没有可用的服务。我搜索了网站和这个网站,我找不到关于这个主题的任何东西。我在16.04很流利,但很显然,我将再次成为一个新的20.04。出于好奇,我在复合网上尝试了同样的过程。安装上所有的东西都在运行,因为我可以直接到达I.P并配置我的服务器,但是,当我执行status命令时,我得到
tmataraza@plexstorage:~$ sudo systemctl status plexmediaserver
Unit plexmediaserver.service could not be found.愚笨。我遗漏了什么??而且,这可能是愚蠢的新手疏忽,所以不要退缩。LOL
发布于 2021-02-05 13:27:09
你安装了错误的软件包。尝试:
sudo apt install docker.io
发布于 2021-02-05 04:37:20
这是意料之中的。您安装了KDE3 3/Gnome2 2 2应用系统托盘,而不是容器引擎。
要安装容器引擎Docker,您需要这样做:
apt HTTPS先决条件(如果它们尚未安装):sudo apt安装apt-transport ca-证书curl软件-properties-公共apt:sudo apt更新一旦所有这些都说了又做了,你就应该能够做到这一点:
$ sudo service docker status这将(希望)给你这样的东西:
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2021-01-29 01:28:31 JST; 1 weeks 0 days ago
TriggeredBy: ● docker.socket
Docs: https://docs.docker.com
Main PID: 1724 (dockerd)
Tasks: 13
Memory: 39.6M
CGroup: /system.slice/docker.service
└─1724 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock希望这能有所帮助
https://askubuntu.com/questions/1313768
复制相似问题