Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

the add on could not be installed because it appears to be corrupt

After converting folder into .xpi file and drag and drop into firefox I'm receiving the error message as " the add on could not be installed because it appears to be corrupt " in firefox browser.

I tried to compressed the the folder using winzip,7z, winrar and rename it into .xpi file. However I still get the same error after performing the same operation.

How to make the firefox accept our own plugin in local?

Kindly Help me

like image 798
Dareman Avatar asked Feb 13 '15 08:02

Dareman


People also ask

Why Firefox add-ons not working?

The Firefox add-ons might not work if your Firefox browser is not up to date. Moreover, incorrect date/time settings of your system or corrupt Firefox user profile (or any of its settings/files) may also cause the issue.

Why are Add-ons blocked?

Blocking Criteria Blocking is reserved for add-ons with the following characteristics: They appear to intentionally violate policy. They contain critical security vulnerabilities. They compromise user privacy.

How do I enable Add-ons in Firefox?

Click the menu button. , click Add-ons and Themes and select Recommendations. To install a recommended add-on, click the blue + Install Theme or + Add to Firefox button, depending on the type of add-on.


1 Answers

Putting my Psychic-Debugging hat on, here is the most likely cause of your problem:

Your XPI has the wrong internal structure. While files should be located directly within the zip root directory, your XPI (zip) actually contains an intermediary folder name. Most zip tools will do that when you compress the folder, instead of selecting the actual files within the folder and compressing that.

When you open the XPI in a compression tool, or list the contents like @the8472 suggested via unzip -v addon.xpi, a correctly packaged XPI would look like this (the order does not matter)

install.rdf
icon.png
chrome.manifest
chrome/content/overlay.xul
...

But as noted, and as most likely the case here, when selecting the folder and compressing that, the XPI will be packaged incorrectly and look something like this, which is wrong:

myaddon/install.rdf
myaddon/icon.png
myaddon/chrome.manifest
myaddon/chrome/content/overlay.xul
...
like image 60
nmaier Avatar answered Oct 01 '22 17:10

nmaier