netfilter-persistent command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
netfilter-persistent: command not found
or when using sudo you get the following error message
sudo: netfilter-persistent: command not found
Solutions to netfilter-persistent: command not found
How To Fix netfilter-persistent: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu netfilter-persistent is provided by netfilter-persistent package.
netfilter-persistent is:
This package provides a loader for netfilter configuration using a plugin-based architecture. It can load, flush and save a running configuration. Extending netfilter-persistent with plugins is trivial and can be done in any language.
To fix this problem, we can install more using the command below.
sudo apt-get -y install netfilter-persistent
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install netfilter-persistent.
sudo apt -y install netfilter-persistent
Or if you have aptitude installed you can use the following command.
sudo aptitude install netfilter-persistent
Summary
In this tutorial we learn how to fix netfilter-persistent command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.