By artem7474
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
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!
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 updateandapt-get upgrade?Additionally, can you send the output of
which python? Thanks, Brook
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.