How to remove any kind of VirtualBox services and kernel modules?
A few days ago I tried to install vbox, the wrong one btw, and during that installation I realized my mistake and had a connection issue, leading me to ctrl c it. Just to guarantee that nothing was wrong, I tried reinstalling it and removing, but since then Im facing this everytime I install or remove anything:
[✓] Installation/removal related stuff
[✗] Restarting VirtualBox services failed
A copy of the command output follows:
Warning: The unit file, source configuration file or drop-ins of vboxdrv.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Job for vboxdrv.service failed because the control process exited with error code.
See "systemctl status vboxdrv.service" and "journalctl -xe" for details.
[✗] Restarting VirtualBox services failed
A copy of the command output follows:
Warning: The unit file, source configuration file or drop-ins of vboxdrv.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Job for vboxdrv.service failed because the control process exited with error code.
See "systemctl status vboxdrv.service" and "journalctl -xe" for details.
What I have done since then
- removed /usr/lib64/virtualbox/vboxdrv.sh thinking that my problems would also go away and that virt-manager is better anyways
- damn i shouldn't have done that
- rebooted, many times
- updated my system, i believe that i even updated my kernel
- systemctl daemon-reload
- installed virtualbox and virtualbox-current and removed them trying to fix the issue
This problem doesn't seem to be doing any harm but i don't think it is a good practice to just have some kernel modules missing/broken. Any help is apreciated.
Suggested commands' outputs:
systemctl status vboxdrv.service
Warning: The unit file, source configuration file or drop-ins of vboxdrv.service changed on disk. Run 'systemctl daemon-reload' to reload units.
● vboxdrv.service - VirtualBox Linux kernel module
Loaded: loaded (/usr/lib64/virtualbox/vboxdrv.sh; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2021-08-21 18:51:50 -03; 6min ago
Process: 3476 ExecStart=/usr/lib64/virtualbox/vboxdrv.sh start (code=exited, status=203/EXEC)
CPU: 1ms
ago 21 18:51:50 budgiee systemd[1]: Starting VirtualBox Linux kernel module...
ago 21 18:51:50 budgiee systemd[3476]: vboxdrv.service: Failed to locate executable /usr/lib64/virtualbox/vboxdrv.sh: No such file or directory
ago 21 18:51:50 budgiee systemd[3476]: vboxdrv.service: Failed at step EXEC spawning /usr/lib64/virtualbox/vboxdrv.sh: No such file or directory
ago 21 18:51:50 budgiee systemd[1]: vboxdrv.service: Control process exited, code=exited, status=203/EXEC
ago 21 18:51:50 budgiee systemd[1]: vboxdrv.service: Failed with result 'exit-code'.
ago 21 18:51:50 budgiee systemd[1]: Failed to start VirtualBox Linux kernel module.
root@budgiee /lib64/modules/5.13.12-193.current #
journalctl -xe, right after installing or removing something, translated by me
░░
░░ O processo /usr/lib64/virtualbox/vboxdrv.sh couldn't be executed and failed.
░░
░░ The error code returned by this process is ERRNO.
ago 21 18:44:11 budgiee systemd[1]: vboxdrv.service: Control process exited, code=exited, status=203/EXEC
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ An ExecStart= process belonging to unit vboxdrv.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 203.
ago 21 18:44:11 budgiee systemd[1]: vboxdrv.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit vboxdrv.service has entered the 'failed' state with result 'exit-code'.
ago 21 18:44:11 budgiee systemd[1]: Failed to start VirtualBox Linux kernel module.
░░ Subject: A unidade vboxdrv.service falhou
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ vboxdrv.service unit failed.
░░
░░ The result is failed.
Sorry for my bad english, still learning.