gnome-shell command not found

In this troubleshooting guide we learn how to fix gnome-shell command not found error message

Introduction

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

gnome-shell: command not found

or when using sudo you get the following error message

sudo: gnome-shell: command not found

Solutions to gnome-shell: command not found

How To Fix gnome-shell: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu gnome-shell is provided by gnome-shell package.

gnome-shell is:

The GNOME Shell provides core interface functions like switching windows, launching applications or see your notifications. It takes advantage of the capabilities of modern graphics hardware and introduces innovative user interface concepts to provide a delightful and easy to use experience. GNOME Shell is the defining technology of the GNOME 3 user experience.

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

sudo apt-get -y install gnome-shell

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

You can also use apt command to install gnome-shell.

sudo apt -y install gnome-shell

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

sudo aptitude install gnome-shell

Summary

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