artem7474
By:
artem7474

Apache2-utils install problem (Possible python modules problem)

April 14, 2016 834 views
Apache Python

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 .../apport2.14.1-0ubuntu3.19all.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/apport2.14.1-0ubuntu3.19all.deb
/var/cache/apt/archives/python-apt0.9.3.5ubuntu2i386.deb

1 comment
  • 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

1 Answer

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

Have another answer? Share your knowledge.