我正在Debian上安装docker,内核:4.15.0-rc3+
,遵循官方教程:
https://docs.docker.com/install/linux/docker-ce/debian/
但是,在输入最终命令时,我收到错误(找到下面的错误)。我怀疑问题在于aufs-tools,但我不知道如何修复它。我究竟能做些什么来调试/修复这个问题?
apt install docker-ce
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
aufs-dkms aufs-tools cgroupfs-mount dkms linux-headers-amd64 pigz
Suggested packages:
aufs-dev python3-apport menu
The following NEW packages will be installed:
aufs-dkms aufs-tools cgroupfs-mount dkms docker-ce linux-headers-amd64 pigz
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/34.2 MB of archives.
After this operation, 183 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Selecting previously unselected package pigz.
(Reading database ... 141411 files and directories currently installed.)
Preparing to unpack .../0-pigz_2.3.4-1_amd64.deb ...
Unpacking pigz (2.3.4-1) ...
Selecting previously unselected package dkms.
Preparing to unpack .../1-dkms_2.3-2_all.deb ...
Unpacking dkms (2.3-2) ...
Selecting previously unselected package aufs-dkms.
Preparing to unpack .../2-aufs-dkms_4.9+20161219-1_amd64.deb ...
Unpacking aufs-dkms (4.9+20161219-1) ...
Selecting previously unselected package aufs-tools.
Preparing to unpack .../3-aufs-tools_1%3a4.1+20161219-1_amd64.deb ...
Unpacking aufs-tools (1:4.1+20161219-1) ...
Selecting previously unselected package cgroupfs-mount.
Preparing to unpack .../4-cgroupfs-mount_1.3_all.deb ...
Unpacking cgroupfs-mount (1.3) ...
Selecting previously unselected package docker-ce.
Preparing to unpack .../5-docker-ce_18.03.1~ce-0~debian_amd64.deb ...
Unpacking docker-ce (18.03.1~ce-0~debian) ...
Selecting previously unselected package linux-headers-amd64.
Preparing to unpack .../6-linux-headers-amd64_4.9+80+deb9u4_amd64.deb ...
Unpacking linux-headers-amd64 (4.9+80+deb9u4) ...
Setting up aufs-tools (1:4.1+20161219-1) ...
Setting up docker-ce (18.03.1~ce-0~debian) ...
Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /lib/systemd/system/docker.service.
Created symlink /etc/systemd/system/sockets.target.wants/docker.socket → /lib/systemd/system/docker.socket.
Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xe" for details.
invoke-rc.d: initscript docker, action "start" failed.
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Wed 2018-06-06 22:47:12 CEST; 5ms ago
Docs: https://docs.docker.com
Process: 60308 ExecStart=/usr/bin/dockerd -H fd:// (code=exited, status=1/FAILURE)
Main PID: 60308 (code=exited, status=1/FAILURE)
CPU: 78ms
Jun 06 22:47:12 sev systemd[1]: docker.service: Unit entered failed state.
Jun 06 22:47:12 sev systemd[1]: docker.service: Failed with result 'exit-code'.
dpkg: error processing package docker-ce (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up linux-headers-amd64 (4.9+80+deb9u4) ...
Setting up cgroupfs-mount (1.3) ...
Setting up dkms (2.3-2) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Processing triggers for systemd (232-25+deb9u3) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up pigz (2.3.4-1) ...
Setting up aufs-dkms (4.9+20161219-1) ...
Loading new aufs-4.9+20161219 DKMS files...
dpkg: warning: version '4.13.0-rc1+
4.15.0' has bad syntax: invalid character in revision number
dpkg: warning: version '4.13.0-rc1+
4.15.0' has bad syntax: invalid character in revision number
Building for 4.15.0-rc3+
Building initial module for 4.15.0-rc3+
Error! The dkms.conf for this module includes a BUILD_EXCLUSIVE directive which
does not match this kernel/arch. This indicates that it should not be built.
Skipped.
Errors were encountered while processing:
docker-ce
E: Sub-process /usr/bin/dpkg returned an error code (1)