Update Hangs - Maybe Python Package

    • OMV 4.x
    • Resolved
    • Update
    • Update Hangs - Maybe Python Package

      Why might Python not be extracting?



      Hit:31 apt.syncthing.net syncthing InRelease
      Hit:5 cdn-fastly.deb.debian.org/debian stretch-backports InRelease
      Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x7f60aa2ff6a8>
      Traceback (most recent call last):
      File "/usr/lib/python3.5/weakref.py", line 117, in remove
      TypeError: 'NoneType' object is not callable
      Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x7f60aa2ff6a8>
      Traceback (most recent call last):
      File "/usr/lib/python3.5/weakref.py", line 117, in remove
      TypeError: 'NoneType' object is not callable
      Reading package lists...
      Reading package lists...
      Building dependency tree...
      Reading state information...
      You might want to run 'apt --fix-broken install' to correct these.
      The following packages have unmet dependencies:





      root@OMVi3:~# apt --fix-broken install -y
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Correcting dependencies... Done
      The following additional packages will be installed:
      python-samba
      Suggested packages:
      python-gpgme
      The following packages will be upgraded:
      python-samba
      1 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
      7 not fully installed or removed.
      Need to get 0 B/1,364 kB of archives.
      After this operation, 0 B of additional disk space will be used.
      (Reading database ... 49618 files and directories currently installed.)
      Preparing to unpack .../python-samba_2%3a4.5.12+dfsg-2+deb9u3_amd64.deb ...
      File "/usr/bin/pyclean", line 63
      except (IOError, OSError), e:
      ^
      SyntaxError: invalid syntax
      dpkg: warning: subprocess old pre-removal script returned error exit status 1
      dpkg: trying script from the new package instead ...
      File "/usr/bin/pyclean", line 63
      except (IOError, OSError), e:
      ^
      SyntaxError: invalid syntax
      dpkg: error processing archive /var/cache/apt/archives/python-samba_2%3a4.5.12+dfsg-2+deb9u3_amd64.deb (--unpack):
      subprocess new pre-removal script returned error exit status 1
      Traceback (most recent call last):
      File "/usr/bin/pycompile", line 35, in <module>
      from debpython.version import SUPPORTED, debsorted, vrepr, \
      File "/usr/share/python/debpython/version.py", line 24, in <module>
      from ConfigParser import SafeConfigParser
      ImportError: No module named 'ConfigParser'
      dpkg: error while cleaning up:
      subprocess installed post-installation script returned error exit status 1
      Errors were encountered while processing:
      /var/cache/apt/archives/python-samba_2%3a4.5.12+dfsg-2+deb9u3_amd64.deb
      Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x7ff0dcf58510>
      Traceback (most recent call last):
      File "/usr/lib/python3.5/weakref.py", line 117, in remove
      TypeError: 'NoneType' object is not callable
      Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x7ff0dcf58510>
      Traceback (most recent call last):
      File "/usr/lib/python3.5/weakref.py", line 117, in remove
      TypeError: 'NoneType' object is not callable
      E: Sub-process /usr/bin/dpkg returned an error code (1)
      root@OMVi3:~# python --version
      Python 3.5.3
      root@OMVi3:~#
      OMV 4.x on intel
    • The weakref.py error isn't causing this. Maybe your package didn't download correctly. I would

      apt-get clean
      apt-get -f install
      omv 4.1.14 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • Seemed to let me install python 3

      BUT:

      apt-get update — now I get:
      …Hit:11 cdn-fastly.deb.debian.org/debian stretch-backports InRelease
      Reading package lists... Done
      E: The method driver /usr/lib/apt/methods/https could not be found.
      N: Is the package apt-transport-https installed?
      E: Failed to fetch openmediavault.github.io/packages/dists/arrakis/InRelease
      E: Some index files failed to download. They have been ignored, or old ones used instead.

      Also getting:
      root@OMVi3:~# apt --fix-broken install -y
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Correcting dependencies... Done
      The following additional packages will be installed:
      libldb1 libpython2.7 libtalloc2 libtdb1 libtevent0 rsync
      The following packages will be REMOVED:
      python-samba
      The following NEW packages will be installed:
      libldb1 libpython2.7 libtalloc2 libtdb1 libtevent0 rsync
      0 upgraded, 6 newly installed, 1 to remove and 5 not upgraded.
      5 not fully installed or removed.
      Need to get 1,687 kB of archives.
      After this operation, 4,266 kB disk space will be freed.
      Get:1 ftp.us.debian.org/debian stretch/main amd64 libtalloc2 amd64 2.1.8-1 [36.3 kB]
      Get:2 ftp.us.debian.org/debian stretch/main amd64 libtdb1 amd64 1.3.11-2 [43.2 kB]
      Get:3 ftp.us.debian.org/debian stretch/main amd64 libtevent0 amd64 0.9.31-1 [29.3 kB]
      Get:4 ftp.us.debian.org/debian stretch/main amd64 libldb1 amd64 2:1.1.27-1+b1 [114 kB]
      Get:5 ftp.us.debian.org/debian stretch/main amd64 libpython2.7 amd64 2.7.13-2+deb9u2 [1,072 kB]
      Get:6 ftp.us.debian.org/debian stretch/main amd64 rsync amd64 3.1.2-1+deb9u1 [393 kB]
      Fetched 1,687 kB in 1s (1,355 kB/s)
      dpkg: error processing package python-samba (--remove):
      package is in a very bad inconsistent state; you should
      reinstall it before attempting a removal
      Errors were encountered while processing:
      python-samba
      E: Sub-process /usr/bin/dpkg returned an error code (1)
      OMV 4.x on intel
    • Something changed in DNS. DNS sort of worked so it was not a straightforward diagnoses. Sadly I hosed my install trying to fix this; each fix taking a bite out of a good solid install, till it was not.
      Ended up reinstalling OS. Which did not fix my DNS issue. The fresh install did make it apparent that something else was wrong.
      OMV 4.x on intel