総数:9 今日:1 昨日:0

もくじ

参考URL Download VirtualBox for Linux Hosts

Ubuntuのバージョン等を確認してみる

~$ cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04.3 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.3 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

bionic だ。

/etc/apt/sources.listにvirtualboxを追記する

Add the following line to your /etc/apt/sources.list.
According to your distribution, replace '<mydist>' with 'artful', 'zesty', 'yakkety', 'xenial', 'trusty', 'stretch', 'jessie', or 'wheezy' (older versions of virtualBox supported different distributions):

deb https://download.virtualbox.org/virtualbox/debian <mydist> contrib

なので、下記を追記する。

deb https://download.virtualbox.org/virtualbox/debian bionic contrib
$ sudo gvim -f /etc/apt/sources.list

編集後の/etc/apt/sources.listファイルの状態

~$ cat /etc/apt/sources.list
#deb cdrom:[Ubuntu 18.04.3 LTS _Bionic Beaver_ - Release amd64 (20190805)]/ bionic main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://jp.archive.ubuntu.com/ubuntu/ bionic main restricted
# deb-src http://jp.archive.ubuntu.com/ubuntu/ bionic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://jp.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
# deb-src http://jp.archive.ubuntu.com/ubuntu/ bionic-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://jp.archive.ubuntu.com/ubuntu/ bionic universe
# deb-src http://jp.archive.ubuntu.com/ubuntu/ bionic universe
deb http://jp.archive.ubuntu.com/ubuntu/ bionic-updates universe
# deb-src http://jp.archive.ubuntu.com/ubuntu/ bionic-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://jp.archive.ubuntu.com/ubuntu/ bionic multiverse
# deb-src http://jp.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://jp.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
# deb-src http://jp.archive.ubuntu.com/ubuntu/ bionic-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://jp.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
# deb-src http://jp.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu bionic partner
# deb-src http://archive.canonical.com/ubuntu bionic partner

deb http://security.ubuntu.com/ubuntu bionic-security main restricted
# deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
# deb-src http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse
# deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse

deb https://download.virtualbox.org/virtualbox/debian bionic contrib

Oracle public keyの取得

The Oracle public key for apt-secure can be downloaded here.

https://www.virtualbox.org/download/oracle_vbox_2016.asc

https://www.virtualbox.org/download/oracle_vbox_2018.asc

~$ wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc
~$ ls -la oracle_vbox_2016.asc 
-rw-r--r-- 1 ryu ryu 3157  4月 28  2016 oracle_vbox_2016.asc

You can add these keys with

~$ sudo apt-key add oracle_vbox_2016.asc
OK

virtualboxのインストール

To install virtualBox, do

~$ sudo apt update
取得:1 https://download.virtualbox.org/virtualbox/debian bionic InRelease [4,432 B]
ヒット:2 http://jp.archive.ubuntu.com/ubuntu bionic InRelease                                     
ヒット:3 http://jp.archive.ubuntu.com/ubuntu bionic-updates InRelease                                 
ヒット:4 http://jp.archive.ubuntu.com/ubuntu bionic-backports InRelease                               
取得:5 https://download.virtualbox.org/virtualbox/debian bionic/contrib amd64 Packages [1,673 B]
取得:6 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]                
取得:7 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [26.4 kB]
取得:8 http://security.ubuntu.com/ubuntu bionic-security/main DEP-11 48x48 Icons [14.6 kB]
取得:9 http://security.ubuntu.com/ubuntu bionic-security/main DEP-11 64x64 Icons [37.8 kB]           
取得:10 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [42.1 kB]   
取得:11 http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11 48x48 Icons [16.4 kB]       
取得:12 http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11 64x64 Icons [111 kB]        
取得:13 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2,464 B]  
346 kB を 8秒 で取得しました (44.2 kB/s)                                                              
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています       
状態情報を読み取っています... 完了
アップグレードできるパッケージが 4 個あります。表示するには 'apt list --upgradable' を実行してください。
N: リポジトリ 'https://download.virtualbox.org/virtualbox/debian bionic InRelease' がアーキテクチャ 'i386' をサポートしないため設定ファイル 'contrib/binary-i386/Packages' の取得をスキップ
~$ sudo apt-cache policy virtualbox-6.0 
virtualbox-6.0:
  インストールされているバージョン: (なし)
  候補:               6.0.12-133076~Ubuntu~bionic
  バージョンテーブル:
     6.0.12-133076~Ubuntu~bionic 500
        500 https://download.virtualbox.org/virtualbox/debian bionic/contrib amd64 Packages
~$ sudo apt install virtualbox-6.0
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています                
状態情報を読み取っています... 完了
以下の追加パッケージがインストールされます:
  gcc gcc-7 libasan4 libatomic1 libc-dev-bin libc6-dev libcilkrts5 libcurl4 libgcc-7-dev libitm1 liblsan0 libmpx2 libqt5x11extras5 libquadmath0 libsdl-ttf2.0-0 libsdl1.2debian libtsan0
  libubsan0 linux-libc-dev make manpages-dev
提案パッケージ:
  gcc-multilib autoconf automake libtool flex bison gcc-doc gcc-7-multilib gcc-7-doc gcc-7-locales libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg libasan4-dbg liblsan0-dbg libtsan0-dbg
  libubsan0-dbg libcilkrts5-dbg libmpx2-dbg libquadmath0-dbg glibc-doc make-doc
以下のパッケージが新たにインストールされます:
  gcc gcc-7 libasan4 libatomic1 libc-dev-bin libc6-dev libcilkrts5 libcurl4 libgcc-7-dev libitm1 liblsan0 libmpx2 libqt5x11extras5 libquadmath0 libsdl-ttf2.0-0 libsdl1.2debian libtsan0
  libubsan0 linux-libc-dev make manpages-dev virtualbox-6.0
アップグレード: 0 個、新規インストール: 22 個、削除: 0 個、保留: 4 個。
120 MB のアーカイブを取得する必要があります。
この操作後に追加で 302 MB のディスク容量が消費されます。
続行しますか? [Y/n] Y
取得:1 http://jp.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libcurl4 amd64 7.58.0-2ubuntu3.8 [214 kB]
取得:2 http://jp.archive.ubuntu.com/ubuntu bionic/universe amd64 libqt5x11extras5 amd64 5.9.5-0ubuntu1 [8,596 B]
取得:3 http://jp.archive.ubuntu.com/ubuntu bionic/main amd64 libsdl1.2debian amd64 1.2.15+dfsg2-0.1 [174 kB]
取得:4 http://jp.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libitm1 amd64 8.3.0-6ubuntu1~18.04.1 [28.0 kB]
取得:5 http://jp.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libatomic1 amd64 8.3.0-6ubuntu1~18.04.1 [9,184 B]
取得:6 http://jp.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libasan4 amd64 7.4.0-1ubuntu1~18.04.1 [359 kB]
取得:7 http://jp.archive.ubuntu.com/ubuntu bionic-updates/main amd64 liblsan0 amd64 8.3.0-6ubuntu1~18.04.1 [133 kB]
取得:8 http://jp.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libtsan0 amd64 8.3.0-6ubuntu1~18.04.1 [288 kB]
取得:9 http://jp.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libubsan0 amd64 7.4.0-1ubuntu1~18.04.1 [126 kB]
取得:10 http://jp.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libcilkrts5 amd64 7.4.0-1ubuntu1~18.04.1 [42.5 kB]
取得:11 http://jp.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libmpx2 amd64 8.3.0-6ubuntu1~18.04.1 [11.6 kB]
取得:12 http://jp.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libquadmath0 amd64 8.3.0-6ubuntu1~18.04.1 [133 kB]
取得:13 http://jp.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libgcc-7-dev amd64 7.4.0-1ubuntu1~18.04.1 [2,381 kB]
取得:14 http://jp.archive.ubuntu.com/ubuntu bionic-updates/main amd64 gcc-7 amd64 7.4.0-1ubuntu1~18.04.1 [7,463 kB]
取得:15 https://download.virtualbox.org/virtualbox/debian bionic/contrib amd64 virtualbox-6.0 amd64 6.0.12-133076~Ubuntu~bionic [103 MB]
取得:16 http://jp.archive.ubuntu.com/ubuntu bionic-updates/main amd64 gcc amd64 4:7.4.0-1ubuntu2.3 [5,184 B]
取得:17 http://jp.archive.ubuntu.com/ubuntu bionic/main amd64 libc-dev-bin amd64 2.27-3ubuntu1 [71.8 kB]
取得:18 http://jp.archive.ubuntu.com/ubuntu bionic-updates/main amd64 linux-libc-dev amd64 4.15.0-64.73 [1,123 kB]
取得:19 http://jp.archive.ubuntu.com/ubuntu bionic/main amd64 libc6-dev amd64 2.27-3ubuntu1 [2,587 kB]
取得:20 http://jp.archive.ubuntu.com/ubuntu bionic/universe amd64 libsdl-ttf2.0-0 amd64 2.0.11-4 [15.0 kB]
取得:21 http://jp.archive.ubuntu.com/ubuntu bionic/main amd64 make amd64 4.1-9.1ubuntu1 [154 kB]
取得:22 http://jp.archive.ubuntu.com/ubuntu bionic/main amd64 manpages-dev all 4.15-1 [2,217 kB]
120 MB を 5秒 で取得しました (25.2 MB/s) 
パッケージを事前設定しています ...
以前に未選択のパッケージ libcurl4:amd64 を選択しています。
(データベースを読み込んでいます ... 現在 171987 個のファイルとディレクトリがインストールされています。)
.../00-libcurl4_7.58.0-2ubuntu3.8_amd64.deb を展開する準備をしています ...
libcurl4:amd64 (7.58.0-2ubuntu3.8) を展開しています...
以前に未選択のパッケージ libqt5x11extras5:amd64 を選択しています。
.../01-libqt5x11extras5_5.9.5-0ubuntu1_amd64.deb を展開する準備をしています ...
libqt5x11extras5:amd64 (5.9.5-0ubuntu1) を展開しています...
以前に未選択のパッケージ libsdl1.2debian:amd64 を選択しています。
.../02-libsdl1.2debian_1.2.15+dfsg2-0.1_amd64.deb を展開する準備をしています ...
libsdl1.2debian:amd64 (1.2.15+dfsg2-0.1) を展開しています...
以前に未選択のパッケージ virtualbox-6.0 を選択しています。
.../03-virtualbox-6.0_6.0.12-133076~Ubuntu~bionic_amd64.deb を展開する準備をしています ...
virtualbox-6.0 (6.0.12-133076~Ubuntu~bionic) を展開しています...
以前に未選択のパッケージ libitm1:amd64 を選択しています。
.../04-libitm1_8.3.0-6ubuntu1~18.04.1_amd64.deb を展開する準備をしています ...
libitm1:amd64 (8.3.0-6ubuntu1~18.04.1) を展開しています...
以前に未選択のパッケージ libatomic1:amd64 を選択しています。
.../05-libatomic1_8.3.0-6ubuntu1~18.04.1_amd64.deb を展開する準備をしています ...
libatomic1:amd64 (8.3.0-6ubuntu1~18.04.1) を展開しています...
以前に未選択のパッケージ libasan4:amd64 を選択しています。
.../06-libasan4_7.4.0-1ubuntu1~18.04.1_amd64.deb を展開する準備をしています ...
libasan4:amd64 (7.4.0-1ubuntu1~18.04.1) を展開しています...
以前に未選択のパッケージ liblsan0:amd64 を選択しています。
.../07-liblsan0_8.3.0-6ubuntu1~18.04.1_amd64.deb を展開する準備をしています ...
liblsan0:amd64 (8.3.0-6ubuntu1~18.04.1) を展開しています...
以前に未選択のパッケージ libtsan0:amd64 を選択しています。
.../08-libtsan0_8.3.0-6ubuntu1~18.04.1_amd64.deb を展開する準備をしています ...
libtsan0:amd64 (8.3.0-6ubuntu1~18.04.1) を展開しています...
以前に未選択のパッケージ libubsan0:amd64 を選択しています。
.../09-libubsan0_7.4.0-1ubuntu1~18.04.1_amd64.deb を展開する準備をしています ...
libubsan0:amd64 (7.4.0-1ubuntu1~18.04.1) を展開しています...
以前に未選択のパッケージ libcilkrts5:amd64 を選択しています。
.../10-libcilkrts5_7.4.0-1ubuntu1~18.04.1_amd64.deb を展開する準備をしています ...
libcilkrts5:amd64 (7.4.0-1ubuntu1~18.04.1) を展開しています...
以前に未選択のパッケージ libmpx2:amd64 を選択しています。
.../11-libmpx2_8.3.0-6ubuntu1~18.04.1_amd64.deb を展開する準備をしています ...
libmpx2:amd64 (8.3.0-6ubuntu1~18.04.1) を展開しています...
以前に未選択のパッケージ libquadmath0:amd64 を選択しています。
.../12-libquadmath0_8.3.0-6ubuntu1~18.04.1_amd64.deb を展開する準備をしています ...
libquadmath0:amd64 (8.3.0-6ubuntu1~18.04.1) を展開しています...
以前に未選択のパッケージ libgcc-7-dev:amd64 を選択しています。
.../13-libgcc-7-dev_7.4.0-1ubuntu1~18.04.1_amd64.deb を展開する準備をしています ...
libgcc-7-dev:amd64 (7.4.0-1ubuntu1~18.04.1) を展開しています...
以前に未選択のパッケージ gcc-7 を選択しています。
.../14-gcc-7_7.4.0-1ubuntu1~18.04.1_amd64.deb を展開する準備をしています ...
gcc-7 (7.4.0-1ubuntu1~18.04.1) を展開しています...
以前に未選択のパッケージ gcc を選択しています。
.../15-gcc_4%3a7.4.0-1ubuntu2.3_amd64.deb を展開する準備をしています ...
gcc (4:7.4.0-1ubuntu2.3) を展開しています...
以前に未選択のパッケージ libc-dev-bin を選択しています。
.../16-libc-dev-bin_2.27-3ubuntu1_amd64.deb を展開する準備をしています ...
libc-dev-bin (2.27-3ubuntu1) を展開しています...
以前に未選択のパッケージ linux-libc-dev:amd64 を選択しています。
.../17-linux-libc-dev_4.15.0-64.73_amd64.deb を展開する準備をしています ...
linux-libc-dev:amd64 (4.15.0-64.73) を展開しています...
以前に未選択のパッケージ libc6-dev:amd64 を選択しています。
.../18-libc6-dev_2.27-3ubuntu1_amd64.deb を展開する準備をしています ...
libc6-dev:amd64 (2.27-3ubuntu1) を展開しています...
以前に未選択のパッケージ libsdl-ttf2.0-0:amd64 を選択しています。
.../19-libsdl-ttf2.0-0_2.0.11-4_amd64.deb を展開する準備をしています ...
libsdl-ttf2.0-0:amd64 (2.0.11-4) を展開しています...
以前に未選択のパッケージ make を選択しています。
.../20-make_4.1-9.1ubuntu1_amd64.deb を展開する準備をしています ...
make (4.1-9.1ubuntu1) を展開しています...
以前に未選択のパッケージ manpages-dev を選択しています。
.../21-manpages-dev_4.15-1_all.deb を展開する準備をしています ...
manpages-dev (4.15-1) を展開しています...
libquadmath0:amd64 (8.3.0-6ubuntu1~18.04.1) を設定しています ...
libatomic1:amd64 (8.3.0-6ubuntu1~18.04.1) を設定しています ...
make (4.1-9.1ubuntu1) を設定しています ...
libqt5x11extras5:amd64 (5.9.5-0ubuntu1) を設定しています ...
libasan4:amd64 (7.4.0-1ubuntu1~18.04.1) を設定しています ...
libcilkrts5:amd64 (7.4.0-1ubuntu1~18.04.1) を設定しています ...
libubsan0:amd64 (7.4.0-1ubuntu1~18.04.1) を設定しています ...
libtsan0:amd64 (8.3.0-6ubuntu1~18.04.1) を設定しています ...
libcurl4:amd64 (7.58.0-2ubuntu3.8) を設定しています ...
linux-libc-dev:amd64 (4.15.0-64.73) を設定しています ...
libsdl1.2debian:amd64 (1.2.15+dfsg2-0.1) を設定しています ...
liblsan0:amd64 (8.3.0-6ubuntu1~18.04.1) を設定しています ...
libmpx2:amd64 (8.3.0-6ubuntu1~18.04.1) を設定しています ...
libsdl-ttf2.0-0:amd64 (2.0.11-4) を設定しています ...
virtualbox-6.0 (6.0.12-133076~Ubuntu~bionic) を設定しています ...
グループ `vboxusers' (GID 129) を追加しています...
完了。
libc-dev-bin (2.27-3ubuntu1) を設定しています ...
manpages-dev (4.15-1) を設定しています ...
libc6-dev:amd64 (2.27-3ubuntu1) を設定しています ...
libitm1:amd64 (8.3.0-6ubuntu1~18.04.1) を設定しています ...
libgcc-7-dev:amd64 (7.4.0-1ubuntu1~18.04.1) を設定しています ...
gcc-7 (7.4.0-1ubuntu1~18.04.1) を設定しています ...
gcc (4:7.4.0-1ubuntu2.3) を設定しています ...
systemd (237-3ubuntu10.29) のトリガを処理しています ...
man-db (2.8.3-2ubuntu0.1) のトリガを処理しています ...
shared-mime-info (1.9-2) のトリガを処理しています ...
gnome-menus (3.13.3-11ubuntu1.1) のトリガを処理しています ...
hicolor-icon-theme (0.17-2) のトリガを処理しています ...
mime-support (3.60ubuntu1) のトリガを処理しています ...
ureadahead (0.100.0-21) のトリガを処理しています ...
ureadahead will be reprofiled on next reboot
desktop-file-utils (0.23-1ubuntu3.18.04.2) のトリガを処理しています ...
libc-bin (2.27-3ubuntu1) のトリガを処理しています ...
~$

トップ   一覧 単語検索 最終更新   ヘルプ   最終更新のRSS