How To Install lsb-invalid-mta on Ubuntu 20.04
Introduction
In this tutorial we learn how to install lsb-invalid-mta
on Ubuntu 20.04.
What is lsb-invalid-mta
lsb-invalid-mta is:
The Linux Standard Base (http://www.linuxbase.org/) is a standard core system that third-party applications written for Linux can depend upon.
This package contains nothing else than a fake /usr/sbin/sendmail command to fulfill the LSB’s requirement of providing this command without requiring an MTA to get installed, which once introduces a daemon which can cause security problems and second, users get asked questions about how they want their MTA configured when in reality they simply wanted to install a desktop application or a printer driver, but the dependency on LSB compliance pulls in an MTA with the installation.
The LSB requirement on /usr/sbin/sendmail comes from old times where Linux and Unix machines had all fixed IPs and did server tasks in data centers. Today’s typical desktop Linux machines do not do local e-mail any more as users use external e-mail services.
The /usr/sbin/sendmail always exits with exit status -1 (255) and sends a warning message to stderr, so that if a program actually tries to send e-mail via the sendmail command the user gets note.
There are three methods to install lsb-invalid-mta
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install lsb-invalid-mta Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install lsb-invalid-mta
using apt-get
by running the following command:
sudo apt-get -y install lsb-invalid-mta
Install lsb-invalid-mta Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install lsb-invalid-mta
using apt
by running the following command:
sudo apt -y install lsb-invalid-mta
Install lsb-invalid-mta Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install lsb-invalid-mta
using aptitude
by running the following command:
sudo aptitude -y install lsb-invalid-mta
How To Uninstall lsb-invalid-mta on Ubuntu 20.04
To uninstall only the lsb-invalid-mta
package we can use the following command:
sudo apt-get remove lsb-invalid-mta
Uninstall lsb-invalid-mta And Its Dependencies
To uninstall lsb-invalid-mta
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove lsb-invalid-mta
Remove lsb-invalid-mta Configurations and Data
To remove lsb-invalid-mta
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge lsb-invalid-mta
Remove lsb-invalid-mta configuration, data, and all of its dependencies
We can use the following command to remove lsb-invalid-mta
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge lsb-invalid-mta
References
Summary
In this tutorial we learn how to install lsb-invalid-mta
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.