bgpctl command not found

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

Introduction

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

bgpctl: command not found

or when using sudo you get the following error message

sudo: bgpctl: command not found

Solutions to bgpctl: command not found

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

In Ubuntu bgpctl is provided by openbgpd package.

openbgpd is:

The Border Gateway Protocol (BGP) allows machines to exchange information about network reachability with other systems speaking the BGP protocol. The global Internet routing system is composed of BGP speakers. OpenBGPD, also known as OpenBSD Border Gateway Protocol Daemon, is a server software program that allows general purpose computers to be used as routers, Route Reflectors, or Route Servers. It is a Unix system daemon that provides a free, open-source implementation of the BGP as specified by the Internet Engineering Task Force (IETF).

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

sudo apt-get -y install openbgpd

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

You can also use apt command to install openbgpd.

sudo apt -y install openbgpd

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

sudo aptitude install openbgpd

Summary

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