I use Ubuntu 16.04
and have installed VirtualBox-5.1.38_Ubuntu r122592
. Previously I installed VBoxGuestAdditions.iso
by this command:
$ sudo apt-get install virtualbox-guest-additions-iso
Now I downloaded VBoxGuestAdditions_5.2.18.iso
from VirtualBox Repository
and copied that in /usr/share/virtualbox
. I thought that installs newer downloaded archive, but it seems it is not correct, because when I run $ sudo apt-get install virtualbox-guest-additions-iso
get this result:
Reading package lists... Done
[...]
virtualbox-guest-additions-iso is already the newest version (5.1.38-0ubuntu1.16.04.1).
How I can install that manually?
Guest additions must meet the Virtual Box release. You can not install newer guest additions in an older Virtual Box release.
Whenever we had installed Virtual Box form the repositories we will also install matching guest additions in the guest from the repos.
In all other instances if we had installed Virtual Box manually from DEB or form the Oracle repository the guest additions ISO will also have been installed.
To access the ISO you will have to mount it in the guest, then run the installer there as root.
See How do I install Guest Additions in a VirtualBox VM? for detailed instructions on how to do that.