upon upgrade to 12.04 perl broken with unmet dependencies package libxml-libxml-perl 1.70.ds-1build1 failed to install/upgrade: subprocess installed pre-removal script returned error exit status 127

Bug #1085690 reported by j
222
This bug affects 52 people
Affects Status Importance Assigned to Milestone
libxml-libxml-perl (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

i upgraded to 12.04 and this error was instantly there. i've tried to uninstall this broken package but it's gives another error message . i followed these instrux:
Try Code: sudo apt-get clean && sudo apt-get autoclean && sudo apt-get -f install
and still get the error

ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: libxml-libxml-perl 1.70.ds-1build1
ProcVersionSignature: Ubuntu 3.2.0-34.53-generic 3.2.33
Uname: Linux 3.2.0-34-generic i686
ApportVersion: 2.0.1-0ubuntu5
AptOrdering: libxml-libxml-perl: Remove
Architecture: i386
Date: Sat Dec 1 20:20:38 2012
DpkgTerminalLog:
 Removing libxml-libxml-perl ...
 /var/lib/dpkg/info/libxml-libxml-perl.prerm: 11: /var/lib/dpkg/info/libxml-libxml-perl.prerm: update-perl-sax-parsers: not found
 dpkg: error processing libxml-libxml-perl (--remove):
  subprocess installed pre-removal script returned error exit status 127
ErrorMessage: subprocess installed pre-removal script returned error exit status 127
InstallationMedia: EasyPeasy 1.6
SourcePackage: libxml-libxml-perl
Title: package libxml-libxml-perl 1.70.ds-1build1 failed to install/upgrade: subprocess installed pre-removal script returned error exit status 127
UpgradeStatus: Upgraded to precise on 2012-12-02 (0 days ago)

Revision history for this message
j (f44w9zx3z) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libxml-libxml-perl (Ubuntu):
status: New → Confirmed
Revision history for this message
Tim Hoerig (timhoerig) wrote :

Unable to remove broken package libxml-libxml-perl using

synaptic or

sudo apt-get autoremove
sudo apt-get -f install

after following many clues in other posts hit upon this

cd /
sudo find . -name libxml-libxml*
cd /var/lib/dpkg/info
sudo rm libxml-libxml-perl.*

there were four libxml-libxml-perl.* files in the directory, sorry forgot to write them down.

Anyhow removing those files allowed

sudo apt-get autoremove
sudo apt-get -f install

to do their thing

Revision history for this message
Erik Steinholtz (esteinholtz) wrote :

Thanks Tim for helping me out here... I am back to order now.

The files are btw:

libxml-libxml-perl.list
libxml-libxml-perl.postinst
libxml-libxml-perl.md5sums
libxml-libxml-perl.prerm

I remembered seeing sosmething about the preremoval script casuing a problem, so i tried simply:

sudo rm /var/lib/dpkg/info/libxml-libxml-perl.prerm

...and voila! problem solved by a one-liner.

Revision history for this message
Bob Gottschalk (sgtrwg) wrote :

Eric your one-liner did the job for me.

Thanks

Revision history for this message
Solomon Paul Kancharla (solomonpaul55) wrote :

thanks tim

Revision history for this message
xavi pujolras (xpixow) wrote :

This also worked for me. (sudo rm /var/lib/dpkg/info/libxml-libxml-perl.prerm)

Thanks!!

Revision history for this message
VladCE (highflower) wrote :

After removal the problem is still there though differs. Perl does not work, so Update Manager does not, saying 'you may have a problem'.
sudo apt-get autoremove
sudo apt-get -f install

returns '1 package is not updated'

hugo (malave-hugo)
Changed in libxml-libxml-perl (Ubuntu):
status: Confirmed → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libxml-libxml-perl (Ubuntu):
status: New → Confirmed
Revision history for this message
zampa (j-p-zampa) wrote :

Thanks to Erik for the oneliner, and to all contributors
This worked for me too:

sudo rm /var/lib/dpkg/info/libxml-libxml-perl.prerm
sudo apt-get -f install
sudo apt-get autoremove

everything seems to be working - update manager, etc.

Revision history for this message
syed adeel hasnain (syedadeel-hasnain) wrote :

plz help me this bug is realy disturb me even i cant install any thing from ubuntu software center

Revision history for this message
syed adeel hasnain (syedadeel-hasnain) wrote :

tered while processing:
 libxml-libxml-perl
E: Sub-process /usr/bin/dpkg returned an error code (1)

what to do ??????

Revision history for this message
syed adeel hasnain (syedadeel-hasnain) wrote :

thx tim now my problum solve thx alot

Revision history for this message
jpsz (jpsz) wrote : Re: [Bug 1085690] Re: upon upgrade to 12.04 perl broken with unmet dependencies package libxml-libxml-perl 1.70.ds-1build1 failed to install/upgrade: subprocess installed pre-removal script returned error exit status 127

Le 21/04/2013 18:10, syed adeel hasnain a écrit :
> plz help me this bug is realy disturb me even i cant install any thing
> from ubuntu software center
>
Hello
As I couldn't installed anything, I have completely re-installed another
version: Lubuntu 12.10!
Lubuntu is not so performing, but it's lighter...
and now I can upgrade, and install without problem

good luck

Revision history for this message
Fernando Herrera (nemesis333) wrote :

thanks for the oneliner!!

Revision history for this message
pierre graves (pierre-graves-0) wrote :

Thanks TIm et al, this worked for me too!

sudo rm /var/lib/dpkg/info/libxml-libxml-perl.prerm
sudo apt-get -f install
sudo apt-get autoremove

Revision history for this message
Braulio Trujillo (brauliotrujillo) wrote :

After trying many many other "solutions" this one worked for me (removing the .prerm file)

Thanks a lot!!

seydou (traore-seydou86)
Changed in libxml-libxml-perl (Ubuntu):
status: Confirmed → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libxml-libxml-perl (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.