A close-up illustration of a computer terminal displaying a VirtualBox error message: 'Error! Could not locate dkms.conf file' on a dark terminal background with green monospace text, surrounded by subtle digital glitch effects and faint circuit board patterns in the background, no text or labels outside the terminal screen, minimalist tech aesthetic

VirtualBox ошибка «Error! Could not locate dkms.conf file»

После обновления VirtualBox столкнулся с проблемой:

# service vboxdrv setup 
Error! Could not locate dkms.conf file.
File:  does not exist.
* Trying to register the VirtualBox kernel modules using DKMS 
Error! DKMS tree already contains: vboxhost-4.3.14
You cannot add the same module/version combo more than once.

* Failed, trying without DKMS

Решение проблемы довольно простое, достаточно удалить старые версии:

# locate dkms.conf
/etc/modprobe.d/dkms.conf
/usr/share/virtualbox/src/vboxhost/dkms.conf
/var/lib/dkms/vboxhost/4.3.10/build/dkms.conf
/var/lib/dkms/vboxhost/4.3.14/build/dkms.conf
/var/lib/dpkg/info/dkms.conffiles

После этого все работает:

sudo dkms status
vboxhost, 4.3.14, 3.13.0-32-generic, x86_64: installed
Главная страница / Блог / VirtualBox ошибка «Error! Could not locate dkms.conf file»

Заявка на обслуживание


Представьтесь, пожалуйста, чтобы мы знали как к вам обращаться
Мы никогда и не кому не предоставляем ваш E-mail.
Выберете тариф

Заказать бесплатный аудит



Отправить вопрос в службу поддержки