package python3-colorama 0.3.7-1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #1699456 reported by fcole90
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-colorama (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Immediately after login I was prompted with this error message.

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: python3-colorama 0.3.7-1
ProcVersionSignature: Ubuntu 4.8.0-56.61~16.04.1-generic 4.8.17
Uname: Linux 4.8.0-56-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.6
Architecture: amd64
Date: Tue Jun 20 07:38:31 2017
Dependencies:

ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2016-09-09 (284 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
PackageArchitecture: all
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.2
 apt 1.2.20
SourcePackage: python-colorama
Title: package python3-colorama 0.3.7-1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
fcole90 (fcole90) wrote :
tags: removed: need-duplicate-check
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
```

Changed in python-colorama (Ubuntu):
status: New → Invalid
Revision history for this message
fcole90 (fcole90) wrote :

Thanks for the suggestion

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.