How To Fix: There is no command installed for 7-zip archive files

Problem

I was trying to install Emerald icon theme in Ubuntu and the theme came in .7z archive. Jako vždy, I tried to extract it, in GUI, using the right click and “extract here”. Instead of extracting the file, Ubuntu 15.04 threw an error which read:

Could not open this file

There is no command installed for 7-zip archive files. Do you want to search for a command to open this file?

The error looked like this:

There is no command installed for 7-zip archive files

Důvod

Reason is quite evident from the error message itself. The 7Z, better to call it 7-zip, program is not installed and hence 7Z compressed files are not being extracted. This also hints that Ubuntu doesn’t support 7-Zip files by default.

Solution: Install 7zip in Ubuntu

Solution is quite simple as well. Install the 7-Zip package in Ubuntu. Now you might wonder how to install 7Zip in Ubuntu? Well, in the previous error dialogue box if you click on “Search Command”, it will look for available p7zip package. Just click on “Install” here:

install 7zip in Ubuntu

Alternative: Install 7zip in terminal

If you prefer terminal, you can install 7zip in terminal using the following command:

sudo apt-get install p7zip-full

Poznámka: You’ll find three 7zip packages in Ubuntu: p7zip, p7zip-full and p7zip-rar. The difference between p7zip and p7zip-full is that p7zip is a lighter version providing support only for .7z and .7za files while the full version provides support for more 7z compression algorithms (for audio files etc). For p7zip-rar, it provides support for .rar files along with 7z.

In fact similar error can be encountered with RAR files in Ubuntu. Solution is the same, install the correct program.

I hope this quick post helped you to solve the mystery of how to open 7zip in Ubuntu 14.04. Any questions or suggestions are always welcomed.

Zanech odpověď