Docker Community Forums

Share and learn in the Docker community.

Subprocess installed post-installation script returned error exit status 1

(alexus) #1

I’m using Kali Linux 2017.1 Release | Kali Linux and trying to follow Get Docker CE for Debian | Docker Documentation:

root@kali:~# apt-get install docker-ce
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/20.6 MB of archives.
After this operation, 96.2 MB of additional disk space will be used.
Selecting previously unselected package docker-ce.
(Reading database ... 345318 files and directories currently installed.)
Preparing to unpack .../docker-ce_17.06.1~ce-0~debian_amd64.deb ...
Unpacking docker-ce (17.06.1~ce-0~debian) ...
Setting up docker-ce (17.06.1~ce-0~debian) ...
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; disabled; vendor preset: disabled)
   Active: activating (auto-restart) (Result: exit-code) since Thu 2017-08-31 11:25:18 EDT; 4ms ago
  Process: 20853 ExecStart=/usr/bin/dockerd -H fd:// (code=exited, status=1/FAILURE)
 Main PID: 20853 (code=exited, status=1/FAILURE)
      CPU: 80ms

Aug 31 11:25:18 kali systemd[1]: docker.service: Unit entered failed state.
Aug 31 11:25:18 kali 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
Processing triggers for systemd (234-2.3) ...
Processing triggers for man-db ( ...
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

while starting docker.service, I noticed following error in /var/log/syslog:

Aug 31 15:48:49 kali dockerd[2360]: Error starting daemon: Error initializing network controller: list bridge addresses failed: no available network

Please advise)

(alexus) #2

I found a workaround

root@kali:~# cat /etc/systemd/network/ 


follow by systemctl restart systemd-networkd.service (will disconnect network) and by systemctl start docker.service

(Rtfminc) #3

I’m not exactly sure what it does, but it fixed my problem too, thanks. After I apt-get remove and then apt-get install, there was no problem.