Can't upgrade due to missing python-samba dependencies

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Can't upgrade due to missing python-samba dependencies

      Hi everyone,

      I've been strugling for the past week with one of my NAS running OMV 4 being unable to upgrade packets anymore (while my second one did not have any issue). Everything I tried failed and the following actions always fail currently :
      - Trying to upgrade via OMV GUI or CLI withapt-get upgrade or apt upgrade
      - Trying to install/remove packets via the GUI or CLI

      When I try to upgrade via the CLI, I get the following messages :

      Source Code

      1. apt update
      2. Get:1 file:/var/cache/openmediavault/archives InRelease
      3. Ign:1 file:/var/cache/openmediavault/archives InRelease
      4. Get:2 file:/var/cache/openmediavault/archives Release
      5. Ign:2 file:/var/cache/openmediavault/archives Release
      6. Get:3 file:/var/cache/openmediavault/archives Packages
      7. Ign:3 file:/var/cache/openmediavault/archives Packages
      8. Get:4 file:/var/cache/openmediavault/archives Translation-en
      9. Ign:4 file:/var/cache/openmediavault/archives Translation-en
      10. Get:5 file:/var/cache/openmediavault/archives Translation-fr
      11. Ign:5 file:/var/cache/openmediavault/archives Translation-fr
      12. Get:3 file:/var/cache/openmediavault/archives Packages
      13. Ign:3 file:/var/cache/openmediavault/archives Packages
      14. Get:4 file:/var/cache/openmediavault/archives Translation-en
      15. Ign:4 file:/var/cache/openmediavault/archives Translation-en
      16. Get:5 file:/var/cache/openmediavault/archives Translation-fr
      17. Ign:5 file:/var/cache/openmediavault/archives Translation-fr
      18. Get:3 file:/var/cache/openmediavault/archives Packages
      19. Ign:3 file:/var/cache/openmediavault/archives Packages
      20. Get:4 file:/var/cache/openmediavault/archives Translation-en
      21. Ign:4 file:/var/cache/openmediavault/archives Translation-en
      22. Get:5 file:/var/cache/openmediavault/archives Translation-fr
      23. Ign:5 file:/var/cache/openmediavault/archives Translation-fr
      24. Get:3 file:/var/cache/openmediavault/archives Packages
      25. Ign:3 file:/var/cache/openmediavault/archives Packages
      26. Get:4 file:/var/cache/openmediavault/archives Translation-en
      27. Ign:4 file:/var/cache/openmediavault/archives Translation-en
      28. Get:5 file:/var/cache/openmediavault/archives Translation-fr
      29. Ign:5 file:/var/cache/openmediavault/archives Translation-fr
      30. Get:3 file:/var/cache/openmediavault/archives Packages
      31. Ign:3 file:/var/cache/openmediavault/archives Packages
      32. Get:4 file:/var/cache/openmediavault/archives Translation-en
      33. Ign:4 file:/var/cache/openmediavault/archives Translation-en
      34. Get:5 file:/var/cache/openmediavault/archives Translation-fr
      35. Ign:5 file:/var/cache/openmediavault/archives Translation-fr
      36. Get:3 file:/var/cache/openmediavault/archives Packages
      37. Get:4 file:/var/cache/openmediavault/archives Translation-en
      38. Ign:4 file:/var/cache/openmediavault/archives Translation-en
      39. Get:5 file:/var/cache/openmediavault/archives Translation-fr
      40. Ign:5 file:/var/cache/openmediavault/archives Translation-fr
      41. Ign:6 stretch InRelease
      42. Hit:7 stretch-updates InRelease
      43. Hit:8 stretch-backports InRelease
      44. Hit:9 stretch/updates InRelease
      45. Hit:10 arrakis InRelease
      46. Ign:11 sarge InRelease
      47. Hit:12 stretch Release
      48. Hit:13 arrakis InRelease
      49. Hit:14 stretch InRelease
      50. Hit:15 sarge Release
      51. Hit:16 ./public InRelease
      52. Ign:17 stretch InRelease
      53. Ign:18 stretch InRelease
      54. Ign:19 stretch InRelease
      55. Get:20 stretch Release [4389 B]
      56. Hit:20 stretch Release
      57. Hit:21 stretch-backports InRelease
      58. Get:22 stretch Release [3540 B]
      59. Hit:22 stretch Release
      60. Ign:23 sarge InRelease
      61. Get:25 stretch Release [3540 B]
      62. Hit:25 stretch Release
      63. Hit:27 sarge Release
      64. Reading package lists... Done
      65. Building dependency tree
      66. Reading state information... Done
      67. 4 packages can be upgraded. Run 'apt list --upgradable' to see them.
      Display All

      I then try apt upgrade :

      Source Code

      1. apt upgrade
      2. Reading package lists... Done
      3. Building dependency tree
      4. Reading state information... Done
      5. You might want to run 'apt --fix-broken install' to correct these.
      6. The following packages have unmet dependencies:
      7. python-samba : Depends: libwbclient0 (= 2:4.5.12+dfsg-2+deb9u4) but 2:4.5.16+dfsg-1 is installed
      8. Depends: samba-libs (= 2:4.5.12+dfsg-2+deb9u4) but 2:4.5.16+dfsg-1 is installed
      9. E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

      As recommended, I try "apt --fix-broken install" :


      1. apt --fix-broken install
      2. Reading package lists... Done
      3. Building dependency tree
      4. Reading state information... Done
      5. Correcting dependencies... Done
      6. The following additional packages will be installed:
      7. python-dnspython python-samba
      8. Suggested packages:
      9. python-gpgme
      10. The following packages will be upgraded:
      11. python-dnspython python-samba
      12. 2 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
      13. 4 not fully installed or removed.
      14. Need to get 1464 kB of archives.
      15. After this operation, 4096 B of additional disk space will be used.
      16. Do you want to continue? [Y/n] y
      17. Get:1 stretch/main amd64 python-dnspython all 1.15.0-1+deb9u1 [102 kB]
      18. Get:2 stretch/main amd64 python-samba amd64 2:4.5.16+dfsg-1 [1362 kB]
      19. Fetched 1464 kB in 0s (8215 kB/s)
      20. apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!
      21. Reading changelogs... Done
      22. perl: warning: Setting locale failed.
      23. perl: warning: Please check that your locale settings:
      24. LANGUAGE = (unset),
      25. LC_ALL = (unset),
      26. LANG = "fr_FR.UTF-8"
      27. are supported and installed on your system.
      28. perl: warning: Falling back to the standard locale ("C").
      29. locale: Cannot set LC_CTYPE to default locale: No such file or directory
      30. locale: Cannot set LC_MESSAGES to default locale: No such file or directory
      31. locale: Cannot set LC_ALL to default locale: No such file or directory
      32. (Reading database ... 111426 files and directories currently installed.)
      33. Preparing to unpack .../python-dnspython_1.15.0-1+deb9u1_all.deb ...
      34. File "/usr/bin/pyclean", line 63
      35. except (IOError, OSError), e:
      36. ^
      37. SyntaxError: invalid syntax
      38. dpkg: warning: subprocess old pre-removal script returned error exit status 1
      39. dpkg: trying script from the new package instead ...
      40. File "/usr/bin/pyclean", line 63
      41. except (IOError, OSError), e:
      42. ^
      43. SyntaxError: invalid syntax
      44. dpkg: error processing archive /var/cache/apt/archives/python-dnspython_1.15.0-1+deb9u1_all.deb (--unpack):
      45. subprocess new pre-removal script returned error exit status 1
      46. Traceback (most recent call last):
      47. File "/usr/bin/pycompile", line 35, in <module>
      48. from debpython.version import SUPPORTED, debsorted, vrepr, \
      49. File "/usr/share/python/debpython/", line 24, in <module>
      50. from ConfigParser import SafeConfigParser
      51. ImportError: No module named 'ConfigParser'
      52. dpkg: error while cleaning up:
      53. subprocess installed post-installation script returned error exit status 1
      54. Preparing to unpack .../python-samba_2%3a4.5.16+dfsg-1_amd64.deb ...
      55. File "/usr/bin/pyclean", line 63
      56. except (IOError, OSError), e:
      57. ^
      58. SyntaxError: invalid syntax
      59. dpkg: warning: subprocess old pre-removal script returned error exit status 1
      60. dpkg: trying script from the new package instead ...
      61. File "/usr/bin/pyclean", line 63
      62. except (IOError, OSError), e:
      63. ^
      64. SyntaxError: invalid syntax
      65. dpkg: error processing archive /var/cache/apt/archives/python-samba_2%3a4.5.16+dfsg-1_amd64.deb (--unpack):
      66. subprocess new pre-removal script returned error exit status 1
      67. Traceback (most recent call last):
      68. File "/usr/bin/pycompile", line 35, in <module>
      69. from debpython.version import SUPPORTED, debsorted, vrepr, \
      70. File "/usr/share/python/debpython/", line 24, in <module>
      71. from ConfigParser import SafeConfigParser
      72. ImportError: No module named 'ConfigParser'
      73. dpkg: error while cleaning up:
      74. subprocess installed post-installation script returned error exit status 1
      75. Errors were encountered while processing:
      76. /var/cache/apt/archives/python-dnspython_1.15.0-1+deb9u1_all.deb
      77. /var/cache/apt/archives/python-samba_2%3a4.5.16+dfsg-1_amd64.deb
      78. E: Sub-process /usr/bin/dpkg returned an error code (1)
      Display All
      (nevermind the language error, i changed it just to get english error messages to post here, but the overall error was the same before i changed anything).

      It appears something is wrong with python-samba and python-dnspython.

      I have tried apt clear and other advices i got on a french forum ( if you wanna check out) but nothing worked and I feel stucked :( . I have a dd backup before the error appeared, but I wonder if something could be fixed without using it or if there's no workaround ?

      Do you guys have any suggestions I could try ?

      Thanks !
    • You mixed up the OMV/Debian package repository and the webmin repository which is not supported. This crashed your installation.
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit