VirtualBox

Opened 10 months ago

#21804 new defect

/usr/lib/virtualbox/vboxdrv.sh: 297: cannot create /etc/udev/rules.d/60-vboxdrv.rules: Directory nonexistent

Reported by: adrelanos Owned by:
Component: other Version: VirtualBox-7.0.10
Keywords: Cc:
Guest type: other Host type: Linux

Description

Happening during installation of the virtualbox package from virtualbox.org.

/usr/lib/virtualbox/vboxdrv.sh: 297: cannot create /etc/udev/rules.d/60-vboxdrv.rules: Directory nonexistent

Seen during installation.

Setting up virtualbox-7.0 (7.0.10-158379~Debian~bullseye) ...
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
addgroup: The group `vboxusers' already exists as a system group. Exiting.
/usr/lib/virtualbox/vboxdrv.sh: 297: cannot create /etc/udev/rules.d/60-vboxdrv.rules: Directory nonexistent
This system is currently not set up to build kernel modules.
Please install the gcc make perl packages from your distribution.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
This system is currently not set up to build kernel modules.
Please install the gcc make perl packages from your distribution.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.  If your system is using EFI Secure Boot you may 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.

udev isn't installed indeed. But the Debian package should be able to handle that.

I suspect /usr/lib/virtualbox/vboxdrv.sh simply needs a:

mkdir --parents /etc/udev/rules.d/

As a bonus you might wish to advice installing udev inside the script or add a Depends: or Recommends: on udev.

Change History (0)

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use