VirtualBox - can't install it, can't uninstall it
by taylorkh from LinuxQuestions.org on (#4ZW9Y)
I had VirtualBox 6 installed on my CentOS7 workstation some time ago. I was no longer using it and tried to uninstall it with yum. That did not seem to go to completion but the program no longer functioned. I deleted the various VirtualBox rubbish as I came across it. Recently I received a message on boot that the kernel module vboxpci failed to load. systemctl confirmed this.Code:[ken@taylor20 Desktop]$ sudo systemctl status -l systemd-modules-load.service
a- systemd-modules-load.service - Load Kernel Modules
Loaded: loaded (/usr/lib/systemd/system/systemd-modules-load.service; static; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2020-02-24 07:46:24 EST; 8h ago
Docs: man:systemd-modules-load.service(8)
man:modules-load.d(5)
Process: 2124 ExecStart=/usr/lib/systemd/systemd-modules-load (code=exited, status=1/FAILURE)
Main PID: 2124 (code=exited, status=1/FAILURE)
Feb 24 07:46:24 taylor20 systemd[1]: Starting Load Kernel Modules...
Feb 24 07:46:24 taylor20 systemd-modules-load[2124]: Failed to insert 'vboxpci': Invalid argument
Feb 24 07:46:24 taylor20 systemd[1]: systemd-modules-load.service: main process exited, code=exited, status=1/FAILURE
Feb 24 07:46:24 taylor20 systemd[1]: Failed to start Load Kernel Modules.
Feb 24 07:46:24 taylor20 systemd[1]: Unit systemd-modules-load.service entered failed state.
Feb 24 07:46:24 taylor20 systemd[1]: systemd-modules-load.service failed.I poked around and deleted some other VirtualVox stuff. Upon reboot the error message was gone.
I decided to do a yum install of VirtualBox followed by an uninstall to see if that would clean things up properly. However, I cannot install VirtualBox as shownCode: Package Arch Version Repository Size
================================================================================
Installing:
VirtualBox-6.1 x86_64 6.1.4_136177_el7-1 virtualbox 101 M
Transaction Summary
================================================================================
Install 1 Package
Total download size: 101 M
Installed size: 221 M
Is this ok [y/d/N]: y
Downloading packages:
VirtualBox-6.1-6.1.4_136177_el7-1.x86_64.rpm | 101 MB 03:37
Running transaction check
Running transaction test
Transaction check error:
file /usr/bin/VBox from install of VirtualBox-6.1-6.1.4_136177_el7-1.x86_64 conflicts with file from package VirtualBox-server-6.1.2-1.el7.x86_64
file /usr/bin/VBoxTunctl from install of VirtualBox-6.1-6.1.4_136177_el7-1.x86_64 conflicts with file from package VirtualBox-server-6.1.2-1.el7.x86_64
file /usr/bin/rdesktop-vrdp from install of VirtualBox-6.1-6.1.4_136177_el7-1.x86_64 conflicts with file from package VirtualBox-server-6.1.2-1.el7.x86_64
file /usr/bin/vbox-img from install of VirtualBox-6.1-6.1.4_136177_el7-1.x86_64 conflicts with file from package VirtualBox-server-6.1.2-1.el7.x86_64
file /usr/share/icons/hicolor/128x128/apps/virtualbox.png from install of VirtualBox-6.1-6.1.4_136177_el7-1.x86_64 conflicts with file from package VirtualBox-server-6.1.2-1.el7.x86_64
file /usr/share/icons/hicolor/16x16/apps/virtualbox.png from install of VirtualBox-6.1-6.1.4_136177_el7-1.x86_64 conflicts with file from package VirtualBox-server-6.1.2-1.el7.x86_64
file /usr/share/icons/hicolor/20x20/apps/virtualbox.png from install of VirtualBox-6.1-6.1.4_136177_el7-1.x86_64 conflicts with file from package VirtualBox-server-6.1.2-1.el7.x86_64
file /usr/share/icons/hicolor/32x32/apps/virtualbox.png from install of VirtualBox-6.1-6.1.4_136177_el7-1.x86_64 conflicts with file from package VirtualBox-server-6.1.2-1.el7.x86_64
file /usr/share/icons/hicolor/40x40/apps/virtualbox.png from install of VirtualBox-6.1-6.1.4_136177_el7-1.x86_64 conflicts with file from package VirtualBox-server-6.1.2-1.el7.x86_64
file /usr/share/icons/hicolor/48x48/apps/virtualbox.png from install of VirtualBox-6.1-6.1.4_136177_el7-1.x86_64 conflicts with file from package VirtualBox-server-6.1.2-1.el7.x86_64
file /usr/share/icons/hicolor/64x64/apps/virtualbox.png from install of VirtualBox-6.1-6.1.4_136177_el7-1.x86_64 conflicts with file from package VirtualBox-server-6.1.2-1.el7.x86_64
Error SummaryThe offending files are NOT on the file system. I have looked for hidden files, links etc. Nothing to correspond with these file names. Any suggestions? Perhaps the RPM database is corrupted and thinks these are installed?
TIA,
Ken


a- systemd-modules-load.service - Load Kernel Modules
Loaded: loaded (/usr/lib/systemd/system/systemd-modules-load.service; static; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2020-02-24 07:46:24 EST; 8h ago
Docs: man:systemd-modules-load.service(8)
man:modules-load.d(5)
Process: 2124 ExecStart=/usr/lib/systemd/systemd-modules-load (code=exited, status=1/FAILURE)
Main PID: 2124 (code=exited, status=1/FAILURE)
Feb 24 07:46:24 taylor20 systemd[1]: Starting Load Kernel Modules...
Feb 24 07:46:24 taylor20 systemd-modules-load[2124]: Failed to insert 'vboxpci': Invalid argument
Feb 24 07:46:24 taylor20 systemd[1]: systemd-modules-load.service: main process exited, code=exited, status=1/FAILURE
Feb 24 07:46:24 taylor20 systemd[1]: Failed to start Load Kernel Modules.
Feb 24 07:46:24 taylor20 systemd[1]: Unit systemd-modules-load.service entered failed state.
Feb 24 07:46:24 taylor20 systemd[1]: systemd-modules-load.service failed.I poked around and deleted some other VirtualVox stuff. Upon reboot the error message was gone.
I decided to do a yum install of VirtualBox followed by an uninstall to see if that would clean things up properly. However, I cannot install VirtualBox as shownCode: Package Arch Version Repository Size
================================================================================
Installing:
VirtualBox-6.1 x86_64 6.1.4_136177_el7-1 virtualbox 101 M
Transaction Summary
================================================================================
Install 1 Package
Total download size: 101 M
Installed size: 221 M
Is this ok [y/d/N]: y
Downloading packages:
VirtualBox-6.1-6.1.4_136177_el7-1.x86_64.rpm | 101 MB 03:37
Running transaction check
Running transaction test
Transaction check error:
file /usr/bin/VBox from install of VirtualBox-6.1-6.1.4_136177_el7-1.x86_64 conflicts with file from package VirtualBox-server-6.1.2-1.el7.x86_64
file /usr/bin/VBoxTunctl from install of VirtualBox-6.1-6.1.4_136177_el7-1.x86_64 conflicts with file from package VirtualBox-server-6.1.2-1.el7.x86_64
file /usr/bin/rdesktop-vrdp from install of VirtualBox-6.1-6.1.4_136177_el7-1.x86_64 conflicts with file from package VirtualBox-server-6.1.2-1.el7.x86_64
file /usr/bin/vbox-img from install of VirtualBox-6.1-6.1.4_136177_el7-1.x86_64 conflicts with file from package VirtualBox-server-6.1.2-1.el7.x86_64
file /usr/share/icons/hicolor/128x128/apps/virtualbox.png from install of VirtualBox-6.1-6.1.4_136177_el7-1.x86_64 conflicts with file from package VirtualBox-server-6.1.2-1.el7.x86_64
file /usr/share/icons/hicolor/16x16/apps/virtualbox.png from install of VirtualBox-6.1-6.1.4_136177_el7-1.x86_64 conflicts with file from package VirtualBox-server-6.1.2-1.el7.x86_64
file /usr/share/icons/hicolor/20x20/apps/virtualbox.png from install of VirtualBox-6.1-6.1.4_136177_el7-1.x86_64 conflicts with file from package VirtualBox-server-6.1.2-1.el7.x86_64
file /usr/share/icons/hicolor/32x32/apps/virtualbox.png from install of VirtualBox-6.1-6.1.4_136177_el7-1.x86_64 conflicts with file from package VirtualBox-server-6.1.2-1.el7.x86_64
file /usr/share/icons/hicolor/40x40/apps/virtualbox.png from install of VirtualBox-6.1-6.1.4_136177_el7-1.x86_64 conflicts with file from package VirtualBox-server-6.1.2-1.el7.x86_64
file /usr/share/icons/hicolor/48x48/apps/virtualbox.png from install of VirtualBox-6.1-6.1.4_136177_el7-1.x86_64 conflicts with file from package VirtualBox-server-6.1.2-1.el7.x86_64
file /usr/share/icons/hicolor/64x64/apps/virtualbox.png from install of VirtualBox-6.1-6.1.4_136177_el7-1.x86_64 conflicts with file from package VirtualBox-server-6.1.2-1.el7.x86_64
Error SummaryThe offending files are NOT on the file system. I have looked for hidden files, links etc. Nothing to correspond with these file names. Any suggestions? Perhaps the RPM database is corrupted and thinks these are installed?
TIA,
Ken