How to Fix Copy and Paste Not Working in Ubuntu

Pressing Ctrl + C to copy a password or command in Ubuntu only to press Ctrl + V and paste either nothing at all or whatever old text you copied ten minutes ago disrupts everything you are doing. In Ubuntu, clipboard failures almost always stem from one of three specific issues: Terminal’s different shortcut keys, apps running under Wayland vs XWayland losing clipboard handshakes, or missing Guest Additions when running Ubuntu inside VirtualBox or VMware.

Fix 1: Use Ctrl + Shift + C and Ctrl + Shift + V Inside Ubuntu Terminal

If copy and paste works normally in Firefox and LibreOffice yet breaks the moment you enter Ubuntu Terminal, nothing is actually broken – Linux terminals reserve standard Ctrl + C to cancel running commands instead of copying text.

  • To copy inside Terminal: Highlight the text and press Ctrl + Shift + C (or right-click > Copy).
  • To paste inside Terminal: Press Ctrl + Shift + V (or middle-click with your mouse wheel to paste primary selection text).

See our full cheat sheet on copying and pasting quickly inside Ubuntu Terminal for extra mouse and shell tricks.

Fix 2: Fix Copy & Paste Failing Between X11 and Wayland Apps (or LibreOffice / Snap Apps)

Modern Ubuntu (22.04 LTS and 24.04 LTS) defaults to the Wayland display server, while several popular desktop apps (certain Electron apps, older Java tools, and remote desktop clients) still run inside XWayland. Occasionally the GNOME clipboard bridge between them stalls after copying large tables or images.

  1. Test restarting GNOME’s user clipboard or switching temporarily to Xorg if two specific desktop apps refuse to share copied text: save your work, log out, click your username, click the bottom-right gear icon, and choose Ubuntu on Xorg.
  2. If you also use Ubuntu’s gsd-clipboard or notice copied text vanishing the second you close the source app before pasting it elsewhere, avoid closing the source window first or install a lightweight clipboard history manager like CopyQ or GNOME’s Clipboard Indicator extension (see why Ubuntu clears clipboard data when closing the source app).
  3. For Terminal scripting utilities like xclip returning empty output on Wayland sessions, install Wayland’s native clipboard tools instead:
    sudo apt update && sudo apt install -y wl-clipboard
    Then use wl-copy and wl-paste cleanly across Wayland apps.

Fix 3: Fix Copy & Paste Between Windows Host and VirtualBox / VMware Ubuntu

Running Ubuntu inside a virtual machine frequently disables host-to-guest copy and paste until guest integration drivers match the current Ubuntu kernel and display mode:

  1. VirtualBox Bidirectional Clipboard: In the VirtualBox top window menu, click Devices > Shared Clipboard > Bidirectional, then click Devices > Insert Guest Additions CD image, run the installer inside Ubuntu (sudo apt install -y build-essential dkms linux-headers-$(uname -r) first if compilation fails), and reboot the VM. Note that VirtualBox shared clipboard also works far more reliably when you log in using Ubuntu on Xorg from the login screen gear icon.
  2. VMware Workstation / Player: Open Terminal inside Ubuntu and reinstall open-vm-tools desktop integration:
    sudo apt update && sudo apt install -y open-vm-tools-desktop
    Reboot the virtual machine afterwards to restore seamless two-way clipboard and drag-and-drop.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.