notmuch-addrlookup command not found

In this troubleshooting guide we learn how to fix notmuch-addrlookup command not found error message

Introduction

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

notmuch-addrlookup: command not found

or when using sudo you get the following error message

sudo: notmuch-addrlookup: command not found

Solutions to notmuch-addrlookup: command not found

How To Fix notmuch-addrlookup: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu notmuch-addrlookup is provided by notmuch-addrlookup package.

notmuch-addrlookup is:

This package uses the Notmuch database to output the names and e-mail addresses of the people you have exchanged e-mails with, most used ones first. This works neatly as address completer for the Notmuch Emacs interface.

The program works by invoking from a shell. The only argument it takes is a string, which is searched for in the e-mail addresses contained in the headers of the messages indexed by Notmuch.

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

sudo apt-get -y install notmuch-addrlookup

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

You can also use apt command to install notmuch-addrlookup.

sudo apt -y install notmuch-addrlookup

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

sudo aptitude install notmuch-addrlookup

Summary

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