Package: python3.5-minimal

I’ve just upgraded a bunch of jessie machines to stretch. All but one went fine…

The issue is that python3.5-minimal won’t install and gives the following error:

The following additional packages will be installed:
  python3
Suggested packages:
  python3-doc python3-tk python3-venv
The following NEW packages will be installed:
  python3
0 upgraded, 1 newly installed, 0 to remove and 137 not upgraded.
4 not fully installed or removed.
Need to get 0 B/21.6 kB of archives.
After this operation, 68.6 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up python3.5-minimal (3.5.3-1) ...
Traceback (most recent call last):
  File "/usr/lib/python3.5/py_compile.py", line 6, in <module>
    import importlib._bootstrap_external
  File "/usr/lib/python3.5/importlib/__init__.py", line 57, in <module>
    import types
  File "/usr/lib/python3.5/types.py", line 166, in <module>
    import functools as _functools
  File "/usr/lib/python3.5/functools.py", line 21, in <module>
    from collections import namedtuple
  File "/usr/lib/python3.5/collections/__init__.py", line 22, in <module>
    from _collections_abc import *
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 669, in exec_module
  File "<frozen importlib._bootstrap_external>", line 773, in get_code
  File "<frozen importlib._bootstrap_external>", line 484, in _compile_bytecode
EOFError: marshal data too short
dpkg: error processing package python3.5-minimal (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python3-minimal:
 python3-minimal depends on python3.5-minimal (>= 3.5.3-1~); however:
  Package python3.5-minimal is not configured yet.

dpkg: error processing package python3-minimal (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 python3.5-minimal
 python3-minimal
E: Sub-process /usr/bin/dpkg returned an error code (1)

I had to set:
export LC_ALL=C; unset LANGUAGE

To get rid of some nasty LC issue’s but it still won’t install, so looked 
further and ran:

rm -r /usr/lib/python3.5/collections/__pycache__
rm -r /usr/lib/python3.5/importlib/__pycache__

But that doesn’t change the picture…


Mit freundlichen Grüßen

Mirco Schmidt

ONE Energy-IT GmbH
Hohe Straße 4 - 6
61231 Bad Nauheim, Germany
Telefon +49 6032 86911 20
Telefax +49 6032 86911 29
Mobil +49 175 1615110
E-Mail m...@one-energy-it.de <mailto:m...@one-energy-it.de>
Internet www.one-energy-it.de <http://www.one-energy-it.de/>

Registergericht und Registernummer: Amtsgericht Friedberg, HRB 7357
Geschaeftsfuehrer: Mirco Schmidt
USt-ID-Nr.: 020 240 510 64

Diese Information (inkl. Anhaenge) ist ausschliesslich fuer die adressierte 
Person oder Organisation bestimmt und koennte vertrauliches und / oder 
privilegiertes Material enthalten. Es ist nicht gestattet diese unerlaubt zu 
kopieren oder zu verbreiten.


Reply via email to