dpkg-reconfigure flashplugin-nonfree breaks package installation

Bug #139182 reported by Alexey Borzenkov
18
Affects Status Importance Assigned to Milestone
flashplugin-nonfree (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: flashplugin-nonfree

After successfully installing flashplugin-nonfree (after locally applying patch from bug #133452, though the same happens for vanilla flashplugin-nonfree 9.0.48.0.0ubuntu9_amd64) I found that dpkg-reconfigure flashplugin-nonfree deletes essential files and breaks flash installation. Example:

$ sudo dpkg-reconfigure flashplugin-nonfree
Installing from local file /var/cache/flashplugin-nonfree/install_flash_player_9_linux.tar.gz
install: target `/usr/lib/flashplugin-nonfree/' is not a directory: No such file or directory

After this I found that /usr/lib/flashplugin-nonfree is indeed gone and I have to reinstall. Don't really understand what's going on (and when the directory gets deleted) so can't offer a patch, sorry.

My system is gutsy/amd64.

Revision history for this message
Alexey Borzenkov (snaury) wrote :

Daniel, are you sure that my bug is really a duplicate of bug #138853? To me it seems wrong. I have successfully installed (patched) package and it configures fine, the problem is actually with dpkg-reconfigure. Directory /usr/lib/flashplugin-nonfree gets deleted in prerm, but then it is _not_created_ again (so install fails). The quick fix is as follows:

diff -Nru /tmp/9lx1ZzfUtl/flashplugin-nonfree-9.0.48.0.0ubuntu9/debian/prerm /tmp/JnS0N6r0fq/flashplugin-nonfree-9.0.48.0.0ubuntu9dragonfox2/debian/prerm
--- /tmp/9lx1ZzfUtl/flashplugin-nonfree-9.0.48.0.0ubuntu9/debian/prerm 2007-09-11 12:28:09.000000000 +0400
+++ /tmp/JnS0N6r0fq/flashplugin-nonfree-9.0.48.0.0ubuntu9dragonfox2/debian/prerm 2007-09-12 23:34:41.000000000 +0400
@@ -37,7 +37,7 @@
  upgrade|deconfigure)
   update-rc.d -f flashplugin-nonfree remove >/dev/null 2>&1
   rm -rf /usr/lib/flashplugin-nonfree-unpackdir
- rm -rf /usr/lib/flashplugin-nonfree
+ rm -f /usr/lib/flashplugin-nonfree/*
   rm -f /var/lib/flashplugin-nonfree/*
   rm -f /var/cache/flashplugin-nonfree/libflashplayer.so
   rm -f /var/cache/flashplugin-nonfree/flashplayer.xpt

But I'm not sure if it's the right way. I don't understand where /usr/lib/flashplugin-nonfree is actually created in the first place! x_x

Revision history for this message
Alexander Sack (asac) wrote :

flashplugin-nonfree (9.0.48.0.0ubuntu10) gutsy; urgency=low

  * debian/dirs: add midbrowser dir to fix install (LP: #139255).
  * debian/postinst: use /var/lib/flashplugin-nonfree/npwrapper.libflashplayer.so
    as alternative target on amd64 (LP: #133452).
  * debian/prerm: fix dpkg-reconfigure error - don't remove debhelper created
    directory in prerm (LP: #139182).
  * debian/prerm: --remove-all alternatives explicitly when this plugin was
    the last $X-flashplugin alternative.

 -- Alexander Sack <email address hidden> Thu, 13 Sep 2007 12:50:12 +0200

Changed in flashplugin-nonfree:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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