I am new to this Linux environment, so it is quite challenging to understand what is happening while installing things. I tried to install VirtualBox using command lines. I followed the steps described in a tutorial, but they didn't go through.
I some point I finally typed :
Reading package lists... Done
Building dependency tree
Reading state information... Done
Starting pkgProblemResolver with broken count: 1
Starting 2 pkgProblemResolver with broken count: 1
Investigating (0) virtualbox-6.1:amd64 < none -> 6.1.34-150636.1~Ubuntu~bionic @un puN Ib >
Broken virtualbox-6.1:amd64 Depends on libqt5opengl5:amd64 < none | 5.15.4+p20.04+tunstable+git20220613.0051-0 @un uH > (>= 5.0.2)
Considering libqt5opengl5:amd64 0 as a solution to virtualbox-6.1:amd64 9999
Re-Instated libqt5core5a:amd64
Re-Instated libqt5dbus5:amd64
Re-Instated libqt5network5:amd64
Re-Instated libqt5gui5:amd64
Re-Instated libqt5widgets5:amd64
Re-Instated libqt5opengl5:amd64
Broken virtualbox-6.1:amd64 Depends on libvpx5:amd64 < none @un H > (>= 1.6.0)
Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
virtualbox-6.1 : Depends: libvpx5 (>= 1.6.0) but it is not installable
Recommends: libsdl-ttf2.0-0 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Do you know how I could "fix" my broken packages ?
Virtualbox is often forked by Linux distros, and their package installer apps distribute their forks instead of official Virtualbox from https://www.virtualbox.org/wiki/Linux_Downloads. The distros also support their forks. We only support official Virtualbox.
So you'll need to check if your command was trying to install their fork or official. If their fork, then you'll need to ask their help to fix the dependency problem. If you'd rather run official, then uninstall the fork, and see the link above. Please note that official Virtualbox has prerequisites that must be run first: https://www.virtualbox.org/manual/ch02. ... nux-prereq
You're probably using official packages from Oracle (virtualbox-6.0 and virtualbox-6.1), but they do not enforce that the other package is not installed. And you may not install two versions of VirtualBox simultaneously under the same user account. Uninstall both packages, reboot the host, and install only one of them. HTH.
Thanks for your reply.
As you suggested I did a new installation, and everything worked. thing is, I now have this error when starting the virtual machine :
Kernel driver not installed (rc=-1908)
The VirtualBox Linux kernel driver is either not loaded or not set up correctly. Please try setting it up again by executing
'/sbin/vboxconfig'
as root.
If your system has EFI Secure Boot enabled you may also need to sign the kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load them. Please see your Linux system's documentation for more information.
where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.
I tried to type /sbin/vboxconfig in the console, but does :