I've just got back to the office and updated the desktop with apt from a
terminal and get the same thing.

Here is a copy of the traceback

Preparing to unpack 
.../python-samba_2%3a4.3.11+dfsg-0ubuntu0.16.04.16_amd64.deb ...
Traceback (most recent call last):
  File "/usr/bin/pyclean", line 24, in <module>
    import logging
  File "/usr/lib/python2.7/logging/__init__.py", line 26, in <module>
    import sys, os, time, cStringIO, traceback, warnings, weakref, collections
  File "/usr/lib/python2.7/weakref.py", line 14, in <module>
    from _weakref import (
ImportError: cannot import name _remove_dead_weakref
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
Traceback (most recent call last):
  File "/usr/bin/pyclean", line 24, in <module>
    import logging
  File "/usr/lib/python2.7/logging/__init__.py", line 26, in <module>
    import sys, os, time, cStringIO, traceback, warnings, weakref, collections
  File "/usr/lib/python2.7/weakref.py", line 14, in <module>
    from _weakref import (
ImportError: cannot import name _remove_dead_weakref
dpkg: error processing archive 
/var/cache/apt/archives/python-samba_2%3a4.3.11+dfsg-0ubuntu0.16.04.16_amd64.deb
 (--unpack):
 subprocess new pre-removal script returned error exit status 1
Traceback (most recent call last):
  File "/usr/bin/pycompile", line 26, in <module>
    import logging
  File "/usr/lib/python2.7/logging/__init__.py", line 26, in <module>
    import sys, os, time, cStringIO, traceback, warnings, weakref, collections
  File "/usr/lib/python2.7/weakref.py", line 14, in <module>
    from _weakref import (
ImportError: cannot import name _remove_dead_weakref
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1


The desktop does have a bunch of cifs shares but given that the laptop doesn't 
I think that is a red herring. The cifs shares are all still working.


For what its worth here's the output of stat
kim@Portos:~$ stat /usr/bin/python
  File: '/usr/bin/python' -> 'python2.7'
  Size: 9               Blocks: 0          IO Block: 4096   symbolic link
Device: fc00h/64512d    Inode: 41292233    Links: 1
Access: (0777/lrwxrwxrwx)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2018-09-06 13:53:39.657278583 +0800
Modify: 2017-11-24 08:52:21.000000000 +0800
Change: 2018-02-27 09:36:31.297425618 +0800
 Birth: -

Looks like a undeclared variable or mismatch in code versions.

Cheers
Kim

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