wl-copy command not found

In this troubleshooting guide we learn how to fix wl-copy command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

wl-copy: command not found

or when using sudo you get the following error message

sudo: wl-copy: command not found

Solutions to wl-copy: command not found

How To Fix wl-copy: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu wl-copy is provided by wl-clipboard package.

wl-clipboard is:

wl-clipboard implements two little Wayland clipboard utilities, wl-copy and wl-paste, that let you easily copy data between the clipboard and Unix pipes, sockets or files.

To fix this problem, we can install more using the command below.

sudo apt-get -y install wl-clipboard

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install wl-clipboard.

sudo apt -y install wl-clipboard

Or if you have aptitude installed you can use the following command.

sudo aptitude install wl-clipboard

Summary

In this tutorial we learn how to fix wl-copy command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.