tar: bzip2: Cannot exec: No such file or directory

用tar 解压 tar.bz2文件出错
[root@zouhongzhao test]# tar -xjf xunsearch-full-latest.tar.bz2
tar (child): bzip2: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now

解决办法
安装bzip2软件包
ubuntu:
apt-get install bzip2
centos:
yum install bzip2

坚持原创技术分享,您的支持将鼓励我继续创作!