title: How to solve the "No module named 'ConfigParser'" issue in every of my installation
body: <p>I have a ubuntu 16.0.4 system, that has both python 2 and python3 installed, and here is the version of each python.</p>
  <pre><code>python --version
  Python 2.7.12
  python3 --version
  Python 3.7.6
  </code></pre>
  <p>Now, I don't know since when, If I was to install any package using apt-get I am getting this type of error, which has nothing to do with the package I am installing now:</p>
  <pre><code>apt-get install -y nodejs
  
  Reading package lists... Done
  Building dependency tree
  Reading state information... Done
  The following additional packages will be installed:
    libglib2.0-dev
  The following packages will be upgraded:
    libglib2.0-dev nodejs
  2 upgraded, 0 newly installed, 0 to remove and 187 not upgraded.
  104 not fully installed or removed.
  Need to get 0 B/27.9 MB of archives.
  After this operation, 53.4 MB of additional disk space will be used.
  (Reading database ... 148506 files and directories currently installed.)
  Preparing to unpack .../libglib2.0-dev_2.48.2-0ubuntu4.8_amd64.deb ...
    File &quot;/usr/bin/pyclean&quot;, 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 &quot;/usr/bin/pyclean&quot;, line 63
      except (IOError, OSError), e:
                               ^
  SyntaxError: invalid syntax
  dpkg: error processing archive /var/cache/apt/archives/libglib2.0-dev_2.48.2-0ubuntu4.8_amd64.deb (--unpack):
   subprocess new pre-removal script returned error exit status 1
  Traceback (most recent call last):
    File &quot;/usr/bin/pycompile&quot;, line 35, in &lt;module&gt;
      from debpython.version import SUPPORTED, debsorted, vrepr, \
    File &quot;/usr/share/python/debpython/version.py&quot;, line 24, in &lt;module&gt;
      from ConfigParser import SafeConfigParser
  ModuleNotFoundError: 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/libglib2.0-dev_2.48.2-0ubuntu4.8_amd64.deb
  E: Sub-process /usr/bin/dpkg returned an error code (1)
  </code></pre>
  <p>I am clueless how to have this issue resolved. Any idea how this can be resolved.</p>
  <p>Thanks,</p>
  <p>Jack</p>