Comment 2 for bug 1699456

Revision history for this message
Carlo Lobrano (c-lobrano) wrote :

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
```