j'ai une petite misère, un peu handicapante, mon apt est bloqué par des paquets python
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
python3-apt python3-celery python3-django python3-django-celery python3-pkg-resources python3-tz
Suggested packages:
python3-apt-dbg python-apt-doc python-celery-doc python3-redis python3-sqlalchemy bpython3 geoip-database-contrib gettext ipython3 libgdal1 python-django-doc python3-bcrypt python3-flup python3-mysqldb python3-pil python3-psycopg2
python3-sqlite python3-yaml python3-setuptools
Recommended packages:
python3-sqlparse
The following packages will be upgraded:
python3-apt python3-celery python3-django python3-django-celery python3-pkg-resources python3-tz
6 upgraded, 0 newly installed, 0 to remove and 119 not upgraded.
7 not fully installed or removed.
Need to get 0 B/1,629 kB of archives.
After this operation, 12.3 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Traceback (most recent call last):
File "/usr/bin/apt-listchanges", line 37, in <module>
import apt_listchanges, DebianFiles, ALCApt, ALCConfig, ALCSeenDb
File "/usr/share/apt-listchanges/ALCApt.py", line 30, in <module>
import ALCConfig
File "/usr/share/apt-listchanges/ALCConfig.py", line 26, in <module>
import configparser
File "/usr/lib/python2.7/dist-packages/configparser.py", line 397
_KEYCRE = re.compile(ur"%\(([^)]+)\)s")
^
SyntaxError: invalid syntax
(Reading database ... 150843 files and directories currently installed.)
Preparing to unpack .../0-python3-django_1%3a1.10.7-2+deb9u1_all.deb ...
Traceback (most recent call last):........................................................................................................................................................................................................]
File "/usr/bin/py3clean", line 33, in <module>
from debpython.interpreter import Interpreter
File "/usr/share/python3/debpython/interpreter.py", line 26, in <module>
from debpython.version import Version
File "/usr/share/python3/debpython/version.py", line 26, in <module>
from configparser import ConfigParser
File "/usr/lib/python2.7/dist-packages/configparser.py", line 397
_KEYCRE = re.compile(ur"%\(([^)]+)\)s")
^
SyntaxError: invalid syntax
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
Traceback (most recent call last):
File "/usr/bin/py3clean", line 33, in <module>
from debpython.interpreter import Interpreter
File "/usr/share/python3/debpython/interpreter.py", line 26, in <module>
from debpython.version import Version
File "/usr/share/python3/debpython/version.py", line 26, in <module>
from configparser import ConfigParser
File "/usr/lib/python2.7/dist-packages/configparser.py", line 397
_KEYCRE = re.compile(ur"%\(([^)]+)\)s")
^
SyntaxError: invalid syntax
dpkg: error processing archive /tmp/apt-dpkg-install-Y2fs4G/0-python3-django_1%3a1.10.7-2+deb9u1_all.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
Traceback (most recent call last):
File "/usr/bin/py3compile", line 34, in <module>
from debpython.version import SUPPORTED, debsorted, vrepr, \
File "/usr/share/python3/debpython/version.py", line 26, in <module>
from configparser import ConfigParser
File "/usr/lib/python2.7/dist-packages/configparser.py", line 397
_KEYCRE = re.compile(ur"%\(([^)]+)\)s")
^
SyntaxError: invalid syntax
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Preparing to unpack .../1-python3-apt_1.4.0~beta3_amd64.deb ...
Traceback (most recent call last):
File "/usr/bin/py3clean", line 33, in <module>
from debpython.interpreter import Interpreter
File "/usr/share/python3/debpython/interpreter.py", line 26, in <module>
from debpython.version import Version
File "/usr/share/python3/debpython/version.py", line 26, in <module>
from configparser import ConfigParser
File "/usr/lib/python2.7/dist-packages/configparser.py", line 397
_KEYCRE = re.compile(ur"%\(([^)]+)\)s")
^
SyntaxError: invalid syntax
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
Traceback (most recent call last):
File "/usr/bin/py3clean", line 33, in <module>
from debpython.interpreter import Interpreter
File "/usr/share/python3/debpython/interpreter.py", line 26, in <module>
from debpython.version import Version
File "/usr/share/python3/debpython/version.py", line 26, in <module>
from configparser import ConfigParser
File "/usr/lib/python2.7/dist-packages/configparser.py", line 397
_KEYCRE = re.compile(ur"%\(([^)]+)\)s")
^
SyntaxError: invalid syntax
dpkg: error processing archive /tmp/apt-dpkg-install-Y2fs4G/1-python3-apt_1.4.0~beta3_amd64.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
Traceback (most recent call last):
File "/usr/bin/py3compile", line 34, in <module>
from debpython.version import SUPPORTED, debsorted, vrepr, \
File "/usr/share/python3/debpython/version.py", line 26, in <module>
from configparser import ConfigParser
File "/usr/lib/python2.7/dist-packages/configparser.py", line 397
_KEYCRE = re.compile(ur"%\(([^)]+)\)s")
^
SyntaxError: invalid syntax
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Preparing to unpack .../2-python3-pkg-resources_33.1.1-1_all.deb ...
Traceback (most recent call last):
File "/usr/bin/py3clean", line 33, in <module>
from debpython.interpreter import Interpreter
File "/usr/share/python3/debpython/interpreter.py", line 26, in <module>
from debpython.version import Version
File "/usr/share/python3/debpython/version.py", line 26, in <module>
from configparser import ConfigParser
File "/usr/lib/python2.7/dist-packages/configparser.py", line 397
_KEYCRE = re.compile(ur"%\(([^)]+)\)s")
^
SyntaxError: invalid syntax
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
Traceback (most recent call last):
File "/usr/bin/py3clean", line 33, in <module>
from debpython.interpreter import Interpreter
File "/usr/share/python3/debpython/interpreter.py", line 26, in <module>
from debpython.version import Version
File "/usr/share/python3/debpython/version.py", line 26, in <module>
from configparser import ConfigParser
File "/usr/lib/python2.7/dist-packages/configparser.py", line 397
_KEYCRE = re.compile(ur"%\(([^)]+)\)s")
^
SyntaxError: invalid syntax
dpkg: error processing archive /tmp/apt-dpkg-install-Y2fs4G/2-python3-pkg-resources_33.1.1-1_all.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
Traceback (most recent call last):
File "/usr/bin/py3compile", line 34, in <module>
from debpython.version import SUPPORTED, debsorted, vrepr, \
File "/usr/share/python3/debpython/version.py", line 26, in <module>
from configparser import ConfigParser
File "/usr/lib/python2.7/dist-packages/configparser.py", line 397
_KEYCRE = re.compile(ur"%\(([^)]+)\)s")
^
SyntaxError: invalid syntax
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Preparing to unpack .../3-python3-tz_2016.7-0.3_all.deb ...
Traceback (most recent call last):
File "/usr/bin/py3clean", line 33, in <module>
from debpython.interpreter import Interpreter
File "/usr/share/python3/debpython/interpreter.py", line 26, in <module>
from debpython.version import Version
File "/usr/share/python3/debpython/version.py", line 26, in <module>
from configparser import ConfigParser
File "/usr/lib/python2.7/dist-packages/configparser.py", line 397
_KEYCRE = re.compile(ur"%\(([^)]+)\)s")
^
SyntaxError: invalid syntax
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
Traceback (most recent call last):
File "/usr/bin/py3clean", line 33, in <module>
from debpython.interpreter import Interpreter
File "/usr/share/python3/debpython/interpreter.py", line 26, in <module>
from debpython.version import Version
File "/usr/share/python3/debpython/version.py", line 26, in <module>
from configparser import ConfigParser
File "/usr/lib/python2.7/dist-packages/configparser.py", line 397
_KEYCRE = re.compile(ur"%\(([^)]+)\)s")
^
SyntaxError: invalid syntax
dpkg: error processing archive /tmp/apt-dpkg-install-Y2fs4G/3-python3-tz_2016.7-0.3_all.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
Traceback (most recent call last):
File "/usr/bin/py3compile", line 34, in <module>
from debpython.version import SUPPORTED, debsorted, vrepr, \
File "/usr/share/python3/debpython/version.py", line 26, in <module>
from configparser import ConfigParser
File "/usr/lib/python2.7/dist-packages/configparser.py", line 397
_KEYCRE = re.compile(ur"%\(([^)]+)\)s")
^
SyntaxError: invalid syntax
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Preparing to unpack .../4-python3-celery_3.1.23-7_all.deb ...
Traceback (most recent call last):
File "/usr/bin/py3clean", line 33, in <module>
from debpython.interpreter import Interpreter
File "/usr/share/python3/debpython/interpreter.py", line 26, in <module>
from debpython.version import Version
File "/usr/share/python3/debpython/version.py", line 26, in <module>
from configparser import ConfigParser
File "/usr/lib/python2.7/dist-packages/configparser.py", line 397
_KEYCRE = re.compile(ur"%\(([^)]+)\)s")
^
SyntaxError: invalid syntax
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
Traceback (most recent call last):
File "/usr/bin/py3clean", line 33, in <module>
from debpython.interpreter import Interpreter
File "/usr/share/python3/debpython/interpreter.py", line 26, in <module>
from debpython.version import Version
File "/usr/share/python3/debpython/version.py", line 26, in <module>
from configparser import ConfigParser
File "/usr/lib/python2.7/dist-packages/configparser.py", line 397
_KEYCRE = re.compile(ur"%\(([^)]+)\)s")
^
SyntaxError: invalid syntax
dpkg: error processing archive /tmp/apt-dpkg-install-Y2fs4G/4-python3-celery_3.1.23-7_all.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
Traceback (most recent call last):
File "/usr/bin/py3compile", line 34, in <module>
from debpython.version import SUPPORTED, debsorted, vrepr, \
File "/usr/share/python3/debpython/version.py", line 26, in <module>
from configparser import ConfigParser
File "/usr/lib/python2.7/dist-packages/configparser.py", line 397
_KEYCRE = re.compile(ur"%\(([^)]+)\)s")
^
SyntaxError: invalid syntax
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Preparing to unpack .../5-python3-django-celery_3.1.17-4_all.deb ...
Traceback (most recent call last):
File "/usr/bin/py3clean", line 33, in <module>
from debpython.interpreter import Interpreter
File "/usr/share/python3/debpython/interpreter.py", line 26, in <module>
from debpython.version import Version
File "/usr/share/python3/debpython/version.py", line 26, in <module>
from configparser import ConfigParser
File "/usr/lib/python2.7/dist-packages/configparser.py", line 397
_KEYCRE = re.compile(ur"%\(([^)]+)\)s")
^
SyntaxError: invalid syntax
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
Traceback (most recent call last):
File "/usr/bin/py3clean", line 33, in <module>
from debpython.interpreter import Interpreter
File "/usr/share/python3/debpython/interpreter.py", line 26, in <module>
from debpython.version import Version
File "/usr/share/python3/debpython/version.py", line 26, in <module>
from configparser import ConfigParser
File "/usr/lib/python2.7/dist-packages/configparser.py", line 397
_KEYCRE = re.compile(ur"%\(([^)]+)\)s")
^
SyntaxError: invalid syntax
dpkg: error processing archive /tmp/apt-dpkg-install-Y2fs4G/5-python3-django-celery_3.1.17-4_all.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
Traceback (most recent call last):
File "/usr/bin/py3compile", line 34, in <module>
from debpython.version import SUPPORTED, debsorted, vrepr, \
File "/usr/share/python3/debpython/version.py", line 26, in <module>
from configparser import ConfigParser
File "/usr/lib/python2.7/dist-packages/configparser.py", line 397
_KEYCRE = re.compile(ur"%\(([^)]+)\)s")
^
SyntaxError: invalid syntax
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
/tmp/apt-dpkg-install-Y2fs4G/0-python3-django_1%3a1.10.7-2+deb9u1_all.deb
/tmp/apt-dpkg-install-Y2fs4G/1-python3-apt_1.4.0~beta3_amd64.deb
/tmp/apt-dpkg-install-Y2fs4G/2-python3-pkg-resources_33.1.1-1_all.deb
/tmp/apt-dpkg-install-Y2fs4G/3-python3-tz_2016.7-0.3_all.deb
/tmp/apt-dpkg-install-Y2fs4G/4-python3-celery_3.1.23-7_all.deb
/tmp/apt-dpkg-install-Y2fs4G/5-python3-django-celery_3.1.17-4_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)