← Back to team overview

desktop-packages team mailing list archive

[Bug 1538145] [NEW] package python-libxml2 2.9.1+dfsg1-3ubuntu4.4 failed to install/upgrade: subprocess new pre-removal script returned error exit status 127

 

Public bug reported:

I receive the following output when I try to install any package, etc..
Here is the output:

user@user-OptiPlex-7010:~$ sudo apt-get install synaptic
[sudo] password for user:
Reading package lists... Done
Building dependency tree
Reading state information... Done
synaptic is already the newest version.
The following packages were automatically installed and are no longer required:
  apturl apturl-common attr libhdb9-heimdal libkdc2-heimdal python-dnspython
  samba-dsdb-modules samba-vfs-modules tdb-tools
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  apport python-apt python-libxml2 python-samba python-urllib3
Suggested packages:
  python-apt-dbg python-vte python-apt-doc
The following packages will be upgraded:
  apport python-apt python-libxml2 python-samba python-urllib3
5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
15 not fully installed or removed.
Need to get 0 B/1,383 kB of archives.
After this operation, 5,120 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 216930 files and directories currently installed.)
Preparing to unpack .../apport_2.14.1-0ubuntu3.19_all.deb ...
apport stop/waiting
/var/lib/dpkg/info/apport.prerm: 14: /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: 14: /var/lib/dpkg/tmp.ci/prerm: pyclean: not found
dpkg: error processing archive /var/cache/apt/archives/apport_2.14.1-0ubuntu3.19_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-apt_0.9.3.5ubuntu2_amd64.deb ...
/var/lib/dpkg/info/python-apt.prerm: 6: /var/lib/dpkg/info/python-apt.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-apt_0.9.3.5ubuntu2_amd64.deb (--unpack):
 subprocess new pre-removal script returned error exit status 127
/var/lib/dpkg/info/python-apt.postinst: 6: /var/lib/dpkg/info/python-apt.postinst: pycompile: not found
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 127
Preparing to unpack .../python-libxml2_2.9.1+dfsg1-3ubuntu4.7_amd64.deb ...
/var/lib/dpkg/info/python-libxml2.prerm: 6: /var/lib/dpkg/info/python-libxml2.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-libxml2_2.9.1+dfsg1-3ubuntu4.7_amd64.deb (--unpack):
 subprocess new pre-removal script returned error exit status 127
/var/lib/dpkg/info/python-libxml2.postinst: 6: /var/lib/dpkg/info/python-libxml2.postinst: pycompile: not found
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 127
Selecting previously unselected package python-samba.
Preparing to unpack .../python-samba_2%3a4.1.6+dfsg-1ubuntu2.14.04.11_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.1.6+dfsg-1ubuntu2.14.04.11_amd64.deb (--unpack):
 subprocess new pre-removal script returned error exit status 127
No apport report written because MaxReports is reached already
                                                              /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-urllib3_1.7.1-1ubuntu4_all.deb ...
/var/lib/dpkg/info/python-urllib3.prerm: 6: /var/lib/dpkg/info/python-urllib3.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-urllib3_1.7.1-1ubuntu4_all.deb (--unpack):
 subprocess new pre-removal script returned error exit status 127
No apport report written because MaxReports is reached already
                                                              /var/lib/dpkg/info/python-urllib3.postinst: 6: /var/lib/dpkg/info/python-urllib3.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.14.1-0ubuntu3.19_all.deb
 /var/cache/apt/archives/python-apt_0.9.3.5ubuntu2_amd64.deb
 /var/cache/apt/archives/python-libxml2_2.9.1+dfsg1-3ubuntu4.7_amd64.deb
 /var/cache/apt/archives/python-samba_2%3a4.1.6+dfsg-1ubuntu2.14.04.11_amd64.deb
 /var/cache/apt/archives/python-urllib3_1.7.1-1ubuntu4_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
DistroRelease: Ubuntu 14.04
Package: python-libxml2 2.9.1+dfsg1-3ubuntu4.4
ProcVersionSignature: Ubuntu 3.19.0-47.53~14.04.1-generic 3.19.8-ckt10
Uname: Linux 3.19.0-47-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.11
Architecture: amd64
Date: Tue Jan 26 21:30:44 2016
DuplicateSignature: package:python-libxml2:2.9.1+dfsg1-3ubuntu4.4:subprocess new pre-removal script returned error exit status 127
ErrorMessage: subprocess new pre-removal script returned error exit status 127
InstallationDate: Installed on 2016-01-18 (8 days ago)
InstallationMedia: Ubuntu 14.04.3 LTS "Trusty Tahr" - Beta amd64 (20150805)
SourcePackage: libxml2
Title: package python-libxml2 2.9.1+dfsg1-3ubuntu4.4 failed to install/upgrade: subprocess new pre-removal script returned error exit status 127
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: libxml2 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-package trusty

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libxml2 in Ubuntu.
https://bugs.launchpad.net/bugs/1538145

Title:
  package python-libxml2 2.9.1+dfsg1-3ubuntu4.4 failed to
  install/upgrade: subprocess new pre-removal script returned error exit
  status 127

Status in libxml2 package in Ubuntu:
  New

Bug description:
  I receive the following output when I try to install any package,
  etc.. Here is the output:

  user@user-OptiPlex-7010:~$ sudo apt-get install synaptic
  [sudo] password for user:
  Reading package lists... Done
  Building dependency tree
  Reading state information... Done
  synaptic is already the newest version.
  The following packages were automatically installed and are no longer required:
    apturl apturl-common attr libhdb9-heimdal libkdc2-heimdal python-dnspython
    samba-dsdb-modules samba-vfs-modules tdb-tools
  Use 'apt-get autoremove' to remove them.
  The following extra packages will be installed:
    apport python-apt python-libxml2 python-samba python-urllib3
  Suggested packages:
    python-apt-dbg python-vte python-apt-doc
  The following packages will be upgraded:
    apport python-apt python-libxml2 python-samba python-urllib3
  5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  15 not fully installed or removed.
  Need to get 0 B/1,383 kB of archives.
  After this operation, 5,120 B of additional disk space will be used.
  Do you want to continue? [Y/n] y
  (Reading database ... 216930 files and directories currently installed.)
  Preparing to unpack .../apport_2.14.1-0ubuntu3.19_all.deb ...
  apport stop/waiting
  /var/lib/dpkg/info/apport.prerm: 14: /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: 14: /var/lib/dpkg/tmp.ci/prerm: pyclean: not found
  dpkg: error processing archive /var/cache/apt/archives/apport_2.14.1-0ubuntu3.19_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-apt_0.9.3.5ubuntu2_amd64.deb ...
  /var/lib/dpkg/info/python-apt.prerm: 6: /var/lib/dpkg/info/python-apt.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-apt_0.9.3.5ubuntu2_amd64.deb (--unpack):
   subprocess new pre-removal script returned error exit status 127
  /var/lib/dpkg/info/python-apt.postinst: 6: /var/lib/dpkg/info/python-apt.postinst: pycompile: not found
  dpkg: error while cleaning up:
   subprocess installed post-installation script returned error exit status 127
  Preparing to unpack .../python-libxml2_2.9.1+dfsg1-3ubuntu4.7_amd64.deb ...
  /var/lib/dpkg/info/python-libxml2.prerm: 6: /var/lib/dpkg/info/python-libxml2.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-libxml2_2.9.1+dfsg1-3ubuntu4.7_amd64.deb (--unpack):
   subprocess new pre-removal script returned error exit status 127
  /var/lib/dpkg/info/python-libxml2.postinst: 6: /var/lib/dpkg/info/python-libxml2.postinst: pycompile: not found
  dpkg: error while cleaning up:
   subprocess installed post-installation script returned error exit status 127
  Selecting previously unselected package python-samba.
  Preparing to unpack .../python-samba_2%3a4.1.6+dfsg-1ubuntu2.14.04.11_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.1.6+dfsg-1ubuntu2.14.04.11_amd64.deb (--unpack):
   subprocess new pre-removal script returned error exit status 127
  No apport report written because MaxReports is reached already
                                                                /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-urllib3_1.7.1-1ubuntu4_all.deb ...
  /var/lib/dpkg/info/python-urllib3.prerm: 6: /var/lib/dpkg/info/python-urllib3.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-urllib3_1.7.1-1ubuntu4_all.deb (--unpack):
   subprocess new pre-removal script returned error exit status 127
  No apport report written because MaxReports is reached already
                                                                /var/lib/dpkg/info/python-urllib3.postinst: 6: /var/lib/dpkg/info/python-urllib3.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.14.1-0ubuntu3.19_all.deb
   /var/cache/apt/archives/python-apt_0.9.3.5ubuntu2_amd64.deb
   /var/cache/apt/archives/python-libxml2_2.9.1+dfsg1-3ubuntu4.7_amd64.deb
   /var/cache/apt/archives/python-samba_2%3a4.1.6+dfsg-1ubuntu2.14.04.11_amd64.deb
   /var/cache/apt/archives/python-urllib3_1.7.1-1ubuntu4_all.deb
  E: Sub-process /usr/bin/dpkg returned an error code (1)

  ProblemType: Package
  DistroRelease: Ubuntu 14.04
  Package: python-libxml2 2.9.1+dfsg1-3ubuntu4.4
  ProcVersionSignature: Ubuntu 3.19.0-47.53~14.04.1-generic 3.19.8-ckt10
  Uname: Linux 3.19.0-47-generic x86_64
  ApportVersion: 2.14.1-0ubuntu3.11
  Architecture: amd64
  Date: Tue Jan 26 21:30:44 2016
  DuplicateSignature: package:python-libxml2:2.9.1+dfsg1-3ubuntu4.4:subprocess new pre-removal script returned error exit status 127
  ErrorMessage: subprocess new pre-removal script returned error exit status 127
  InstallationDate: Installed on 2016-01-18 (8 days ago)
  InstallationMedia: Ubuntu 14.04.3 LTS "Trusty Tahr" - Beta amd64 (20150805)
  SourcePackage: libxml2
  Title: package python-libxml2 2.9.1+dfsg1-3ubuntu4.4 failed to install/upgrade: subprocess new pre-removal script returned error exit status 127
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libxml2/+bug/1538145/+subscriptions


Follow ups