Source: docker.io
Version: 1.8.3~ds1-2
Severity: normal

After (unsuccessfully) trying to play around with docker, I wanted to remove it
but since the docker daemon was not running due to another problem, the prem
script failed:

The following packages will be REMOVED:
  docker.io*
0 upgraded, 0 newly installed, 1 to remove and 2 not upgraded.
After this operation, 30.1 MB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 267579 files and directories currently installed.)
Removing docker.io (1.8.3~ds1-2) ...
[....] Stopping Docker: dockerstart-stop-daemon: warning: failed to kill 13578:
No such process
1 pids were not killed
No process in pidfile '/var/run/docker-ssd.pid' found running; none killed.
invoke-rc.d: initscript docker, action "stop" failed.
dpkg: error processing package docker.io (--purge):
 subprocess installed pre-removal script returned error exit status 1
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 docker.io
E: Sub-process /usr/bin/dpkg returned an error code (1)

The easiest solution for me to get rid of the package was to change the lines

# Automatically added by dh_installinit
if [ -x "/etc/init.d/docker" ] && [ "$1" = remove ]; then
        invoke-rc.d docker stop || exit $?
fi

in /var/lib/dpkg/info/docker.io.prerm so that it won't exit with an error if
the initscript fails to stop docker. Even then, /var/lib/docker and /etc/docker
were still present after _purging_ the package.

I would expect an initscript to react gracefully on a stop command if the
daemon is not running or at least I would expect the maintainer scripts to do
so.



-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (500, 'oldstable'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.3.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Reply via email to