vconfig command not found

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

Introduction

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

vconfig: command not found

or when using sudo you get the following error message

sudo: vconfig: command not found

Solutions to vconfig: command not found

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

In Ubuntu vconfig is provided by vlan package.

vlan is:

This package contains integration scripts for configuring vlan interfaces via ifupdown (/etc/network/interfaces). For further details see vlan-interfaces(5) man page in this package.

Please note that these integration scripts only supports a limited set of interface naming schemes, which means you might be better off with writing your own ifupdown hooks using ip(route2) directly in /etc/network/interfaces rather than using this package.

It currently also ships a wrapper script for backwards compatibility called vconfig, that replaces the old deprecated vconfig program with translations to ip(route2) commands. This compatibility shim might be dropped in future releases, please use ip(route2) commands directly.

Your kernel needs vlan support for this to work, see “modinfo 8021q”.

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

sudo apt-get -y install vlan

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

You can also use apt command to install vlan.

sudo apt -y install vlan

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

sudo aptitude install vlan

Summary

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