can't update omv 2.2.13 because of docker dependecies

  • Hi all,
    I'm trying to update omv 2.2.13 and i'm not having much luck. keeps failing in the gui.
    I did have an issue with docker and thought i removed it successfully about a month ago.
    Any help would be much appreciated.


    So i opened putty and ran
    apt-get -f install, here's the output


    I then ran
    apt-get update, here's the output



    I then ran
    apt-get upgrade, here's the output



    I then ran
    apt-get -f install again with the same message as above

  • I manually removed any docker files in /usr/bin


    then ran
    apt-get -f install
    apt-get update
    apt-get -f install


    still the same.


    I then did something really dumb and removed
    /usr/bin/dpkg


    would running
    sudo aptitude update && sudo aptitude install openmediavault


    do a repair on my system and replace dpkg?
    I'm reluctant to do anything else as i'm in no position to loose the system and spend hours or days (i'm not the best with linux) fixing it.

  • ok i copied the dpkg directory back. updates are still not working.
    It seems i have removed docker and any sign of it, but i'm still not able to update as docker shows in the error log.


  • ok it seems these are the files or directories causing me issue's
    docker-engine
    init-system-helpers
    libapparmor1
    i removed the docker-engine directory.


    can i remove
    init-system-helpers
    libapparmor1


    Or will this kill my setup?

  • could i have a permission issue?
    here's the permissions of
    usr/bin/dpkg
    root@HOME-SERVER:/# ls -l /usr/bin/dpkg
    total 20
    -rw-r--r-- 1 root root 446 Jun 12 2013 dpkg.cfg
    drwxr-xr-x 2 root root 4096 Jul 13 2015 dpkg.cfg.d
    drwxr-xr-x 2 root root 4096 Jun 23 18:13 origins
    -rw-r--r-- 1 root root 260 Nov 27 2014 shlibs.default
    -rw-r--r-- 1 root root 253 Nov 27 2014 shlibs.override

    • Offizieller Beitrag

    You have a mess. You should never delete directories. try: apt-get install --reinstall dpkg

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | 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!

  • i sure have,


    here's the output
    root@HOME-SERVER:~# apt-get install --reinstall dpkg
    Reading package lists... Done
    Building dependency tree
    Reading state information... 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.
    0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 22 not upgraded.
    1 not fully installed or removed.
    Need to get 2,665 kB/30.7 MB of archives.
    After this operation, 0 B of additional disk space will be used.
    Get:1 http://debian.mirror.rafal.ca/debian/ wheezy/main dpkg amd64 1.16.18 [2,665 kB]
    Fetched 2,665 kB in 1s (1,475 kB/s)
    Could not exec dpkg!
    Creating index of upgradeable packages ...
    Creating index of openmediavault plugins ...
    E: Sub-process /usr/bin/dpkg returned an error code (100)

    • Offizieller Beitrag

    sudo wget http://omv-extras.org/testing2/dpkg -O /usr/bin/dpkg
    Then
    apt-get install --reinstall dpkg

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | 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!

    • Offizieller Beitrag

    It shouldn't be.


    Try (as root):


    cd /root
    wget http://omv-extras.org/testing2/dpkg
    cp -f dpkg /usr/bin/
    chmod +x /usr/bin/dpkg

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | 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!

  • output


    root@HOME-SERVER:~# cd /root
    root@HOME-SERVER:~# wget http://omv-extras.org/testing2/dpkg
    --2016-12-22 20:14:28-- http://omv-extras.org/testing2/dpkg
    Resolving omv-extras.org (omv-extras.org)... 178.63.91.237
    Connecting to omv-extras.org (omv-extras.org)|178.63.91.237|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 261664 (256K)
    Saving to: `dpkg'


    100%[======================================>] 261,664 428K/s in 0.6s


    2016-12-22 20:14:29 (428 KB/s) - `dpkg' saved [261664/261664]


    root@HOME-SERVER:~# cp -f dpkg /usr/bin/
    cp: cannot overwrite directory `/usr/bin/dpkg' with non-directory
    root@HOME-SERVER:~# chmod +x /usr/bin/dpkg

    • Offizieller Beitrag

    Don't keep executing commands if one fails.


    ls -al /usr/bin/dpkg
    rm -rfv /usr/bin/dpkg
    cp -f /root/dpkg /usr/bin/

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | 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!

  • ok,


    here's the output


    root@HOME-SERVER:~# ls -al /usr/bin/dpkg
    total 60
    drwxr-xr-x 4 root root 4096 Jun 23 18:14 .
    drwxr-xr-x 3 root root 32768 Dec 18 20:18 ..
    -rw-r--r-- 1 root root 446 Jun 12 2013 dpkg.cfg
    drwxr-xr-x 2 root root 4096 Jul 13 2015 dpkg.cfg.d
    drwxr-xr-x 2 root root 4096 Jun 23 18:13 origins
    -rw-r--r-- 1 root root 260 Nov 27 2014 shlibs.default
    -rw-r--r-- 1 root root 253 Nov 27 2014 shlibs.override


    root@HOME-SERVER:~# m -rfv /usr/bin/dpkg
    -bash: m: command not found

    • Offizieller Beitrag

    apt-get install --reinstall dpkg

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | 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!

  • Same error as before, i really do appreciate your help.


    root@HOME-SERVER:~# apt-get install --reinstall dpkg
    Reading package lists... Done
    Building dependency tree
    Reading state information... 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.
    0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 22 not upgraded.
    1 not fully installed or removed.
    Need to get 0 B/30.7 MB of archives.
    After this operation, 0 B of additional disk space will be used.
    Could not exec dpkg!
    Creating index of upgradeable packages ...
    Creating index of openmediavault plugins ...
    E: Sub-process /usr/bin/dpkg returned an error code (100)



    root@HOME-SERVER:~# ls -ls /usr/bin/dpkg
    256 -rw-r--r-- 1 root root 261664 Dec 22 20:22 /usr/bin/dpkg

    • Offizieller Beitrag

    omv-aptclean

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | 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!

  • root@HOME-SERVER:~# omv-aptclean
    1. Cleaning apt cache files...


    2. Clearing available dpkg packages...
    /usr/sbin/omv-aptclean: 32: /usr/sbin/omv-aptclean: dpkg: Permission denied


    I'm in putty logged in as root.

    • Offizieller Beitrag

    chmod +x /usr/bin/dpkg
    omv-aptclean

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | 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!

Jetzt mitmachen!

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