tar解包時報錯

okman312發表於2020-10-05

報錯如下

[root@use03 src]# tar -jxf httpd-2.4.39.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沒有安裝,所以解包時解不了bz2的檔案
解決

[root@use03 src]# yum install bzip2

相關文章