i try to install apache2-utils using sudo apt-get install apache2-utils and got errors: (Reading database … 105645 files and directories currently installed.) Preparing to unpack …/apport_2.14.1-0ubuntu3.19_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:
…many same errors
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>
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/apport_2.14.1-0ubuntu3.19_all.deb /var/cache/apt/archives/python-apt_0.9.3.5ubuntu2_i386.deb
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $100 of credit to try our products over 60 days!