LINUX.ORG.RU

Ошибки в пакетах.

 ,


0

1

Возникла проблема в пайтонивських пакетах. После выполнения команды sudo apt-get install -f получаю ошибки:

 Processing triggers for libc-bin (2.24-9ubuntu2.2) ...
Errors were encountered while processing:
 python-idna
 python-simplejson
 python-isort
 python-setuptools
 python-lazr.restfulclient
 python-functools32
 .................

 очень много пакетов

 .................

 python-psutil
 python-pyflakes
 python-lazr.uri
 python-enum34
 python-lxml
 python-cairo

Как их исправить?


Ответ на: комментарий от provaton

Вот кусок.

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 processing package python-bs4 (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up python-zope.interface (4.3.2-1) ...
No apport report written because MaxReports is reached already
                                                              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 processing package python-zope.interface (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Setting up python-psutil (5.0.1-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 processing package python-psutil (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Setting up python-pyflakes (1.3.0-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 processing package python-pyflakes (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Setting up python-lazr.uri (1.0.3-2build1) ...
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 processing package python-lazr.uri (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Setting up python-enum34 (1.1.6-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 processing package python-enum34 (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Setting up python-lxml (3.7.3-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 processing package python-lxml (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Setting up python-cairo (1.8.8-2.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 processing package python-cairo (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              dpkg: error processing package apport (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
No apport report written because MaxReports is reached already
                                                              dpkg: too many errors, stopping

bpm
() автор топика
Ответ на: комментарий от bpm

А что ты вообще с ним делал, после чего всё это началось?

InterVi ★★★★★
()
Ответ на: комментарий от bpm

проверь какая версия по-умолчанию

python --version
если 3, то смени на 2
ln -sf python2 /usr/bin/python
и потом доустанавливай пакеты
apt-get install -f

InterVi ★★★★★
()
Ответ на: комментарий от InterVi

Спасибо. Больше ошибок нет.

bpm
() автор топика
8 марта 2018 г.
Ответ на: комментарий от InterVi

Сотню чаёв этому господину! Все интернеты облазил и только его способ сработал =)

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.