самба Python устанавливает ошибку ImportError: Никакой модуль под названием 'ConfigParser'

Добрый день

Когда я работаю

sudo apt-get upgrade

Существуют проблемы с пакетом самбы Python

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
python-jwt python-samba
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
181 not fully installed or removed.
Need to get 0 B/1 079 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Д/н] Д
(Reading database ... 456409 files and directories currently installed.)
Preparing to unpack .../python-samba_2%3a4.3.11+dfsg-0ubuntu0.16.04.11_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.3.11+dfsg-0ubuntu0.16.04.11_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
Preparing to unpack .../python-jwt_1.3.0-1ubuntu0.1_all.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-jwt_1.3.0-1ubuntu0.1_all.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.3.11+dfsg-0ubuntu0.16.04.11_amd64.deb
 /var/cache/apt/archives/python-jwt_1.3.0-1ubuntu0.1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Удалите и установите пакет, не выходит снова

Я предполагаю, что существует проблема с версией Python

0
задан 28 September 2017 в 18:02

0 ответов

Другие вопросы по тегам:

Похожие вопросы: