readmsg.mailutils command not found

In this troubleshooting guide we learn how to fix readmsg.mailutils command not found error message

Introduction

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

readmsg.mailutils: command not found

or when using sudo you get the following error message

sudo: readmsg.mailutils: command not found

Solutions to readmsg.mailutils: command not found

How To Fix readmsg.mailutils: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu readmsg.mailutils is provided by mailutils package.

mailutils is:

GNU Mailutils is a rich and powerful protocol-independent mail framework. It contains a series of useful mail libraries, clients, and servers.

This package contains the GNU mailutils versions of dotlock, frm, from, mail, messages, mimeview, movemail, readmsg and sieve. They are capable of speaking POP3, IMAP, mbox, MH, Maildir and dotmail.

dotlock – lock mail spool files. frm – display From: lines. from – display from and subject. mail – the standard /bin/mail interface, mail sender and reader. messages – count the number of messages in a mailbox. mimeview – display files, using mailcap mechanism. movemail – move messages across mailboxes. readmsg – extract selected messages from a mailbox. sieve – a mail filtering tool.

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

sudo apt-get -y install mailutils

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

You can also use apt command to install mailutils.

sudo apt -y install mailutils

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

sudo aptitude install mailutils

Summary

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