mousepad command not found

In this troubleshooting guide we learn how to fix mousepad command not found error message

Introduction

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

mousepad: command not found

or when using sudo you get the following error message

sudo: mousepad: command not found

Solutions to mousepad: command not found

How To Fix mousepad: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu mousepad is provided by mousepad package.

mousepad is:

Mousepad is a graphical text editor for Xfce based on Leafpad.

The initial reason for Mousepad was to provide printing support, which would have been difficult for Leafpad for various reasons.

Although some features are under development, currently Mousepad has the following features:

  • Complete support for UTF-8 text
  • Cut/Copy/Paste and Select All text
  • Search and Replace
  • Font selection
  • Word Wrap
  • Character coding selection
  • Auto character coding detection (UTF-8 and some code-sets)
  • Manual code-set setting
  • Infinite Undo/Redo by word
  • Auto Indent
  • Multi-line Indent
  • Display line numbers
  • Drag and Drop
  • Printing

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

sudo apt-get -y install mousepad

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

You can also use apt command to install mousepad.

sudo apt -y install mousepad

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

sudo aptitude install mousepad

Summary

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