7.10 Gusty Gibbon flashplugin-nonfree will not install (bad postinst file)

Bug #131908 reported by apache2
4
Affects Status Importance Assigned to Milestone
flashplugin-nonfree (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

On a clean install gusty gibbon i386 machine:
sudo apt-get install flashplugin-nonfree

It will precede to download and setup but has an error. Here is a copy of my output:

ryan@ryan-laptop:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up flashplugin-nonfree (9.0.48.0.0ubuntu6) ...
/var/lib/dpkg/info/flashplugin-nonfree.postinst: 107: Syntax error: "do" unexpected (expecting "fi")
dpkg: error processing flashplugin-nonfree (--configure):
 subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
 flashplugin-nonfree
E: Sub-process /usr/bin/dpkg returned an error code (1)

Seems to be something wrong in the postinst file.

Revision history for this message
apache2 (sullr) wrote :

Also check out https://bugs.launchpad.net/ubuntu/+source/gnash/+bug/131864

In mozilla-plugin-gnash there was a similar problem apparently solved by Mario Đanić

Revision history for this message
apache2 (sullr) wrote :

I inspected mario's fix and here is the solution for flashplugin-nonfree:

in /var/lib/dpkg/info/flashplugin-nonfree.postinst, line 107,

replace:
‘for p in iceape iceweasel mozilla firefox xulrunner; do update-alternatives --install "/usr/lib/$p/plugins/flashplugin-alternative.so" "$p-flashplugin" /usr/lib/flashplugin-nonfree/libflashplayer.so 50; done’

with:
 for p in iceape iceweasel mozilla firefox xulrunner; do
      update-alternatives --install "/usr/lib/$p/plugins/flashplugin-alternative.so" "$p-flashplugin" /usr/lib/flashplugin-nonfree/libflashplugin.so 50;
     done

Proud to be of service!

Revision history for this message
apache2 (sullr) wrote :

Here is a working patch

Daniel T Chen (crimsun)
Changed in flashplugin-nonfree:
status: Confirmed → 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.