LoginSignup
0
0

More than 5 years have passed since last update.

VBoxLinuxAdditions.run を実行して ./install.sh: 行 365: bzip2: コマンドが見つかりません になった時の対応方法

Posted at

MacのVirtualBoxに作った仮想マシンへGuest Additionsをインストールする をしていた時のしくじりです。

事象 : VBoxLinuxAdditions.run を実行したら./install.sh: 行 365: bzip2: コマンドが見つかりませんと言われた

$ sudo sh /mnt/cdrom/VBoxLinuxAdditions.run 
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.1.22 Guest Additions for Linux...........
VirtualBox Guest Additions installer
Copying additional installer modules ...
./install.sh: 行 365: bzip2: コマンドが見つかりません
tar: これは tar アーカイブではないようです
tar: 前のエラーにより失敗ステータスで終了します
./install.sh: 行 378: bzip2: コマンドが見つかりません
tar: これは tar アーカイブではないようです
tar: 前のエラーにより失敗ステータスで終了します

原因 : bzip2コマンドがインストールされていないから

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

$ sudo yum install bzip2
読み込んだプラグイン:fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.nara.wide.ad.jp
 * extras: ftp.tsukuba.wide.ad.jp
 * updates: ftp.tsukuba.wide.ad.jp
依存性の解決をしています
--> トランザクションの確認を実行しています。
---> パッケージ bzip2.x86_64 0:1.0.6-13.el7 を インストール
--> 依存性解決を終了しました。

依存性を解決しました

==============================================================================================================================================================
 Package                             アーキテクチャー                     バージョン                                 リポジトリー                        容量
==============================================================================================================================================================
インストール中:
 bzip2                               x86_64                               1.0.6-13.el7                               base                                52 k

トランザクションの要約
==============================================================================================================================================================
インストール  1 パッケージ

総ダウンロード容量: 52 k
インストール容量: 82 k
Is this ok [y/d/N]: y
Downloading packages:
bzip2-1.0.6-13.el7.x86_64.rpm                                                                                                          |  52 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  インストール中          : bzip2-1.0.6-13.el7.x86_64                                                                                                     1/1 
  検証中                  : bzip2-1.0.6-13.el7.x86_64                                                                                                     1/1 

インストール:
  bzip2.x86_64 0:1.0.6-13.el7                                                                                                                                 

完了しました!

# やり直します。
$ sudo sh /mnt/cdrom/VBoxLinuxAdditions.run
0
0
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
0