In Debian
Whether with sudo or not, I got a permission denied error trying to run VBoxLinuxAdditions.run
When I did sudo bash VBoxLinuxAdditions.run then it ran but it gave an error
The error trying to run VBoxLinuxAdditions.run on debian, it says ""You appear to have a version of the VBoxGuestAdditions software on your system which was installed from a different source..."
I have done $dpkg --get-selections | grep -v deinstall | grep virt <ENTER>
It listed virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11 virtualbox-ose-guest-x11
I have done $sudo apt-get autoremove virt* -y <ENTER>
then the dpkg --get-selections line shows none of those packages installed. And I rebooted the system.
So now I expected that the script should run.
But when running VBoxGuestAdditions script I still get that message "You appear to have a version of..." as mentioned.
The log /var/log/VBoxGuestAdditions.log is blank
I am no expert but I have seen it suggested to run $sudo lsmod | grep -i vbox <ENTER> that showed nothing.. lsmod showed no virtualbox items that I can see.
If it makes any difference, distro is debian netinst, with desktop environment and print server unchecked.
cannot install guest additions on debian
-
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: PUEL
- Guest OSses: Mostly XP
Re: cannot install guest additions on debian
Moved to Linux Guests.
Some Linux distros come with forked versions of the GAs preinstalled. You need to uninstall those before installing the official GAs. The name may be similar but the software is different.
Some Linux distros come with forked versions of the GAs preinstalled. You need to uninstall those before installing the official GAs. The name may be similar but the software is different.
Re: cannot install guest additions on debian
See my post, I did, that was what the apt-get remove virt* was. If there are other packages to remove, what are they?
-
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: cannot install guest additions on debian
Start to finish removing and then installing the guest additions. Notince I use purge and not autoremove.
Code: Select all
dpkg --get-selections | grep -v deinstall | grep virt
virtualbox-guest-dkms install
virtualbox-guest-utils install
virtualbox-guest-x11 install
virtualbox-ose-guest-x11 install
Code: Select all
debian@debian:~$ sudo apt-get purge virtualbox*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'virtualbox-guest-source' for regex 'virtualbox*'
Note, selecting 'virtualbox-guest-utils' for regex 'virtualbox*'
Note, selecting 'virtualbox' for regex 'virtualbox*'
Note, selecting 'virtualbox-ose-dbg' for regex 'virtualbox*'
Note, selecting 'virtualbox-ose-source' for regex 'virtualbox*'
Note, selecting 'virtualbox-dkms' for regex 'virtualbox*'
Note, selecting 'virtualbox-ose-guest-dkms' for regex 'virtualbox*'
Note, selecting 'virtualbox-dbg' for regex 'virtualbox*'
Note, selecting 'virtualbox-guest-x11' for regex 'virtualbox*'
Note, selecting 'virtualbox-ose-dkms' for regex 'virtualbox*'
Note, selecting 'virtualbox-ose-qt' for regex 'virtualbox*'
Note, selecting 'virtualbox-guest-additions-iso' for regex 'virtualbox*'
Note, selecting 'virtualbox-ose-guest-source' for regex 'virtualbox*'
Note, selecting 'virtualbox-fuse' for regex 'virtualbox*'
Note, selecting 'virtualbox-ose' for regex 'virtualbox*'
Note, selecting 'virtualbox-2.0' for regex 'virtualbox*'
Note, selecting 'virtualbox-2.1' for regex 'virtualbox*'
Note, selecting 'virtualbox-2.2' for regex 'virtualbox*'
Note, selecting 'virtualbox-3.0' for regex 'virtualbox*'
Note, selecting 'virtualbox-qt' for regex 'virtualbox*'
Note, selecting 'virtualbox-ose-fuse' for regex 'virtualbox*'
Note, selecting 'virtualbox-guest-dkms' for regex 'virtualbox*'
Note, selecting 'virtualbox-ose-guest-utils' for regex 'virtualbox*'
Note, selecting 'virtualbox-ose-guest-x11' for regex 'virtualbox*'
Note, selecting 'virtualbox-source' for regex 'virtualbox*'
Package 'virtualbox-guest-additions-iso' is not installed, so not removed
Package 'virtualbox-2.0' is not installed, so not removed
Package 'virtualbox-2.1' is not installed, so not removed
Package 'virtualbox-2.2' is not installed, so not removed
Package 'virtualbox-3.0' is not installed, so not removed
Package 'virtualbox' is not installed, so not removed
Package 'virtualbox-dbg' is not installed, so not removed
Package 'virtualbox-dkms' is not installed, so not removed
Package 'virtualbox-fuse' is not installed, so not removed
Package 'virtualbox-guest-source' is not installed, so not removed
Package 'virtualbox-ose' is not installed, so not removed
Package 'virtualbox-ose-dbg' is not installed, so not removed
Package 'virtualbox-ose-dkms' is not installed, so not removed
Package 'virtualbox-ose-fuse' is not installed, so not removed
Package 'virtualbox-ose-guest-dkms' is not installed, so not removed
Package 'virtualbox-ose-guest-source' is not installed, so not removed
Package 'virtualbox-ose-guest-utils' is not installed, so not removed
Package 'virtualbox-ose-qt' is not installed, so not removed
Package 'virtualbox-ose-source' is not installed, so not removed
Package 'virtualbox-qt' is not installed, so not removed
Package 'virtualbox-source' is not installed, so not removed
The following packages will be REMOVED:
virtualbox-guest-dkms* virtualbox-guest-utils* virtualbox-guest-x11* virtualbox-ose-guest-x11*
0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
After this operation, 10.5 MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 137828 files and directories currently installed.)
Removing virtualbox-guest-dkms ...
-------- Uninstall Beginning --------
Module: virtualbox-guest
Version: 4.1.18
Kernel: 3.2.0-4-amd64 (x86_64)
-------------------------------------
Status: Before uninstall, this module version was ACTIVE on this kernel.
vboxguest.ko:
- Uninstallation
- Deleting from: /lib/modules/3.2.0-4-amd64/updates/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
vboxsf.ko:
- Uninstallation
- Deleting from: /lib/modules/3.2.0-4-amd64/updates/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
vboxvideo.ko:
- Uninstallation
- Deleting from: /lib/modules/3.2.0-4-amd64/updates/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
depmod......
DKMS: uninstall completed.
------------------------------
Deleting module version: 4.1.18
completely from the DKMS tree.
------------------------------
Done.
Removing virtualbox-ose-guest-x11 ...
Removing virtualbox-guest-x11 ...
Purging configuration files for virtualbox-guest-x11 ...
Removing virtualbox-guest-utils ...
Purging configuration files for virtualbox-guest-utils ...
Processing triggers for man-db ...
Code: Select all
debian@debian:~$ sudo sh '/media/cdrom0/VBoxLinuxAdditions-amd64.run'
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.3.51_OSE Guest Additions for Linux 100%
VirtualBox Guest Additions installer
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules ...done.
Doing non-kernel setup of the Guest Additions ...done.
You should restart your guest to make sure the new modules are actually used
Installing the Window System drivers
Installing X.Org Server 1.12 modules ...done.
Setting up the Window System to use the Guest Additions ...done.
You may need to restart the the Window System (or just restart the guest system)
to enable the Guest Additions.
Installing graphics libraries and desktop services components ...done.
debian@debian:~$
Re: cannot install guest additions on debian
Thanks.. I think maybe it was the apt-get purge that did it, rather than apt-get remove that I did before.
Though I notice that Debian has virtualbox additions installed by default anyway, I tried in the settings to share a folder permanent and automount and reset and it's there.
I had a command line only setup so with or without virtualbox guest additions I couldn't copy/paste from within the VM. To copy/paste I ssh to it from a shell in Windows.
Your reply gave me the idea to do purge, and I think that did it.
Though I notice that Debian has virtualbox additions installed by default anyway, I tried in the settings to share a folder permanent and automount and reset and it's there.
I had a command line only setup so with or without virtualbox guest additions I couldn't copy/paste from within the VM. To copy/paste I ssh to it from a shell in Windows.
Your reply gave me the idea to do purge, and I think that did it.