firefox-2 postinstall points to wrong location of restart-required.update-notifier

Bug #207029 reported by Egon Willighagen
64
This bug affects 2 people
Affects Status Importance Assigned to Milestone
firefox (Ubuntu)
Fix Released
High
Unassigned
Hardy
Fix Released
High
Alexander Sack
Intrepid
Fix Released
High
Unassigned

Bug Description

Upgrading on hardy today for firefox-2 did not work (I'm sure I'm not the only one reporting this, but the LaunchPad search did not show up anything relevant... sorry of possibly duplication)

Upgrade fails because postinstall points to wrong location of a restartrequired script:

$ sudo aptitude safe-upgrade
[sudo] password for egonw:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following partially installed packages will be configured:
  firefox-2
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Setting up firefox-2 (2.0.0.13+1nobinonly-0ubuntu1) ...
Please restart any running Firefoxes, or you will experience problems.
cp: cannot stat `/usr/share/firefox-2/firefox-2-restart-required.update-notifier': No such file or directory
dpkg: error processing firefox-2 (--configure):
 subprocess post-installation script returned error exit status 1
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 firefox-2
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up firefox-2 (2.0.0.13+1nobinonly-0ubuntu1) ...
Please restart any running Firefoxes, or you will experience problems.
cp: cannot stat `/usr/share/firefox-2/firefox-2-restart-required.update-notifier': No such file or directory
dpkg: error processing firefox-2 (--configure):
 subprocess post-installation script returned error exit status 1
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 firefox-2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done

The script is available from a differnt path:

$ dpkg -S firefox-2-restart-required.update-notifier
firefox-2: /usr/share/firefox/firefox-2-restart-required.update-notifier

Revision history for this message
Fedor Isakov (fisakov) wrote :

Confirming same bug on hardy x86_64.

After executing

$ sudo ln -s /usr/share/firefox /usr/share/firefox-2

the following

$ sudo dpkg --configure --pending

 - completed successfully.

Changed in firefox:
assignee: nobody → mozilla-bugs
status: New → Incomplete
Revision history for this message
rob van dyck (rob-van-dyck) wrote :

I confirm this problem as well. I uninstalled firefox 3 and installed firefox 2 [because of the need of a certain plugin].

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

this was an intermediate issue. reinstalling the latest should fix this for you. otherwise reopen.

Changed in firefox:
status: Incomplete → Invalid
Revision history for this message
Matti Lindell (mlind) wrote :
Download full text (3.6 KiB)

I just ran into this issue when testing firefox-2 (2.0.0.13+1nobinonly-0ubuntu1) in a lvm snapshot volume. The first install went without problems. After purging the package and trying to reinstall the error occured:

$ sudo aptitude purge firefox-2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following packages will be REMOVED:
  firefox-2{p}
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 26.7MB will be freed.
Do you want to continue? [Y/n/?] y
Writing extended state information... Done
(Reading database ... 115382 files and directories currently installed.)
Removing firefox-2 ...
Purging configuration files for firefox-2 ...
dpkg - warning: while removing firefox-2, directory `/etc/firefox/pref' not empty so not removed.
dpkg - warning: while removing firefox-2, directory `/etc/firefox' not empty so not removed.
dpkg - warning: while removing firefox-2, directory `/usr/lib/firefox/components' not empty so not removed.
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Building tag database... Done

(hardy-snapshot)root@sandbox:/usr/lib/firefox$ sudo aptitude install firefox-2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following NEW packages will be installed:
  firefox-2
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/9190kB of archives. After unpacking 26.7MB will be used.
Writing extended state information... Done
Selecting previously deselected package firefox-2.
(Reading database ... 114883 files and directories currently installed.)
Unpacking firefox-2 (from .../firefox-2_2.0.0.13+1nobinonly-0ubuntu1_i386.deb) ...
Setting up firefox-2 (2.0.0.13+1nobinonly-0ubuntu1) ...
Please restart any running Firefoxes, or you will experience problems.
cp: cannot stat `/usr/share/firefox-2/firefox-2-restart-required.update-notifier': No such file or directory
dpkg: error processing firefox-2 (--configure):
 subprocess post-installation script returned error exit status 1
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 firefox-2
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up firefox-2 (2.0.0.13+1nobinonly-0ubuntu1) ...
Please restart any running Firefoxes, or you will experience problems.
cp: cannot stat `/usr/share/firefox-2/firefox-2-restart-required.update-notifier': No such file or directory
dpkg: error processing firefox-2 (--configure):...

Read more...

Changed in firefox:
status: Invalid → Confirmed
Revision history for this message
Ilja Pavkovic (ipavkovic) wrote :

Same for me today:

$ sudo apt-get upgrade
[...]
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
1 nicht vollständig installiert oder entfernt.
After this operation, 0B of additional disk space will be used.
Richte firefox-2 ein (2.0.0.14+2nobinonly-0ubuntu1) ...
Please restart any running Firefoxes, or you will experience problems.
cp: cannot stat `/usr/share/firefox-2/firefox-2-restart-required.update-notifier': No such file or directory
dpkg: Fehler beim Bearbeiten von firefox-2 (--configure):
 Unterprozess post-installation script gab den Fehlerwert 1 zurück
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Fehler traten auf beim Bearbeiten von:
 firefox-2
E: Sub-process /usr/bin/dpkg returned an error code (1

Revision history for this message
Mary Gardiner (puzzlement) wrote :

Regarding Alexander Sack's instructions to reinstall, I found that this worked ONLY IF I closed Firefox first.

With Firefox closed, "sudo reinstall firefox-2" works:

Setting up firefox-2 (2.0.0.14+2nobinonly-0ubuntu1) ...
Please restart any running Firefoxes, or you will experience problems.

Processing triggers for libc6 ...
ldconfig deferred processing now taking place

--------------------

When I previously left Firefox open, it continued to fail:

Setting up firefox-2 (2.0.0.14+2nobinonly-0ubuntu1) ...
Please restart any running Firefoxes, or you will experience problems.
cp: cannot stat `/usr/share/firefox-2/firefox-2-restart-required.update-notifier': No such file or directory
dpkg: error processing firefox-2 (--configure):
 subprocess post-installation script returned error exit status 1
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 firefox-2
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up firefox-2 (2.0.0.14+2nobinonly-0ubuntu1) ...
Please restart any running Firefoxes, or you will experience problems.
cp: cannot stat `/usr/share/firefox-2/firefox-2-restart-required.update-notifier': No such file or directory
dpkg: error processing firefox-2 (--configure):
 subprocess post-installation script returned error exit status 1

Revision history for this message
Mary Gardiner (puzzlement) wrote :

Sorry, my command should be "sudo aptitude reinstall firefox-2".

Alexander Sack (asac)
Changed in firefox:
importance: Undecided → High
milestone: none → ubuntu-8.04.1
status: New → Confirmed
status: Confirmed → Triaged
assignee: mozilla-bugs → nobody
importance: Undecided → High
status: Confirmed → Triaged
Revision history for this message
Alexander Sack (asac) wrote :

fix committed to .hardy updates branch

Changed in firefox:
status: Triaged → Fix Committed
Revision history for this message
Alexander Sack (asac) wrote :

fix committed to develoment branch for intrepid.

Changed in firefox:
status: Triaged → Fix Committed
Alexander Sack (asac)
Changed in firefox:
assignee: nobody → asac
Revision history for this message
Steve Langasek (vorlon) wrote :

Marking this as 'in progress' since it hasn't been uploaded yet to -proposed, we unfortunately have overloaded semantics for the 'fix committed' status.

Also dropping the milestone; this is appropriate for an SRU but not time-critical since there have not yet been any updates of firefox-2 within 8.04.1 and the 'pgrep firefox-2-bin' will always return false on the first install of the pcakage.

Changed in firefox:
milestone: ubuntu-8.04.1 → none
status: Fix Committed → In Progress
Revision history for this message
Alexander Sack (asac) wrote : Re: [Bug 207029] Re: firefox-2 postinstall points to wrong location of restart-required.update-notifier

On Tue, Jun 10, 2008 at 12:46:57AM -0000, Steve Langasek wrote:
> Marking this as 'in progress' since it hasn't been uploaded yet to
> -proposed, we unfortunately have overloaded semantics for the 'fix
> committed' status.
>
> Also dropping the milestone; this is appropriate for an SRU but not
> time-critical since there have not yet been any updates of firefox-2
> within 8.04.1 and the 'pgrep firefox-2-bin' will always return false on
> the first install of the pcakage.
>
> ** Changed in: firefox (Ubuntu Hardy)
> Status: Fix Committed => In Progress
> Target: ubuntu-8.04.1 => None
>

fyi, the 2.0.0.15 upgrade which will bring this fix to hardy is
expected to be end of June. As usual, no guarantees.

 - Alexander

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

This bug was fixed in the package firefox - 2.0.0.15+1nobinonly-0ubuntu0.8.04.2

---------------
firefox (2.0.0.15+1nobinonly-0ubuntu0.8.04.2) hardy-security; urgency=low

  * New security/stability upstream release (v2.0.0.15)
    - see USN-619-1

  [ Alexander Sack <email address hidden> ]
  * fix LP: #207029 - "firefox-2 postinstall points to wrong location of
    restart-required.update-notifier"; we fix the paths in firefox-2.postinst
    to point to the right directory.
    - update debian/firefox-2.postinst
  * fix LP: #210481 - "gutsy->hardy upgrade problem"; we introduce Conflicts:
    and Replaces: on old firefox 2 packages (<< 3)
    - update debian/control

  [ Matti Lindell <email address hidden> ]
  * debian/firefox-2.links: update libsoftokn3.so link (LP: #218594).

 -- Alexander Sack <email address hidden> Mon, 30 Jun 2008 13:58:32 +0200

Changed in firefox:
status: In Progress → Fix Released
Revision history for this message
Steve Langasek (vorlon) wrote :

hardy-security package copied to intrepid.

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