Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to modify a Firefox plugin in .xpi format using file roller. When I try to resave the file after making modifications, I get an error:

7-Zip [64] 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18
p7zip Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,4 CPUs)


Updating archive /home/user/Desktop/myplugin.xpi

System error:

If I try to just save it as a .zip instead, I get this error:

An error occurred while adding files to the archive.

It works fine in maverick and precise, only my oneiric machine is unable to properly save the file. What steps can I take to find the cause of this problem?

share|improve this question
I know File Roller changed the way it identifies archives as of 11.10. I've had to resort to renaming the .xpi to .zip before editing, then rename back to .xpi when done. Annoying, I know. – beanaroo May 7 '12 at 9:48
It is properly opening the xpi as a zip, the problem is during the process of saving. File roller refuses to save any .zip files, regardless of whether they were an xpi or a newly created archive. – Veazer May 7 '12 at 10:01
ah, I understand. I had the same problem with .rar - turns out I had to update the libraries. not sure what applies to Zip with regards to File Roller. Good luck! – beanaroo May 7 '12 at 10:08

It's possible to do this from the command line successfully with p7zip (which you seem to have installed).

7z a * ; mv myplugin.xpi

I think the problem is linked to p7zip because it autodetects the type of archive to use from the filename suffix.

share|improve this answer
It would work from the command line, but i want to get file-roller working as it should. File-roller is no longer able create or modify zip files in oneiric, but as i stated i can do the same thing in maverick and precise without any errors or issues. – Veazer May 7 '12 at 9:41

Your Answer


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.