After running command sudo apt -f install I got following error Preparing to unpack .../apport_2.20.1-0ubuntu2.14_all.deb ... /var/lib/dpkg/info/apport.prerm: 19: /var/lib/dpkg/info/apport.prerm: pyclean: not found dpkg: warning: subprocess old pre-removal script returned error exit status 127 dpkg: trying script from the new package instead ... /var/lib/dpkg/tmp.ci/prerm: 19: /var/lib/dpkg/tmp.ci/prerm: pyclean: not found dpkg: error processing archive /var/cache/apt/archives/apport_2.20.1-0ubuntu2.14_all.deb (--unpack): subprocess new pre-removal script returned error exit status 127 /var/lib/dpkg/info/apport.postinst: 13: /var/lib/dpkg/info/apport.postinst: pycompile: not found dpkg: error while cleaning up: subprocess installed post-installation script returned error exit status 127 Preparing to unpack .../python-samba_2%3a4.3.11+dfsg-0ubuntu0.16.04.12_amd64.deb ... /var/lib/dpkg/info/python-samba.prerm: 6: /var/lib/dpkg/info/python-samba.prerm: pyclean: not found dpkg: warning: subprocess old pre-removal script returned error exit status 127 dpkg: trying script from the new package instead ... /var/lib/dpkg/tmp.ci/prerm: 6: /var/lib/dpkg/tmp.ci/prerm: pyclean: not found dpkg: error processing archive /var/cache/apt/archives/python-samba_2%3a4.3.11+dfsg-0ubuntu0.16.04.12_amd64.deb (--unpack): subprocess new pre-removal script returned error exit status 127 /var/lib/dpkg/info/python-samba.postinst: 6: /var/lib/dpkg/info/python-samba.postinst: pycompile: not found dpkg: error while cleaning up: subprocess installed post-installation script returned error exit status 127 Errors were encountered while processing: /var/cache/apt/archives/apport_2.20.1-0ubuntu2.14_all.deb /var/cache/apt/archives/python-samba_2%3a4.3.11+dfsg-0ubuntu0.16.04.12_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
screen shot is attached On Mon, Dec 11, 2017 at 4:32 PM, Andreas Hasenack <andr...@canonical.com> wrote: > Thanks for filing this bug in Ubuntu. > > It looks like you removed some essential software for your Ubuntu system > to work. > > /var/lib/dpkg/info/apport.prerm: 19: /var/lib/dpkg/info/apport.prerm: > pyclean: not found > > > I suggest you try the command below, but I'll have to mark this bug as > invalid because it's not a problem in the samba software: > > sudo apt update > sudo apt -f install > sudo apt install python-minimal > > ** Changed in: samba (Ubuntu) > Status: New => Invalid > > -- > You received this bug notification because you are subscribed to the bug > report. > 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 > > Status in samba package in Ubuntu: > Invalid > > Bug description: > I encountered this error every time while installing any update. > while installing caffe on my system i installed certain packages which > are now causing priblem. kindly guide me to solve this. > > ProblemType: Package > DistroRelease: Ubuntu 16.04 > Package: python-samba 2:4.3.11+dfsg-0ubuntu0.16.04.11 > ProcVersionSignature: Ubuntu 4.4.0-101.124-generic 4.4.95 > Uname: Linux 4.4.0-101-generic x86_64 > ApportVersion: 2.20.1-0ubuntu2.10 > Architecture: amd64 > Date: Sat Dec 9 11:47:04 2017 > ErrorMessage: subprocess new pre-removal script returned error exit > status 127 > InstallationDate: Installed on 2017-07-31 (130 days ago) > InstallationMedia: Ubuntu 14.04.3 LTS "Trusty Tahr" - Beta amd64 > (20150805) > NmbdLog: > > RelatedPackageVersions: > dpkg 1.18.4ubuntu1.3 > apt 1.2.24 > SambaServerRegression: Yes > SmbConfIncluded: Yes > SmbLog: > > SourcePackage: samba > 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 > UpgradeStatus: Upgraded to xenial on 2017-08-05 (126 days ago) > WindowsFailedConnect: Yes > > To manage notifications about this bug go to: > https://bugs.launchpad.net/ubuntu/+source/samba/+bug/ > 1737296/+subscriptions > ** Attachment added: "error report.png" https://bugs.launchpad.net/bugs/1737296/+attachment/5021543/+files/error%20report.png -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to 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-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs