Skip to content

Commit 0b23201

Browse files
Update virtualbox installation
1 parent 894ff93 commit 0b23201

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

src/virtualbox/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ x86 virtualization.
1010

1111
| Name | Version | Supported |
1212
| :------- | :--------: | :-------: |
13-
| Ubuntu | 16.04 | [x] |
14-
| Ubuntu | 18.04 | [x] |
15-
| Ubuntu | 20.04 | [x] |
13+
| Ubuntu | 22.04 | [x] |
14+
| Ubuntu | 24.04 | [x] |
1615
| OpenSUSE | Tumbleweed | [x] |
1716
| OpenSUSE | Leap | [x] |
1817

@@ -26,7 +25,7 @@ curl -fsSL http://bit.ly/install_pkg | PKG=virtualbox bash
2625

2726
| Name | Default | Description |
2827
| :--------------------- | :------ | :----------------------------------------------- |
29-
| PKG_VIRTUALBOX_VERSION | 6.1 | Specifies the VirtualBox version to be installed |
28+
| PKG_VIRTUALBOX_VERSION | 7.2 | Specifies the VirtualBox version to be installed |
3029

3130
## Used by
3231

src/virtualbox/install.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ function main {
1919
# shellcheck disable=SC1091
2020
source /etc/os-release || source /usr/lib/os-release
2121

22-
local version=${PKG_VIRTUALBOX_VERSION:-7.0}
23-
[[ ${VERSION_CODENAME-} == "xenial" ]] && version="6.1"
22+
local version=${PKG_VIRTUALBOX_VERSION:-7.2}
23+
[[ ${VERSION_CODENAME:-} == "xenial" ]] && version="6.1"
2424

2525
if command -v VBoxManage >/dev/null && [[ $(VBoxManage --version) == "$version"* ]]; then
2626
return
@@ -29,7 +29,7 @@ function main {
2929
echo "INFO: Installing VirtualBox $version version..."
3030
pushd "$(mktemp -d)" 2>/dev/null
3131
pkgs="VirtualBox-$version dkms"
32-
curl -o oracle_vbox.asc https://www.virtualbox.org/download/oracle_vbox.asc
32+
curl -o oracle_vbox.asc https://www.virtualbox.org/download/oracle_vbox_2016.asc
3333
case ${ID,,} in
3434
opensuse*)
3535
supported_versions="11.4 12.3 13.1 13.2 15.0 42.1 42.2 42.3"
@@ -54,8 +54,10 @@ function main {
5454
;;
5555
ubuntu | debian)
5656
sudo apt-get install -y -qq -o=Dpkg::Use-Pty=0 gnupg
57-
echo "deb http://download.virtualbox.org/virtualbox/debian $VERSION_CODENAME contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list 2>/dev/null
58-
curl -fsSL https://www.virtualbox.org/download/oracle_vbox_2016.asc | sudo apt-key add -
57+
sudo mkdir -p /usr/share/keyrings
58+
59+
sudo gpg --dearmor --yes < oracle_vbox.asc | sudo tee /usr/share/keyrings/oracle-virtualbox-2016.gpg > /dev/null
60+
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/oracle-virtualbox-2016.gpg] http://download.virtualbox.org/virtualbox/debian ${VERSION_CODENAME:-jessie} contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list 2>/dev/null
5961
sudo apt-get update -qq >/dev/null
6062
eval "sudo apt-get install -y -qq -o=Dpkg::Use-Pty=0 $pkgs"
6163
;;

src/virtualbox/os-blacklist.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
debian_jessie

0 commit comments

Comments
 (0)