package python3-cryptography 1.2.3-1ubuntu0.3 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python3-defaults (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
would not install updates
ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: python3-
ProcVersionSign
Uname: Linux 4.10.0-28-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.30
Architecture: amd64
Date: Sun Jul 11 15:16:59 2021
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2021-07-11 (0 days ago)
InstallationMedia: Ubuntu 16.04.3 LTS "Xenial Xerus" - Release amd64 (20170801)
RelatedPackageV
dpkg 1.18.4ubuntu1.7
apt 1.2.35
SourcePackage: python-cryptography
Title: package python3-
UpgradeStatus: No upgrade log present (probably fresh install)
package:
Setting up python3-
Traceback (most recent call last):
File "/usr/bin/
from debpython import files as dpf, PUBLIC_DIR_RE, memoize
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
ValueError: bad marshal data (unknown type code)
dpkg: error processing package python3-
subprocess installed post-installation script returned error exit status 1
This type of error typically occurs because the cached .pyc files are out of date for some reason. (C.f. https:/ /www.py4u. net/discuss/ 17141, https:/ /stackoverflow. com/questions/ 30861493/ how-to- fix-python- valueerrorbad- marshal- data)
This specific issue is occurring not in python-cryptography itself, but rather in the /usr/bin/py3compile call when its trying to import debpython. In other words, something's inconsistent with your system's cached python code. It sounds like perhaps force reinstalling python3-minimal might be worth trying.