Question

Apache2-utils install problem (Possible python modules problem)

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>

**<^> from ConfigParser import SafeConfigParser

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

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

This question was answered by @BrookDO:

Hi,

This could potentially be an issue with your Python lockfile, or the location of your Python installation being different than where you are attempting to install the Apache Utils.

Which version of Ubuntu are you using, and have you recently run apt-get update and apt-get upgrade?

Additionally, can you send the output of which python ? Thanks, Brook

View the original comment