package python3-colorama 0.3.7-1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
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
ProcVersionSign
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)
PackageArchitec
RelatedPackageV
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)
tags: | removed: need-duplicate-check |
Changed in python-colorama (Ubuntu): | |
status: | New → Invalid |
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
```