trash-rm command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
trash-rm: command not found
or when using sudo you get the following error message
sudo: trash-rm: command not found
Solutions to trash-rm: command not found
How To Fix trash-rm: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu trash-rm is provided by trash-cli package.
trash-cli is:
This package provides a command line interface trashcan utility compliant with the FreeDesktop.org Trash Specification. It remembers the name, original path, deletion date, and permissions of each trashed file
To fix this problem, we can install more using the command below.
sudo apt-get -y install trash-cli
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install trash-cli.
sudo apt -y install trash-cli
Or if you have aptitude installed you can use the following command.
sudo aptitude install trash-cli
Summary
In this tutorial we learn how to fix trash-rm command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.