3

Background

After a day's work with a Windows 10 guest running on an Ubuntu (Jammy) host, suddenly the guest started to crash, cf. e.g.:

Perhaps upgrading to the latest version of VirtualBox, i.e. from 6.1.34_Ubuntu r150636 to 6.1.38 will solve this issue - hopefully!


First (unsuccessful) attempt to install latest version via GUI

In an attempt to install the latest version of VirtualBox, following the instructions on https://www.virtualbox.org/wiki/Linux_Downloads, the first step of adding a line to /etc/apt/sources.list (via GUI, i.e. Software & Updates → Other SoftwareAdd...) already caused a first hiccup as

deb [arch=amd64 signed-by=/usr/share/keyrings/oracle-virtualbox-2016.gpg] https://download.virtualbox.org/virtualbox/debian jammy contrib

would leave the Add Source button grayed out. Removing […] would make the button clickable, but seems to be the wrong thing to do. Or at least might necessitate further steps in the GUI, around adding the key, but I can't seem to find and figure out right now.

Unfortunately, https://help.ubuntu.com/community/Repositories/Ubuntu#Adding_Extra_Repositories does not fully explain.

Help appreciated.


Related link(s):

BeastOfCaerbannog
  • 12,964
  • 10
  • 49
  • 77
nutty about natty
  • 6,658
  • 8
  • 47
  • 68
  • Why are you adding sources? `virtualbox` is in the `universe` repo. Just run `sudo apt update` and then run `sudo apt install virtualbox`. You don't need to add any sources. You only would need to enable `universe` if you previously disabled it. You probably don't need the "latest version". Don't chase down "latest versions" unless you absolutely need them. The latest is not the greatest. See: [Why don't the Ubuntu repositories have the latest versions of software?](https://askubuntu.com/q/151283) – Nmath Sep 05 '22 at 21:23
  • @Nmath Updated the question ("background"). – nutty about natty Sep 06 '22 at 06:17
  • Your update doesn't answer my question or address any of my suggestions or comments. Did you mean to @ someone else? – Nmath Sep 06 '22 at 06:30
  • @Nmath It does: https://forums.virtualbox.org/viewtopic.php?f=7&t=106954 // *Perhaps upgrading to the latest version of VirtualBox, i.e. from 6.1.34_Ubuntu r150636 to 6.1.38 will solve this issue - hopefully!* – nutty about natty Sep 06 '22 at 06:39
  • Have you tried to download the latest `.deb` file from: https://download.virtualbox.org/virtualbox/6.1.38/virtualbox-6.1_6.1.38-153438~Ubuntu~jammy_amd64.deb and then install it using `sudo apt install /path/to/the_downloaded_virtualbox.deb`? – BeastOfCaerbannog Sep 06 '22 at 11:05
  • @BeastOfCaerbannog: Yes and no: I tried simply double-clicking etc and have not yet run the command, which you suggest, in terminal (cf. https://askubuntu.com/questions/264292/how-do-i-install-virtualboxs-deb-package#comment2486609_264295). But happy to do so soon. At the moment, using a different laptop as a workaround. Question: if I ran the command you suggest, would it install the deb alongside the existing VirtualBox installation (without any conflict / issues :-)? – nutty about natty Sep 06 '22 at 12:09
  • @nuttyaboutnatty Hmmm... There could potentially be some conflict, so I suggest that you first uninstall your currently installed version and install the `.deb` after that. After all, if you find that the `.deb` doesn't work for you, you can remove it and install the previous package through `apt` again. – BeastOfCaerbannog Sep 06 '22 at 14:20
  • In the end, I did it via **command line** (not via GUI), following instructions here (method 3): https://itsfoss.com/install-virtualbox-ubuntu/. (Note that this method is itself slightly deprecated, but still works, cf. https://itsfoss.com/apt-key-deprecated/. Good enough: it works. Well, after running `sudo /sbin/vboxconfig` to get the existing *.vdi's working again... Oh well...) – nutty about natty Oct 25 '22 at 08:45

1 Answers1

1

Give the following a try. I know that your question is requesting how to do this via GUI, but I think the following will get you where you want to go. It just isn't via GUI.

wget -qO- https://www.virtualbox.org/download/oracle_vbox_2016.asc | sudo tee /etc/apt/keyrings/virtualbox.asc
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/virtualbox.asc] https://download.virtualbox.org/virtualbox/debian jammy contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list
sudo apt update
sudo apt install virtualbox-6.1
Utkonos
  • 143
  • 11