You probably removed python2 from your system, or something like that. Check the first line of /usr/bin/pyclean to be sure.
This is beyond a bug report now. Something you did broke your system with regards to python. My last suggestion is to try to reinstall the python2.7-minimal package, either via "sudo apt install --reinstall python2.7-minimal" or via dpkg directly by passing it the package path to /var/cache/apt/archives where it probably is. I will mark this bug as invalid, sorry. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to samba in Ubuntu. https://bugs.launchpad.net/bugs/1737296 Title: package python-samba 2:4.3.11+dfsg-0ubuntu0.16.04.11 failed to install/upgrade: subprocess new pre-removal script returned error exit status 127 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1737296/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs