thefuck command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
thefuck: command not found
or when using sudo you get the following error message
sudo: thefuck: command not found
Solutions to thefuck: command not found
How To Fix thefuck: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu thefuck is provided by thefuck package.
thefuck is:
The Fuck attempts to fix user’s command line mistakes, by composing new commands applying a series of matching rules. It supports various shells, such as bash, fish, tcsh, and zsh.
The ‘sudo’ matching rule has been disabled for users’ safety.
To fix this problem, we can install more using the command below.
sudo apt-get -y install thefuck
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install thefuck.
sudo apt -y install thefuck
Or if you have aptitude installed you can use the following command.
sudo aptitude install thefuck
Summary
In this tutorial we learn how to fix thefuck command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.