E: /var/cache/apt/archives/havp_0.86-1ubuntu0.1_i386.deb: le sous-processus nouveau script pre-removal a retourné une erreur de sortie d'état 1

Bug #296499 reported by Hamado1
8
Affects Status Importance Assigned to Milestone
havp (Ubuntu)
Fix Released
Low
Unassigned
Intrepid
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: havp

E: /var/cache/apt/archives/havp_0.86-1ubuntu0.1_i386.deb: le sous-processus nouveau script pre-removal a retourné une erreur de sortie d'état 1

ProblemType: Package
Architecture: i386
Date: Mon Nov 10 21:38:11 2008
DistroRelease: Ubuntu 8.04
ErrorMessage: le sous-processus nouveau script pre-removal a retourné une erreur de sortie d'état 1
Package: havp 0.86-1build1
PackageArchitecture: i386
SourcePackage: havp
Title: package havp 0.86-1build1 failed to install/upgrade: le sous-processus nouveau script pre-removal a retourné une erreur de sortie d'état 1
Uname: Linux 2.6.24-19-generic i686

I tried vainly to uninstall havp and reinstall it correctly. I got the following message:
ouedraogo1@ouedraogo1-laptop:~$ sudo apt-get install havp
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
E: Le paquet havp doit être réinstallé, mais je ne parviens pas à trouver son archive.
How can I find the archive?
I can't update no more...

Revision history for this message
Hamado1 (hamado-ouedraogo) wrote :
Revision history for this message
Hamado1 (hamado-ouedraogo) wrote :

What may I do to correct this problem?

Changed in havp:
status: New → Invalid
description: updated
Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Quick translation (not literal, though):

Trying to replace havp 0.86-1build1 (using .../havp_0.86-1ubuntu0.1_i386.deb)
Unmounting /var/spool/havp ...umount: /var/spool/havp: device busy
umount: /var/spool/havp: device busy
invoke-rc.d: initscript havp, action "stop" failed.
dpkg : avertissement - old pre-removal script retourned exit status 1

Revision history for this message
Morten Kjeldgaard (mok0) wrote :

This problem can be solved by introducing a lazy umount in two maintainer scripts. Please see attached debdiff. I need a SRU exception before upload.

Revision history for this message
Morten Kjeldgaard (mok0) wrote :

This is a bug, why was it converted to a question?

Changed in havp:
importance: Undecided → Low
status: Invalid → Confirmed
Revision history for this message
Scott Kitterman (kitterman) wrote : Re: [Bug 296499] Re: E: /var/cache/apt/archives/havp 0.86-1ubuntu0.1 i386.deb: le sous-processus n ouveau script pre-removal a retourné une erreur de so rtie d'état 1

ubuntu2 should be for Jaunty and uploaded first. Then ubuntu1.1 for the
SRU.

Revision history for this message
Hamado1 (hamado-ouedraogo) wrote :

I was in doubt but now, I'm convince that I'm lost... I've tried some of these solutions (those I can!) but there is no change. I don't understand them all! Please be explicit in your answers by writting the commands clearly. It's very useful for me. Thanks to all for your contributions and your good will

Changed in havp:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Morten Kjeldgaard (mok0) wrote :

Hamado1,

Your circumstances are special, because you have already installed the package, and the postrm and init scripts will keep failing and prevent you from un-installing the package (and possibly upgrading).

You need to edit these two scripts in your file system:

/etc/init.d/havp
/var/lib/dpkg/info/havp.postrm

In both files, find the lines that contain "umount", and change that to "umount -l" -- or if that doesn't work either, simply remove or comment-out those lines.

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

This bug was fixed in the package havp - 0.89-1ubuntu2

---------------
havp (0.89-1ubuntu2) jaunty; urgency=low

  * Under certain circumstances, the init script and/or postrm script
    will fail to umount loop-back devices (LP: #296499). This
    issue has been addressed by performing a lazy umount in these
    two scripts.

 -- Morten Kjeldgaard <email address hidden> Thu, 13 Nov 2008 00:10:22 +0100

Changed in havp:
status: Confirmed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

Accepted into intrepid-proposed, please test and give feedback here. Please see https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in havp:
status: Confirmed → Fix Committed
Revision history for this message
Alessio Treglia (quadrispro) wrote :

 --- 0.89-1ubuntu1 (intrepid): the issue is still present
 --- 0.89-1ubuntu1.1 (intrepid-proposed): contains the patch, lasy mount fixes this issue.

Revision history for this message
Alessio Treglia (quadrispro) wrote :

s/lasy/lazy

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

This bug was fixed in the package havp - 0.89-1ubuntu1.1

---------------
havp (0.89-1ubuntu1.1) intrepid-proposed; urgency=low

  * Under certain circumstances, the init script and/or postrm script
    will fail to umount loop-back devices (LP: #296499). This
    issue has been addressed by performing a lazy umount in these
    two scripts.

 -- Morten Kjeldgaard <email address hidden> Thu, 13 Nov 2008 00:10:22 +0100

Changed in havp:
status: Fix Committed → Fix Released
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.