Ubuntu – VirtualBox Ubuntu: Not enough space left in /tmp to decompress VBoxLinuxAdditions.run


I have been using Ubuntu on my Oracle Virtual Box for a while. Recently, I have resize the hdd from 8GB to 16GB because it was full, and for some reasons, Guest Addition is not working anymore. So I removed the old Guest Additions, downloading Guest Additions 4.2.12, but I cannot install it. Below is the error message:

/media/isos$ sh ./VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.2.12 Guest Additions for Linus
Not enough space left in /tmp (1024 KB) to decompress ./VBoxLinuxAdditions.run (8920 KB)
Consider setting TMPDIR to a directory with more free space.

Please help me fix this.

Best Answer

When you resized the drive that doesn't make the partition any bigger. You need to resize the partition. You can easily do this with gparted.

In terminal type "sudo apt-get install gparted", then run gparted, and right click on the os partition. You will see an option to "resize/move", choose that, and then drag the arrow over to use all the free space.

Also you should not use new guest addons in an older version of virtualbox, the versions should be matched.

Related Question