Ubuntu修复There is no command installed for 7-zip archive fi

栏目:it技术分享大全 发布时间:2026-08-19 03:42
在Ubuntu系统中遇到7Zip相关错误时,通过安装p7zip-full包可解决7Z和RAR文件的压缩解压问题。系统提供三个不同版本的7Zip包,根据需求选择合适版本即可完成文件处理任务。

Ubuntu修复There is no command installed for 7-zip archive fi(图1)

问题

复制代码代码如下:

原因

可选方案:在终端中安装 7Zip

Ubuntu修复There is no command installed for 7-zip archive fi(图2)

复制代码代码如下:

sudo apt-get install p7zip-full

注意:在Ubuntu中,你会发现有3个7zip包:p7zip,p7zip-full 和 p7zip-rar。p7zip和p7zip-full的区别在于,p7zip是一个更轻量化的版本,仅仅提供了对 .7z 和 .7za 文件的支持,而完整版则提供了对更多(用于音频文件等的) 7z 压缩算法的支持。对于 p7zip-rar,它除了对 7z 文件的支持外,也提供了对 .rar 文件的支持。

事实上,相同的错误也会发生在Ubuntu中的RAR文件身上。解决方案也一样,安装正确的程序即可。

Ubuntu修复There is no command installed for 7-zip archive fi(图3)

关键词
本文地址