apt-get update get error about python

    • OMV 1.0
    • apt-get update get error about python

      I installed OMV 1.0.29 and I also need install webmin.So I download webmin for debian and install webmin need package by apt-get.But it's will get error message when I installed webmin.
      ERROR:root:code for hash md5 was not found.
      Traceback (most recent call last):
      File "/usr/lib/python3.2/hashlib.py", line 141, in <module>
      globals()[__func_name] = __get_hash(__func_name)
      File "/usr/lib/python3.2/hashlib.py", line 91, in __get_builtin_constructor
      raise ValueError('unsupported hash type ' + name)
      ValueError: unsupported hash type md5
      ERROR:root:code for hash sha1 was not found.
      Traceback (most recent call last):
      File "/usr/lib/python3.2/hashlib.py", line 141, in <module>
      globals()[__func_name] = __get_hash(__func_name)
      File "/usr/lib/python3.2/hashlib.py", line 91, in __get_builtin_constructor
      raise ValueError('unsupported hash type ' + name)
      ValueError: unsupported hash type sha1
      ERROR:root:code for hash sha224 was not found.
      Traceback (most recent call last):
      File "/usr/lib/python3.2/hashlib.py", line 141, in <module>
      globals()[__func_name] = __get_hash(__func_name)
      File "/usr/lib/python3.2/hashlib.py", line 91, in __get_builtin_constructor
      raise ValueError('unsupported hash type ' + name)
      ValueError: unsupported hash type sha224
      ERROR:root:code for hash sha256 was not found.
      Traceback (most recent call last):
      File "/usr/lib/python3.2/hashlib.py", line 141, in <module>
      globals()[__func_name] = __get_hash(__func_name)
      File "/usr/lib/python3.2/hashlib.py", line 91, in __get_builtin_constructor
      raise ValueError('unsupported hash type ' + name)
      ValueError: unsupported hash type sha256
      ERROR:root:code for hash sha384 was not found.
      Traceback (most recent call last):
      File "/usr/lib/python3.2/hashlib.py", line 141, in <module>
      globals()[__func_name] = __get_hash(__func_name)
      File "/usr/lib/python3.2/hashlib.py", line 91, in __get_builtin_constructor
      raise ValueError('unsupported hash type ' + name)
      ValueError: unsupported hash type sha384
      ERROR:root:code for hash sha512 was not found.
      Traceback (most recent call last):
      File "/usr/lib/python3.2/hashlib.py", line 141, in <module>
      globals()[__func_name] = __get_hash(__func_name)
      File "/usr/lib/python3.2/hashlib.py", line 91, in __get_builtin_constructor
      raise ValueError('unsupported hash type ' + name)
      ValueError: unsupported hash type sha512
      Traceback (most recent call last):
      File "/usr/sbin/omv-mkaptidx", line 23, in <module>
      import apt
      File "/usr/lib/python3/dist-packages/apt/__init__.py", line 24, in <module>
      from apt.package import Package
      File "/usr/lib/python3/dist-packages/apt/package.py", line 22, in <module>
      import http.client
      File "/usr/lib/python3.2/http/client.py", line 69, in <module>
      import email.parser
      File "/usr/lib/python3.2/email/parser.py", line 12, in <module>
      from email.feedparser import FeedParser
      File "/usr/lib/python3.2/email/feedparser.py", line 27, in <module>
      from email import message
      File "/usr/lib/python3.2/email/message.py", line 17, in <module>
      from email import utils
      File "/usr/lib/python3.2/email/utils.py", line 27, in <module>
      import random
      File "/usr/lib/python3.2/random.py", line 45, in <module>
      from hashlib import sha512 as _sha512
      ImportError: cannot import name sha512
      Reading package lists... Done


      I have check new install OMV.The python is used python 3.2.What is this problem and how to fix it?
    • I think you should better ask this in the webmin forum.
      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