0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

tar (child): cannot run bzip2: No such file or directoryとなった時の対応方法

Posted at
  • 環境
    • CentOS Linux release 7.6.1810 (Core)
    • tar (GNU tar) 1.26

事象 : .tar.bz2 を解凍しようとしたら怒られた

Sublime Text 3がバージョンアップしたので新しいのを配置しようとした。
圧縮ファイルの拡張子は.tar.bz2だった。解凍しようとしたら怒られた。

$ tar xvf sublime_text_3_build_3211_x64.tar.bz2
tar (child): cannot run bzip2: No such file or directory
tar (child): trying lbzip2
tar (child): lbzip2: 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 コマンドがないから

tar (child): bzip2: Cannot exec: No such file or directory - Qiita

対応 : bzip2 コマンドをインストールする

$ sudo yum install bzip2
[sudo] password for ponsuke: 
Loaded plugins: fastestmirror, ovl
Repository google-chrome is listed more than once in the configuration
Determining fastest mirrors
...省略...
Installed:
  bzip2.x86_64 0:1.0.6-13.el7                                                                                                                                                                                      

Complete!

# 再度回答を試みると解凍できた!
$ tar xvf sublime_text_3_build_3211_x64.tar.bz2
sublime_text_3/
sublime_text_3/python3.3.zip
...省略...
sublime_text_3/Icon/48x48/sublime-text.png
$
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?