Ubuntu 20.04 Focal FossaにVirtualBoxをインストールする方法

Ubuntu 20.04 Focal Fossa の最終リリースはもうすぐですが、ベータ ビルドをダウンロードして使用できます。

これは、5 年間のサポートが付属する Ubuntu の最新の長期バージョンです。 Ubuntu 20.04 の優れた点は、VirtualBox をインストールすることで、以前のバージョンの Ubuntu のように追加のリポジトリを追加する必要がないことです。したがって、ここでは、Ubuntu Linux 上でさまざまな仮想マシンを実行するためのチュートリアルを示します。私たちの最近の記事の 1 つで、すでに示しました。Ubuntu 20.04 LTS Focal FossaのISOファイルをダウンロードする方法VirtualBox にインストールしてテストします。


ステップ 1: コマンドターミナルを開く

アプリケーションからコマンド ターミナルを開くか、ショートカット キーを使用するだけです。CTRL+ALT+T。

ステップ 2: システムを更新する

システム コマンドを実行して、Ubuntu 20.04 Focal Fossa のすべてのパッケージが最新であることを確認します。

sudo apt update

ステップ 3: Ubuntu 20.04 に VirtualBox をインストールするコマンド

この新しい最新の Linux ディストリビューションでは、Oracle VirtualBox リポジトリを追加する必要はありません。そのパッケージは公式リポジトリからダウンロードしてインストールできます。コマンドは次のとおりです。

sudo apt install virtualbox

上記のコマンドの出力:

h2s@h2s-VirtualBox:~$ sudo apt install virtualbox
Reading package lists... Done
Building dependency tree 
Reading state information... Done
The following additional packages will be installed:
virtualbox-qt
Suggested packages:
vde2 virtualbox-guest-additions-iso
The following NEW packages will be installed:
virtualbox virtualbox-qt
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 49.1 MB of archives.
After this operation, 174 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 https://in.archive.ubuntu.com/ubuntu focal/multiverse amd64 virtualbox amd64 6.1.4-dfsg-2 [21.3 MB]
Get:2 https://in.archive.ubuntu.com/ubuntu focal/multiverse amd64 virtualbox-qt amd64 6.1.4-dfsg-2 [27.8 MB]
Fetched 49.1 MB in 2min 7s (388 kB/s) 
Selecting previously unselected package virtualbox.
(Reading database ... 135835 files and directories currently installed.)
Preparing to unpack .../virtualbox_6.1.4-dfsg-2_amd64.deb ...
Unpacking virtualbox (6.1.4-dfsg-2) ...
Selecting previously unselected package virtualbox-qt.
Preparing to unpack .../virtualbox-qt_6.1.4-dfsg-2_amd64.deb ...
Unpacking virtualbox-qt (6.1.4-dfsg-2) ...
Setting up virtualbox (6.1.4-dfsg-2) ...
/usr/lib/python3.8/subprocess.py:838: RuntimeWarning: line buffering (buffering
=1) isn't supported in binary mode, the default buffer size will be used
self.stdin = io.open(p2cwrite, 'wb', bufsize)
/usr/lib/python3.8/subprocess.py:838: RuntimeWarning: line buffering (buffering
=1) isn't supported in binary mode, the default buffer size will be used
self.stdin = io.open(p2cwrite, 'wb', bufsize)
Job for vboxweb.service failed because the service did not take the steps requi
red by its unit configuration.
See "systemctl status vboxweb.service" and "journalctl -xe" for details.
Setting up virtualbox-qt (6.1.4-dfsg-2) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu2) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for systemd (245.2-1ubuntu2) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for shared-mime-info (1.15-1) ...

ステップ 4: Ubuntu 20.04 Focal Fossa で VirtualBox を実行する

インストールが完了したら、次の場所に移動します。アクティビティ、を検索してクリックしますバーチャルボックスアイコンをクリックして実行します。

Ubuntu 20.04 で Virtual Box を実行する

その他の記事: