Install on KDE 5.24

Discussions related to using VirtualBox on Linux hosts.
Post Reply
brebreb
Posts: 2
Joined: 22. Jun 2022, 13:08

Install on KDE 5.24

Post by brebreb »

Hi everyone,

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 :

Code: Select all

sudo apt install virtualbox-6.0
It does :

Code: Select all

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 ?

Thanks in advance,

Brebreb
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Install on KDE 5.24

Post by scottgus1 »

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
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Install on KDE 5.24

Post by fth0 »

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.
brebreb
Posts: 2
Joined: 22. Jun 2022, 13:08

Re: Install on KDE 5.24

Post by brebreb »

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 :

Code: Select all

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 :

Code: Select all

rm: cannot remove '/sbin/rcvboxdrv': Permission denied
ln: failed to create symbolic link '/sbin/rcvboxdrv': File exists
/sbin/vboxconfig: 155: cannot create /lib/systemd/system/vboxdrv.service: Permission denied
rm: cannot remove '/sbin/rcvboxballoonctrl-service': Permission denied
ln: failed to create symbolic link '/sbin/rcvboxballoonctrl-service': File exists
/sbin/vboxconfig: 155: cannot create /lib/systemd/system/vboxballoonctrl-service.service: Permission denied
rm: cannot remove '/sbin/rcvboxautostart-service': Permission denied
ln: failed to create symbolic link '/sbin/rcvboxautostart-service': File exists
/sbin/vboxconfig: 155: cannot create /lib/systemd/system/vboxautostart-service.service: Permission denied
rm: cannot remove '/sbin/rcvboxweb-service': Permission denied
ln: failed to create symbolic link '/sbin/rcvboxweb-service': File exists
/sbin/vboxconfig: 155: cannot create /lib/systemd/system/vboxweb-service.service: Permission denied
Any idea what I can do?
TNZ
Posts: 2
Joined: 15. Jun 2022, 09:20

Re: Install on KDE 5.24

Post by TNZ »

« ... '/sbin/vboxconfig' as root. »
So the command line is :

Code: Select all

sudo /sbin/vboxconfig
Post Reply