# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
libglib2.0-dev
Suggested packages:
libglib2.0-doc
The following packages will be upgraded:
libglib2.0-dev
1 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
1 not fully installed or removed.
Need to get 0 B/1,377 kB of archives.
After this operation, 8,192 B of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: warning: files list file for package 'python-docutils' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python-sphinx' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python-gevent' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python-jinja2' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python-markupsafe' missing; assuming package has no files currently installed
(Reading database ... 55878 files and directories currently installed.)
Preparing to unpack .../libglib2.0-dev_2.48.1-1~ubuntu16.04.1_amd64.deb ...
Traceback (most recent call last):
File "/usr/bin/pyclean", line 32, in <module>
from debpython.namespace import add_namespace_files
File "/usr/share/python/debpython/namespace.py", line 120
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 ...
Traceback (most recent call last):
File "/usr/bin/pyclean", line 32, in <module>
from debpython.namespace import add_namespace_files
File "/usr/share/python/debpython/namespace.py", line 120
except (IOError, OSError), e:
^
SyntaxError: invalid syntax
dpkg: error processing archive /var/cache/apt/archives/libglib2.0-dev_2.48.1-1~ubuntu16.04.1_amd64.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
Traceback (most recent call last):
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/libglib2.0-dev_2.48.1-1~ubuntu16.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)