OK so this is what I did to resolve the problem (I hope) Crude but it
appears to work.

1/ go to /usr/lib/pytho2.7 and rename weakref.py to weakref-org.py
2/ copy weakref.py from /usr/lib/python3.5 to usr/lib python2.7
3/ sudo apt-get -f install and edit until it runs
4/ rename the weakref-org.py back to weakref.py

I've attached my edited version if you trust me. If you don't there were
no great tricks, comment out a couple of bits that were causing grief
and replace unsupported syntax with the corresponding lines from the
original weakref.py

Hope that's fixed it until the next update and this is the end of the
problem.

Cheers
Kim

** Attachment added: "weakref.py from 3.5 with edits to run in 2.7 for 
samba-pytho"
   
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1651660/+attachment/5187083/+files/weakref.zip

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

Title:
  package python-samba 2:4.3.11+dfsg-0ubuntu0.16.04.1 failed to
  install/upgrade: subprocess new pre-removal script returned error exit
  status 1

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to