ip6tables-restore-translate command not found

In this troubleshooting guide we learn how to fix ip6tables-restore-translate command not found error message

Introduction

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

ip6tables-restore-translate: command not found

or when using sudo you get the following error message

sudo: ip6tables-restore-translate: command not found

Solutions to ip6tables-restore-translate: command not found

How To Fix ip6tables-restore-translate: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu ip6tables-restore-translate is provided by iptables package.

iptables is:

The iptables/xtables framework has been replaced by nftables. You should consider migrating now.

iptables is the userspace command line program used to configure the Linux packet filtering and NAT ruleset. It is targeted towards systems and networks administrators.

This package contains several different utilities, the most important ones:

iptables-nft, iptables-nft-save, iptables-nft-restore (nft-based version)

iptables-legacy, iptables-legacy-save, iptables-legacy-restore (legacy version)

ip6tables-nft, ip6tables-nft-save, ip6tables-nft-restore (nft-based version)

ip6tables-legacy, ip6tables-legacy-save, ip6tables-legacy-restore (legacy version)

arptables-nft, arptables-nft-save, arptables-nft-restore (nft-based version)

ebtables-nft, ebtables-nft-save, ebtables-nft-restore (nft-based version)

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

sudo apt-get -y install iptables

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

You can also use apt command to install iptables.

sudo apt -y install iptables

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

sudo aptitude install iptables

Summary

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