yes after next comand it gives error Reading package lists... Done Building dependency tree Reading state information... Done python-minimal is already the newest version (2.7.11-1). python-minimal set to manually installed. The following packages were automatically installed and are no longer required: linux-headers-4.4.0-98 linux-headers-4.4.0-98-generic linux-image-4.4.0-98-generic linux-image-extra-4.4.0-98-generic Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: apport python-samba The following packages will be upgraded: apport python-samba 2 upgraded, 0 newly installed, 0 to remove and 10 not upgraded. 11 not fully installed or removed. Need to get 0 B/1,180 kB of archives. After this operation, 1,024 B of additional disk space will be used. Do you want to continue? [Y/n] y (Reading database ... 532079 files and directories currently installed.) 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)
On Tue, Dec 12, 2017 at 4:46 PM, Andreas Hasenack <andr...@canonical.com> wrote: > Did you try the next command in the list? > > -- > 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: "Err.png" https://bugs.launchpad.net/bugs/1737296/+attachment/5021692/+files/Err.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