gmail-imap-label command not found

In this troubleshooting guide we learn how to fix gmail-imap-label command not found error message

Introduction

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

gmail-imap-label: command not found

or when using sudo you get the following error message

sudo: gmail-imap-label: command not found

Solutions to gmail-imap-label: command not found

How To Fix gmail-imap-label: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu gmail-imap-label is provided by libnet-gmail-imap-label-perl package.

libnet-gmail-imap-label-perl is:

Net::Gmail::IMAP::Label provides a proxy that sits between an IMAP client and Gmail’s IMAPS server and adds GMail labels to the X-Label header. This proxy uses the Gmail IMAP extensions.

To use this proxy, your e-mail client will need to connect to the proxy using the IMAP protocol (without SSL).

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

sudo apt-get -y install libnet-gmail-imap-label-perl

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

You can also use apt command to install libnet-gmail-imap-label-perl.

sudo apt -y install libnet-gmail-imap-label-perl

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

sudo aptitude install libnet-gmail-imap-label-perl

Summary

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