After running the comands i got this error Please help me with it iqra@iqra-Inspiron-3542:~$ sudo apt install --reinstall python-minimal [sudo] password for iqra: Reading package lists... Done Building dependency tree Reading state information... Done 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, 1 reinstalled, 0 to remove and 10 not upgraded. 11 not fully installed or removed. Need to get 28.2 kB/1,209 kB of archives. After this operation, 1,024 B of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://ci.archive.ubuntu.com/ubuntu xenial/main amd64 python-minimal amd64 2.7.11-1 [28.2 kB] Fetched 28.2 kB in 2s (11.3 kB/s) (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 Preparing to unpack .../python-minimal_2.7.11-1_amd64.deb ... Unpacking python-minimal (2.7.11-1) over (2.7.11-1) ... Processing triggers for man-db (2.7.5-1) ... 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) iqra@iqra-Inspiron-3542:~$ ls -la /usr/bin/pycompile /usr/bin/pyclean /usr/bin/python -rwxr-xr-x 1 root root 4123 Dec 10 2015 /usr/bin/pyclean -rwxr-xr-x 1 root root 11894 Dec 10 2015 /usr/bin/pycompile lrwxrwxrwx 1 root root 9 Dec 10 2015 /usr/bin/python -> python2.7
On Tue, Dec 12, 2017 at 6:16 PM, Andreas Hasenack <[email protected]> wrote: > Do a reinstall then: > > sudo apt install --reinstall python-minimal > > Also run this: > > ls -la /usr/bin/pycompile /usr/bin/pyclean /usr/bin/python > /usr/bin/python2 /usr/bin/pyversions > > -- > 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: "Error1.png" https://bugs.launchpad.net/bugs/1737296/+attachment/5021952/+files/Error1.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 [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
