TranslateProject/sources/tech/20150728 How To Fix--There is no command installed for 7-zip archive files.md
2015-07-28 15:48:00 +08:00

2.7 KiB
Raw Blame History

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. As always, 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:

Reason

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 doesnt 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:

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

Note: Youll 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.


via: http://itsfoss.com/fix-there-is-no-command-installed-for-7-zip-archive-files/

作者:Abhishek 译者:译者ID 校对:校对者ID

本文由 LCTT 原创翻译,Linux中国 荣誉推出