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:~#

    • Offizieller Beitrag

    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 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    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)

    • Offizieller Beitrag

    Try:
    rm /var/run/docker-ssd.pid
    apt-get install --reinstall docker-engine

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Sorry for delay, been away for the weekend.... Output:-


  • 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.

  • 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.

    can you give me a step by step on how to do this? I'm having the same issue.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!