First, note this is just a note (N:
), not an error (E:
) and not even a warning (W:
). Second, note the repository for which this note appears. In this case, that is http://download.virtualbox.org/virtualbox/debian
. Locate that repository in your sources:
grep -F 'http://download.virtualbox.org/virtualbox/debian' /etc/apt/sources.list /etc/apt/sources.list.d/*.list
This might show that the file is in, say, /etc/apt/sources.list.d/virtualbox.list
. Then edit that file:
sudoedit /etc/apt/sources.list.d/virtualbox.list
and change the repository:
deb https://download.virtualbox.org/virtualbox/debian bionic contrib
to specifically be for amd64
only:
deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian bionic contrib
Or open a terminal and execute the following command:
echo "deb [arch=$(dpkg --print-architecture)] https://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list
Specifically for Virtualbox, you can run this bash script to install virtualbox and its dependencies from Oracle repository (tested in Ubuntu 18.04/20.04/22.04-unconfirmed):
sudo chmod +x VboxInstall.sh && sudo ./VboxInstall.sh
#!/bin/bash
# Oracle Repository
# Download and install .asc
wget -O- https://www.virtualbox.org/download/oracle_vbox_2016.asc | gpg --dearmor | tee /usr/share/keyrings/virtualbox.gpg &> /dev/null
# add repo
echo deb [arch=amd64 signed-by=/usr/share/keyrings/virtualbox.gpg] http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib | tee /etc/apt/sources.list.d/virtualbox.list/virtualbox.list
apt update
# install vbox
apt -y install linux-headers-$(uname -r) build-essential gcc make perl dkms bridge-utils
apt -y install virtualbox-6.1
dpkg --configure -a && apt-get -f -y install
# install Extension Pack
export VBOX_VER=`VBoxManage --version | awk -Fr '{print $1}'`
wget -c http://download.virtualbox.org/virtualbox/$VBOX_VER/Oracle_VM_VirtualBox_Extension_Pack-$VBOX_VER.vbox-extpack
VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-$VBOX_VER.vbox-extpack
# configure
usermod -a -G vboxusers $USER
update-grub
/sbin/vboxconfig
echo "Done. Reboot"
# check service after reboot
systemctl status vboxdrv
Source: Virtualbox kernel service is not running