/usr/lib/python3/dist-packages/breezy/git/__init__.py 
was getting installed as 
/usr/lib/python3/dist-packages/breezy/git/__init__.py.distrib 
and apt failing on postinst step

I fixed it locally by skipping postinstall
(see 
https://askubuntu.com/questions/482928/ignore-apt-get-postinstall-scripts-automatically
 )
copying the file from the package
cp usr/lib/python3/dist-packages/breezy/git/__init__.py 
/usr/lib/python3/dist-packages/breezy/git/__init__.py
and running applicable postinstall step manually :
py3compile -p python3-breezy:amd64

Turns out I had dpkg-divert that file, I removed the divert with
dpkg-divert --no-rename  --remove 
/usr/lib/python3/dist-packages/breezy/git/__init__.py
and now
apt install --reinstall python3-breezy
works as expected

** Changed in: breezy (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1969852

Title:
  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/breezy/+bug/1969852/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to