Ubuntu – Why doesn’t clipboard sharing work with Ubuntu 18.04 LTS inside VirtualBox 5.1.26

Ubuntuubuntu 18.04virtualbox

I installed Ubuntu 18.04 LTS inside VirtualBox 5.1.26. I installed guest additions, enabled clipboard sharing and rebooted the guest VM. However, clipboard sharing doesn't work. How can it be fixed?

Best Answer

The problem is with the virtualbox-guest-x11 package missing.

Execute the below commands:

sudo apt-get update
sudo apt-get install virtualbox-guest-x11

If it asks you about keeping a file or installing the new one, select the new one.

sudo VBoxClient --clipboard

This should enable clipboard sharing. Make sure that Clipboard Sharing is set to Bidirectional under VM Settings in VirtualBox as seen here:

Clipboard Sharing in VirtualBox