package python3-breezy 3.2.1+bzr7585-1build1 failed to install/upgrade: installed python3-breezy package post-installation script subprocess returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
breezy (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
during hirsute to jammy upgrade
ProblemType: Package
DistroRelease: Ubuntu 22.04
Package: python3-breezy 3.2.1+bzr7585-
ProcVersionSign
Uname: Linux 5.13.0-40-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu82
Architecture: amd64
CasperMD5CheckR
Date: Thu Apr 21 23:10:18 2022
DuplicateSignature:
package:
Setting up python3-breezy (3.2.1+
[Errno 2] No such file or directory: '/usr/lib/
installed python3-breezy package post-installation script subprocess returned error exit status 1
ErrorMessage: installed python3-breezy package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2021-06-09 (316 days ago)
InstallationMedia: Ubuntu 21.04 "Hirsute Hippo" - Release amd64 (20210420)
Python3Details: /usr/bin/
PythonDetails: /usr/bin/
RebootRequiredPkgs: Error: path contained symlinks.
RelatedPackageV
dpkg 1.21.1ubuntu2
apt 2.4.5
SourcePackage: grub2
Title: package python3-breezy 3.2.1+bzr7585-
UpgradeStatus: Upgraded to jammy on 2022-04-21 (0 days ago)
affects: | ubuntu → grub2 (Ubuntu) |
affects: | grub2 (Ubuntu) → breezy (Ubuntu) |
/usr/lib/ python3/ dist-packages/ breezy/ git/__init_ _.py python3/ dist-packages/ breezy/ git/__init_ _.py.distrib
was getting installed as
/usr/lib/
and apt failing on postinst step
I fixed it locally by skipping postinstall /askubuntu. com/questions/ 482928/ ignore- apt-get- postinstall- scripts- automatically ) python3/ dist-packages/ breezy/ git/__init_ _.py /usr/lib/ python3/ dist-packages/ breezy/ git/__init_ _.py breezy: amd64
(see https:/
copying the file from the package
cp usr/lib/
and running applicable postinstall step manually :
py3compile -p python3-
Turns out I had dpkg-divert that file, I removed the divert with python3/ dist-packages/ breezy/ git/__init_ _.py
dpkg-divert --no-rename --remove /usr/lib/
and now
apt install --reinstall python3-breezy
works as expected