Docker uninstall problem

    • OMV 2.x
    • Update
    • Docker uninstall problem

      Unable to complete updates, looking at the logs its related to Docker. Attempted to add docker / uninstall fails as well.
      Would appreciate any guidance on how to overcome this problem. Thanks


      root@OMV:~# apt-get -f install
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Correcting dependencies... Done
      The following packages were automatically installed and are no longer required:
      docker-engine init-system-helpers libapparmor1
      Use 'apt-get autoremove' to remove them.
      The following extra packages will be installed:
      init-system-helpers libapparmor1
      The following NEW packages will be installed:
      init-system-helpers libapparmor1
      0 upgraded, 2 newly installed, 0 to remove and 25 not upgraded.
      1 not fully installed or removed.
      Need to get 0 B/28.1 MB of archives.
      After this operation, 219 kB of additional disk space will be used.
      Do you want to continue [Y/n]? y
      Selecting previously unselected package init-system-helpers.
      (Reading database ... 33507 files and directories currently installed.)
      Unpacking init-system-helpers (from .../init-system-helpers_1.18~bpo70+1_all.deb) ...
      Selecting previously unselected package libapparmor1.
      Unpacking libapparmor1 (from .../libapparmor1_2.7.103-4_amd64.deb) ...
      Processing triggers for man-db ...
      Setting up init-system-helpers (1.18~bpo70+1) ...
      Setting up libapparmor1 (2.7.103-4) ...
      dpkg: error processing docker-engine (--configure):
      Package is in a very bad inconsistent state - you should
      reinstall it before attempting configuration.
      Errors were encountered while processing:
      docker-engine
      Creating index of upgradeable packages ...
      Creating index of openmediavault plugins ...
      E: Sub-process /usr/bin/dpkg returned an error code (1)
      root@OMV:~#

      The post was edited 1 time, last by johnyb ().

    • johnyb wrote:

      Package is in a very bad inconsistent state - you should
      reinstall it before attempting configuration.
      Did you try what it recommended? apt-get install --reinstall docker-engine If that works, then remove it apt-get purge docker-engine
      omv 4.0.11 arrakis | 64 bit | 4.13 backports kernel | omvextrasorg 4.1.0
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!
    • Sadly no that doesnt work, following error.


      root@OMV:~# apt-get install --reinstall docker-engine
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Recommended packages:
      aufs-tools cgroupfs-mount cgroup-lite
      The following packages will be upgraded:
      docker-engine
      1 upgraded, 0 newly installed, 0 to remove and 26 not upgraded.
      1 not fully installed or removed.
      Need to get 0 B/27.8 MB of archives.
      After this operation, 8,868 kB disk space will be freed.
      Selecting previously unselected package docker-engine.
      (Reading database ... 33581 files and directories currently installed.)
      Preparing to replace docker-engine 1.12.1-0~wheezy (using .../docker-engine_17.05.0~ce-0~debian-wheezy_amd64.deb) ...
      Stopping Docker: dockerstart-stop-daemon: warning: failed to kill 2590: No such process
      No process in pidfile '/var/run/docker-ssd.pid' found running; none killed.
      invoke-rc.d: initscript docker, action "stop" failed.
      dpkg: warning: subprocess old pre-removal script returned error exit status 1
      dpkg: trying script from the new package instead ...
      Stopping Docker: dockerstart-stop-daemon: warning: failed to kill 2590: No such process
      No process in pidfile '/var/run/docker-ssd.pid' found running; none killed.
      invoke-rc.d: initscript docker, action "stop" failed.
      dpkg: error processing /var/cache/apt/archives/docker-engine_17.05.0~ce-0~debian-wheezy_amd64.deb (--unpack):
      subprocess new 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:
      /var/cache/apt/archives/docker-engine_17.05.0~ce-0~debian-wheezy_amd64.deb
      Creating index of upgradeable packages ...
      Creating index of openmediavault plugins ...
      E: Sub-process /usr/bin/dpkg returned an error code (1)
    • Sorry for delay, been away for the weekend.... Output:-

      Display Spoiler

      root@OMV:~# apt-get install --reinstall docker-engine
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Recommended packages:
      aufs-tools cgroupfs-mount cgroup-lite
      The following packages will be upgraded:
      docker-engine
      1 upgraded, 0 newly installed, 0 to remove and 27 not upgraded.
      1 not fully installed or removed.
      Need to get 0 B/27.8 MB of archives.
      After this operation, 8,868 kB disk space will be freed.
      (Reading database ... 33581 files and directories currently installed.)
      Preparing to replace docker-engine 1.12.1-0~wheezy (using .../docker-engine_17.05.0~ce-0~debian-wheezy_amd64.deb) ...
      Stopping Docker: dockerNo process in pidfile '/var/run/docker-ssd.pid' found running; none killed.
      invoke-rc.d: initscript docker, action "stop" failed.
      dpkg: warning: subprocess old pre-removal script returned error exit status 1
      dpkg: trying script from the new package instead ...
      Stopping Docker: dockerNo process in pidfile '/var/run/docker-ssd.pid' found running; none killed.
      invoke-rc.d: initscript docker, action "stop" failed.
      dpkg: error processing /var/cache/apt/archives/docker-engine_17.05.0~ce-0~debian-wheezy_amd64.deb (--unpack):
      subprocess new 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:
      /var/cache/apt/archives/docker-engine_17.05.0~ce-0~debian-wheezy_amd64.deb
      Creating index of upgradeable packages ...
      Creating index of openmediavault plugins ...
      E: Sub-process /usr/bin/dpkg returned an error code (1)
    • Solved it...
      You have to create a dummy process like run in another terminal " watch ls / &"
      Get the pid of that process and write it to /var/run/docker-ssd.pid.
      Then re-install docker. That way it will find a process (the dummy one) and it will kill it so it can proceed.

      The post was edited 1 time, last by adid ().