APT error with Python 2.7.12 and python-certbot-apache

After upgrade to Python 2.7.12 apt stops working.
I have tried:

apt-get autoclean
dpkg --configure -a
apt-get -f install

And manual package reinstall…but nothing works, problem is tracable to package python-certbot-apache.
Thanks for any hint, BR

My domain is: kubik256.uk.to

I ran this command: apt-get -f install

It produced this output:

Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following additional packages will be installed: python-acme python-certbot python-certbot-apache Suggested packages: python-acme-doc python-certbot-doc python-certbot-apache-doc The following packages will be upgraded: python-acme python-certbot python-certbot-apache 3 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. 1 not fully installed or removed. Need to get 0 B/261 kB of archives. After this operation, 51.2 kB of additional disk space will be used. Do you want to continue? [Y/n] y (Reading database ... 30426 files and directories currently installed.) Preparing to unpack .../python-certbot-apache_0.14.1-0+certbot~xenial+1_all.deb ... Traceback (most recent call last): File "/usr/bin/pyclean", line 32, in <module> from debpython.namespace import add_namespace_files File "/usr/share/python/debpython/namespace.py", line 28, in <module> from debpython.pydist import PUBLIC_DIR_RE File "/usr/share/python/debpython/pydist.py", line 30, in <module> from debpython.tools import memoize EOFError: EOF read where object expected 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/pyclean", line 32, in <module> from debpython.namespace import add_namespace_files File "/usr/share/python/debpython/namespace.py", line 28, in <module> from debpython.pydist import PUBLIC_DIR_RE File "/usr/share/python/debpython/pydist.py", line 30, in <module> from debpython.tools import memoize EOFError: EOF read where object expected dpkg: error processing archive /var/cache/apt/archives/python-certbot-apache_0.14.1-0+certbot~xenial+1_all.deb (--unpack): subprocess new pre-removal script returned error exit status 1 dpkg: considering deconfiguration of python-certbot-apache, which would be broken by installation of python-certbot ... dpkg: yes, will deconfigure python-certbot-apache (broken by python-certbot) Preparing to unpack .../python-certbot_0.14.1-0+certbot~xenial+1_all.deb ... Traceback (most recent call last): File "/usr/bin/pyclean", line 32, in <module> from debpython.namespace import add_namespace_files File "/usr/share/python/debpython/namespace.py", line 28, in <module> from debpython.pydist import PUBLIC_DIR_RE File "/usr/share/python/debpython/pydist.py", line 30, in <module> from debpython.tools import memoize EOFError: EOF read where object expected 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/pyclean", line 32, in <module> from debpython.namespace import add_namespace_files File "/usr/share/python/debpython/namespace.py", line 28, in <module> from debpython.pydist import PUBLIC_DIR_RE File "/usr/share/python/debpython/pydist.py", line 30, in <module> from debpython.tools import memoize EOFError: EOF read where object expected dpkg: error processing archive /var/cache/apt/archives/python-certbot_0.14.1-0+certbot~xenial+1_all.deb (--unpack): subprocess new pre-removal script returned error exit status 1 dpkg: considering deconfiguration of python-certbot, which would be broken by installation of python-acme ... dpkg: yes, will deconfigure python-certbot (broken by python-acme) Preparing to unpack .../python-acme_0.14.1-0+certbot~xenial+1_all.deb ... Traceback (most recent call last): File "/usr/bin/pyclean", line 32, in <module> from debpython.namespace import add_namespace_files File "/usr/share/python/debpython/namespace.py", line 28, in <module> from debpython.pydist import PUBLIC_DIR_RE File "/usr/share/python/debpython/pydist.py", line 30, in <module> from debpython.tools import memoize EOFError: EOF read where object expected 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/pyclean", line 32, in <module> from debpython.namespace import add_namespace_files File "/usr/share/python/debpython/namespace.py", line 28, in <module> from debpython.pydist import PUBLIC_DIR_RE File "/usr/share/python/debpython/pydist.py", line 30, in <module> from debpython.tools import memoize EOFError: EOF read where object expected dpkg: error processing archive /var/cache/apt/archives/python-acme_0.14.1-0+certbot~xenial+1_all.deb (--unpack): subprocess new pre-removal script returned error exit status 1 Errors were encountered while processing: /var/cache/apt/archives/python-certbot-apache_0.14.1-0+certbot~xenial+1_all.deb /var/cache/apt/archives/python-certbot_0.14.1-0+certbot~xenial+1_all.deb /var/cache/apt/archives/python-acme_0.14.1-0+certbot~xenial+1_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)

My operating system is (include version): Ubuntu Server 16.04.2 LTS (GNU/Linux 3.4.39 armv7l)

My web server is (include version): Apache/2.4.18 (Ubuntu)

My hosting provider, if applicable, is: —

I can login to a root shell on my machine (yes or no, or I don’t know): YES

I’m using a control panel to manage my site (no, or provide the name and version of the control panel): NO

My problem looks very simillar to this one: Certbot with Python 2.7.1.2 on Ububtu - Broken Packages

But removing python not working for me :frowning:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.