From DpkgTerminalLog
```
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 4.8.0-56-generic /boot/vmlinuz-4.8.0-56-generic
Error! Could not locate dkms.conf file.
File: does not exist.
Setting up linux-headers-generic-hwe-16.04 (4.8.0.56.27) ...
Setting up linux-generic-hwe-16.04 (4.8.0.56.27) ...
Setting up python3-colorama (0.3.7-1) ...
dpkg-query: error: parsing file '/var/lib/dpkg/updates/0056' near line 0:
newline in field name '#padding'
Traceback (most recent call last):
File "/usr/bin/py3compile", line 290, in <module>
main()
File "/usr/bin/py3compile", line 270, in main
options.force, options.optimize, e_patterns)
File "/usr/bin/py3compile", line 154, in compile
for fn, versions_to_compile in filter_files(files, e_patterns, versions):
File "/usr/bin/py3compile", line 106, in filter_files
for fn in files:
File "/usr/share/python3/debpython/files.py", line 71, in filter_public
for fn in files:
File "/usr/share/python3/debpython/files.py", line 53, in from_package
raise Exception("cannot get content of %s" % package_name)
Exception: cannot get content of python3-colorama
dpkg: error processing package python3-colorama (--configure):
subprocess installed post-installation script returned error exit status 1
```
-> Not a python-colorama bug
It seems a corrupted update (0045).
dpkg-query: error: parsing file '/var/lib/dpkg/updates/0056' near line 0:
As workaround
```
cd /var/lib/dpkg/updates && rm -rf 0045
sudo dpkg --configure -a
```
From DpkgTerminalLog header_ postinst. d. header_ postinst. d/dkms 4.8.0-56-generic /boot/vmlinuz- 4.8.0-56- generic generic- hwe-16. 04 (4.8.0.56.27) ... hwe-16. 04 (4.8.0.56.27) ... dpkg/updates/ 0056' near line 0: py3compile" , line 290, in <module> py3compile" , line 270, in main py3compile" , line 154, in compile py3compile" , line 106, in filter_files python3/ debpython/ files.py" , line 71, in filter_public python3/ debpython/ files.py" , line 53, in from_package
```
Examining /etc/kernel/
run-parts: executing /etc/kernel/
Error! Could not locate dkms.conf file.
File: does not exist.
Setting up linux-headers-
Setting up linux-generic-
Setting up python3-colorama (0.3.7-1) ...
dpkg-query: error: parsing file '/var/lib/
newline in field name '#padding'
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
options.force, options.optimize, e_patterns)
File "/usr/bin/
for fn, versions_to_compile in filter_files(files, e_patterns, versions):
File "/usr/bin/
for fn in files:
File "/usr/share/
for fn in files:
File "/usr/share/
raise Exception("cannot get content of %s" % package_name)
Exception: cannot get content of python3-colorama
dpkg: error processing package python3-colorama (--configure):
subprocess installed post-installation script returned error exit status 1
```
-> Not a python-colorama bug
It seems a corrupted update (0045).
dpkg-query: error: parsing file '/var/lib/ dpkg/updates/ 0056' near line 0:
As workaround
``` dpkg/updates && rm -rf 0045
cd /var/lib/
sudo dpkg --configure -a
```