odbx-sql command not found

In this troubleshooting guide we learn how to fix odbx-sql command not found error message

Introduction

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

odbx-sql: command not found

or when using sudo you get the following error message

sudo: odbx-sql: command not found

Solutions to odbx-sql: command not found

How To Fix odbx-sql: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu odbx-sql is provided by opendbx-utils package.

opendbx-utils is:

OpenDBX provides a simple and lightweight API for interfacing native relational database APIs in a consistent way. By using the OpenDBX API you don’t have to adapt your program to the different database APIs by yourself.

This package provides the odbx-sql utility application for accessing database content directly via libopendbx and the opendbx test suite for verifying that various backends are working

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

sudo apt-get -y install opendbx-utils

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

You can also use apt command to install opendbx-utils.

sudo apt -y install opendbx-utils

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

sudo aptitude install opendbx-utils

Summary

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