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

Dear Maintainer,

When trying to install docker, if the group "docker" already exists, apt fails
with the following error:

$ sudo apt install docker.io
Reading package lists... Done
Building dependency tree
Reading state information... Done
docker.io is already the newest version (1.8.3~ds1-2).
0 upgraded, 0 newly installed, 0 to remove and 84 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up docker.io (1.8.3~ds1-2) ...
addgroup: The group `docker' already exists as a system group. Exiting.
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.
dpkg: error processing package docker.io (--configure):
 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)

Instead, I would have expected instead apt to ignore the return code of addgroup
and proceed.
Note: Docker was probably already installed in this system and later removed.

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (800, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.5.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages docker.io depends on:
ii  adduser              3.114
ii  init-system-helpers  1.29
ii  iptables             1.6.0-2
ii  libapparmor1         2.10-4
ii  libc6                2.22-7
ii  libdevmapper1.02.1   2:1.02.122-1
ii  libsqlite3-0         3.12.2-1
ii  perl                 5.22.1-10

Versions of packages docker.io recommends:
ii  ca-certificates  20160104
ii  cgroupfs-mount   1.2
ii  git              1:2.8.1-1
ii  xz-utils         5.1.1alpha+20120614-2.1

Versions of packages docker.io suggests:
pn  aufs-tools           <none>
pn  btrfs-tools          <none>
ii  debootstrap          1.0.80
pn  lxc                  <none>
pn  rinse                <none>
pn  zfs-fuse | zfsutils  <none>

-- no debconf information

Reply via email to