v6pub command not found

In this troubleshooting guide we learn how to fix v6pub command not found error message

Introduction

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

v6pub: command not found

or when using sudo you get the following error message

sudo: v6pub: command not found

Solutions to v6pub: command not found

How To Fix v6pub: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu v6pub is provided by ipv6pref package.

ipv6pref is:

ipv6pref provides a utility that preloads a library and allows users to control the use of IPv6 privacy extensions.

For longrunning tasks it may be undesirable to use the periodically changing and random addresses; using the supplied utility, the kernel can be instructed whether to prefer the temporary addresses or stick to the static ones when opening sockets for a specific program.

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

sudo apt-get -y install ipv6pref

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

You can also use apt command to install ipv6pref.

sudo apt -y install ipv6pref

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

sudo aptitude install ipv6pref

Summary

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