Postinst and postrm fail to complete leaving dpkg in a broken state

Bug #34490 reported by Soumyadip Modak
8
Affects Status Importance Assigned to Milestone
imagezoom (Ubuntu)
Fix Released
High
MOTU

Bug Description

When installing mozilla-imagezoom, the postinst script fails with the following message:

Setting up mozilla-imagezoom (0.2.2-2) ...
Updating mozilla-thunderbird chrome registry...find: /usr/lib/mozilla-thunderbird/defaults/profile/extensions/: No such file or directory
mv: accessing `/var/lib/mozilla-thunderbird/extensions/installed-extensions.txt': Too many levels of symbolic links
dpkg: error processing mozilla-imagezoom (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 mozilla-imagezoom
E: Sub-process /usr/bin/dpkg returned an error code (1)

Similarly when removing it using apt-get remove mozilla-imagezoom, the process fails with the following error :

Removing mozilla-imagezoom ...
Updating mozilla-thunderbird chrome registry...find: /usr/lib/mozilla-thunderbird/defaults/profile/extensions/: No such file or directory
mv: accessing `/var/lib/mozilla-thunderbird/extensions/installed-extensions.txt': Too many levels of symbolic links
dpkg: error processing mozilla-imagezoom (--remove):
 subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
 mozilla-imagezoom
E: Sub-process /usr/bin/dpkg returned an error code (1)

Looking into /var/lib/mozilla-thunderbird/extensions, I found that installed-extensions.txt was a symbolic link pointing to itself.

Revision history for this message
Soumyadip Modak (soumyadip) wrote :

To find out which package supplied this symlink, I tried the follwing:
dpkg-query -S /var/lib/mozilla-thunderbird/extensions/installed-extensions.txt
whch returned:
dpkg: /var/lib/mozilla-thunderbird/extensions/installed-extensions.txt not found.

Revision history for this message
Soumyadip Modak (soumyadip) wrote :

Oh I forgot to mention my environment, I'm using Ubuntu Dapper Flight 4. Stock kernel and packages.

Revision history for this message
DarkMageZ (darkmagez) wrote :

yeah, i have sucessfully replicated this bug on accident.

Changed in imagezoom:
status: Unconfirmed → Confirmed
Changed in imagezoom:
assignee: nobody → motu
Revision history for this message
Yann Rouillard (yann-pleiades) wrote :

I removed update-mozilla-* script from postrm and postinst and the package as, from what I read, theses scripts should not be necessary anymore.

The package installs correctly and works in firefox, however it doesn't seem to be correctly take in account by thunderbird...

Revision history for this message
Alexandre Otto Strube (surak) wrote :

Soumyadip, any progress with recent dapper updates?

Revision history for this message
Soumyadip Modak (soumyadip) wrote : Re: [Bug 34490] Re: Postinst and postrm fail to complete leaving dpkg in a broken state

I'm very sorry, I've not tried to install the new package. I'll do so, and
I'll post updates to the current state of affairs

On 4/5/06, Alexandre Otto Strube <email address hidden> wrote:
>
> Soumyadip, any progress with recent dapper updates?
> --
> Postinst and postrm fail to complete leaving dpkg in a broken state
> https://launchpad.net/malone/bugs/34490
>

--
Soumyadip Modak
<email address hidden>
<email address hidden>
http://soumyadip.nipl.net/blog

Revision history for this message
Soumyadip Modak (soumyadip) wrote :

Well I tried installing the package again. apt-cache policy mozilla-imagezoom has the same old package listed, nothing has been updated. Installing the package resulted in the same old mess, and I've to search for the imagezoom dpkg scripts and manually remove them in order to get dpkg and apt back in shape.
Yann, if you have made any updated package for mozilla-imagezoom, please get it into the Ubuntu repository.

Revision history for this message
Yaroslav Halchenko (yarikoptic) wrote :

Hi guys,

I am official maintainer in Debian of this package. If the issue still persists, I would love to help you to resolve it -- please get back to me about it (filing a bug on bugs.debian.org would be the best way to do so, follow up to this thread would work as well)

Revision history for this message
Vassilis Pandis (pandisv) wrote :

This has been fixed in Edgy.

Revision history for this message
Vassilis Pandis (pandisv) wrote :

status Fix Released

I cannot reproduce it anymore. It installs and removes fine (apt-get install mozilla-imagezoom and apt-get remove mozilla-imagezoom respectively). If this is still a problem, please reopen the bug ...

Changed in imagezoom:
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.