typo in prerm file breaks failed-upgrade processing

Bug #213827 reported by Tiziano Faion
6
Affects Status Importance Assigned to Milestone
flashplugin-nonfree (Ubuntu)
Fix Released
High
Mozilla Bugs

Bug Description

In line 88 of prerm file of package flashplugin-nonfree_9.0.115.0ubuntu5_amd64 there is a typo that makes impossible to remove that package
file is attached

Revision history for this message
Tiziano Faion (tiziano-e-tip) wrote :
Revision history for this message
xtknight (xt-knight) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

Is the file attached the one with the error? If so, what is the correction for the typo?

What version of Ubuntu is affected? What error do you get when you try to remove the package, or what are the expected and actual results?

Revision history for this message
xtknight (xt-knight) wrote :

This bug will be reopened when the information above is provided.

Changed in flashplugin-nonfree:
status: New → Incomplete
Revision history for this message
Tiziano Faion (tiziano-e-tip) wrote :

The file attachet id the one with error and you can find error at line 80
package version is 9.0.124.0ubuntu1
here i report the error , i think the command should be an echo

 else
   cho "prerm called with argument \`$1'" >&2
   exit 1
  fi
  ;;
 *)

Revision history for this message
John Vivirito (gnomefreak) wrote :

Looks like it should be echo not cho.

Can you please install the latest flash package ubuntu version 9.0.124.0ubuntu1 and see if you still see this problem

Changed in flashplugin-nonfree:
assignee: nobody → mozilla-bugs
Revision history for this message
Tiziano Faion (tiziano-e-tip) wrote : Re: [Bug 213827] Re: typo in prerm file avoids package remove

 > Can you please install the latest flash package ubuntu version
> 9.0.124.0ubuntu1 and see if you still see this problem

I've tried but i haven't managed to upgrade the package, now i cannot
remove, upgrade reinstall the package.

Revision history for this message
xtknight (xt-knight) wrote : Re: typo in prerm file avoids package remove

hardy debdiff that should fix the problem

Revision history for this message
xtknight (xt-knight) wrote :

Tiziano: for me, I can remove the bugged package fine.

sudo dpkg --purge flashplugin-nonfree
(Reading database ... 186448 files and directories currently installed.)
Removing flashplugin-nonfree ...
Purging configuration files for flashplugin-nonfree ...

What exact message do you get when you try to remove the package?

Revision history for this message
Tiziano Faion (tiziano-e-tip) wrote :

Well at this moment i can't paste the error cause it happens in my work office,
Tomorrow i'm posting it.
It says something about a exec format error

Revision history for this message
Tiziano Faion (tiziano-e-tip) wrote :

Well at this moment i can't paste the error cause it happens in my work office pc,
Tomorrow i'm posting it.
It says something about a exec format error

Revision history for this message
John Vivirito (gnomefreak) wrote :

xtknight,
Thanks for the debdiff can you please ping someone from motu at #ubuntu-motu or mozilla team at
#ubuntu-mozillateam.

Revision history for this message
John Vivirito (gnomefreak) wrote :

xtknight,
Are you able to confirm that the newest flash package has same error in prerm?

Revision history for this message
Tiziano Faion (tiziano-e-tip) wrote :

xtknight,
here it is the error when trying to reinstall package

tiziano@poseidon:~/Desktop$ sudo dpkg -i flashplugin-nonfree_9.0.115.0ubuntu5_amd64.deb
(Reading database ... 163527 files and directories currently installed.)
Preparing to replace flashplugin-nonfree 9.0.115.0ubuntu5 (using flashplugin-nonfree_9.0.115.0ubuntu5_amd64.deb) ...
dpkg (subprocess): unable to execute old pre-removal script: Exec format error
dpkg: warning - old pre-removal script returned error exit status 2
dpkg - trying script from the new package instead ...
prerm called with argument `failed-upgrade'
dpkg: error processing flashplugin-nonfree_9.0.115.0ubuntu5_amd64.deb (--install):
 subprocess new pre-removal script returned error exit status 1
dpkg (subprocess): unable to execute post-installation script: Exec format error
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
 flashplugin-nonfree_9.0.115.0ubuntu5_amd64.deb
tiziano@poseidon:~/Desktop$

Revision history for this message
xtknight (xt-knight) wrote :

Tiziano Faion: thanks. That is the old package. So, does the new one fix the issue?

You should simply be able to type "sudo dpkg -i newpackage.deb". If not, maybe "sudo dpkg -i --force-all newpackage.deb".

Make sure you download the AMD64 Hardy version from here (you're on Hardy, right?) https://launchpad.net/~xt-knight/+archive
Version should be flashplugin-nonfree - 9.0.124.0ubuntu2~ppa1.

John Vivirito: The latest Hardy package (9.0.124.0ubuntu1) has the problem. -ubuntu2 is the debdiff to fix -ubuntu1's problem.

Hardy, Gutsy, Edgy (Flash 9), Dapper (Flash 9) have the problem. Not sure if it's worth an SRU?
Feisty, Edgy (Flash 7), Dapper (Flash 7) do not.

List of affected packages:

hardy flashplugin-nonfree (9.0.124.0ubuntu1) [multiverse]
gutsy-updates flashplugin-nonfree (9.0.124.0ubuntu1~gutsy1) [multiverse]
gutsy flashplugin-nonfree (9.0.48.0.2+really0ubuntu12) [multiverse]
edgy-backports flashplugin-nonfree (9.0.48.0.0ubuntu11~edgy1) [multiverse]
dapper-backports flashplugin-nonfree (9.0.48.0.0ubuntu11~dapper3) [multiverse]

Changed in flashplugin-nonfree:
status: Incomplete → Confirmed
Revision history for this message
Alexander Sack (asac) wrote :

this is only for failed-upgrade cases. still a bug that should be fixed asap.

subscribing motu-release to get hardy exception and ubuntu-universe sponsors to get this on track.

Changed in flashplugin-nonfree:
status: Confirmed → Fix Committed
importance: Undecided → High
Revision history for this message
StefanPotyra (sistpoty) wrote :

sure :).

Revision history for this message
Scott Kitterman (kitterman) wrote : Re: [Bug 213827] Re: typo in prerm file breaks failed-upgrade processing

ack if no one else has already.

Revision history for this message
Tiziano Faion (tiziano-e-tip) wrote :

xtknight:
the new package don't resolve the problem i'm still unable to install new version... the error is the same: exec format

Revision history for this message
xtknight (xt-knight) wrote :

Tiziano: I don't know, this sounds like another problem to me (probably that you can't remove the old package?) The new debs have the fix in them.

You'll probably have to remove the flashplugin-nonfree block from /var/lib/dpkg/status and try again. That's a last resort, though.

Revision history for this message
Tiziano Faion (tiziano-e-tip) wrote :

Yes, seems like old package cannot be removed. i'will remove block from /var/lib/dpkg/status and see what happens. that's very frustrating 'cause i cannot install anything

Revision history for this message
Daniel Hahler (blueyed) wrote :

Tiziano's error appears to be in postinst: "dpkg (subprocess): unable to execute post-installation script: Exec format error".
Tiziano, please try purging the current package, before fiddling in /var/lib/dpkg/status directly. You only seem to have tried to reinstall it:
$ sudo dpkg -P flashplugin-nonfree

As for the typo, I don't think it makes any difference, the next line would be "exit 1" anyway, so the script fails also for "failed-upgrade", if the typo is fixed.

IMHO the typo should be fixed, but also the "exit 1" changed to "exit 0", but please investigate, if "exit 1" has any special meaning in prerm.

Revision history for this message
xtknight (xt-knight) wrote :

I can't reproduce the problem and I'm not sure why Tiziano's system is falling through to "cho" or "exit 1".

                if dpkg --compare-versions "$2" ">>" 9.0.48.0.0ubuntu4 &&
                   dpkg --compare-versions "$2" "<<" 9.0.48.0.0ubuntu8

I think that happens if it detects a Flash between 9.0.48.0.0ubuntu4 and 9.0.48.0.0ubuntu8 on his system, but I don't know why he would have had this version if he had Hardy. His problem should not happen on the release disc or the latest Hardy.

I don't believe the typo would fix the problem either, because "exit 1" would still yield a nonzero error code.

Anyway, he got an exec-format error and this would not be caused by "cho" as far as I can tell. Tiziano, I think that your /bin/sh may be broken. I'm not sure why this would be, but if removing it from status doesn't fix your problem, and you still can't install other packages, then something else is probably messed up with your system.

Revision history for this message
xtknight (xt-knight) wrote :

Actually you might hold off on removing it from dpkg/status if anyone else has suggestions. I'd still be interested to see the Package: flashplugin-nonfree block on status if you still have it.

Revision history for this message
Tiziano Faion (tiziano-e-tip) wrote :

i've investigated a little more and tried to execute postinst file manually,
that's what i get
update-alternatives: error or eof reading /var/lib/dpkg/alternatives/iceape-flashplugin for update_mode ()

(i hope the translation is correct)

Revision history for this message
Andrea Colangelo (warp10) wrote :

Unsubscribing u-u-s, since I don't see any valid debdiff attached.

Revision history for this message
Daniel Hahler (blueyed) wrote :

Tiziano: just for info, to get the original message, just set LANG=C, e.g.:
LANG=C sudo /path/to/postinst

eissaaidy (eissaaidy)
Changed in flashplugin-nonfree (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
opsilos (pick2005) wrote :

try this command for remove:

sudo dpkg --remove --force-remove-reinstreq flashplugin-installer

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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