Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Trying open a .xpi file (Firefox extension) with file-roller and unrar but I obtain this error:

Archive not supported

Why? On 11.04 I was able to open it!

share|improve this question
add comment

5 Answers

You need too use unzip for that. Install it with sudo apt-get install unzip if you dont have it and file-roller will be able to uncompress the xpi after the installation, just right click on it and select "Extract here".

You can also do it on the command line

unzip addon-1865-latest.xpi will uncompressed the file inside the current directory.

zip -r <name of the addon>.xpi . will add all the files on the current directory back to a xpi archive. ie: extract all files to the current dir unzip addon-1865-latest.xpi, remove original rm addon-1865-latest.xpi, do your modifications to the files, repack them with zip -r addon-1865-latest.xpi ..

share|improve this answer
    
ok, after my customizations to the internal file, how can I rebuild the correct package .xpi ? –  user31579 Nov 1 '11 at 8:14
1  
added next steps to the answer, btw you don't need to repack it to use the addon, check this for further instructions. Same article here. –  Bruno Pereira Nov 1 '11 at 10:55
    
when i try to repack them i obtain this error: "zip error: Nothing to do! (myaddon.xpi)". I'm working in the same dir that includes all files –  user31579 Nov 1 '11 at 11:38
    
:S maybe a mistake, sec let me test since I am doing this by head. –  Bruno Pereira Nov 1 '11 at 11:45
    
sorry, faulty command, forgot a . its fixed now. –  Bruno Pereira Nov 1 '11 at 11:48
show 2 more comments

Fire up the software center and get 7zip. See if that works for you.

share|improve this answer
    
.xpi's are zipped folders. It could be the file extension. –  hexafraction Aug 16 '12 at 20:16
add comment

I have this problem too. A workaround is to temporarily rename the file to .zip instead of .xpi before opening it.

It seems that the utility now fails to recognise the .xpi file type as a zip archive.

share|improve this answer
add comment

Install assogiate in the Ubuntu Software Centre or:

sudo apt-get install assogiate

Run assogiate, then look for zip on the search box. You should find: application zip zip archive

Right click on it -> Edit -> Filenames -> Add *.xpi

It should work now :)

share|improve this answer
add comment

I don't think you need to "unzip" it.

Just RIGHT click and open with Firefox (you may need to go through Open with Other Application>Firefox)

share|improve this answer
    
The OP isn't trying to install the extension; he's trying to open it up to make changes to the contents of the extension. –  Yi Jiang Mar 16 '12 at 12:57
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.