derbyctl command not found

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

Introduction

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

derbyctl: command not found

or when using sudo you get the following error message

sudo: derbyctl: command not found

Solutions to derbyctl: command not found

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

In Ubuntu derbyctl is provided by derby-tools package.

derby-tools is:

The Derby tools and utilities are a set of routines supplied with Derby that are typically used to create, inspect, and update a Derby database.

These tools and utilities include:

  • NetworkServerControl, provides the ability to start a Network Server or connect to a running Network Server to shutdown, configure or retrieve diagnostic information.
  • ij, the Derby’s interactive JDBC scripting tool. It is a simple utility for running scripts against a Derby database. You can also use it interactively to run ad hoc queries. ij provides several commands for ease in accessing a variety of JDBC features. ij can be used in an embedded or a client/server environment.
  • sysinfo, provides information about your version of Derby and your environment.
  • dblook, the Derby’s Data Definition Language (DDL) Generation Utility, more informally called a schema dump tool. It is a simple utility that dumps the DDL of a user-specified database to either a console or a file. The generated DDL can then be used for such things as recreating all or parts of a database, viewing a subset of a database’s objects (for example, those which pertain to specific tables and schemas), or documenting a database’s schema.
  • SignatureChecker, a tool that identifies any SQL functions and procedures in a database that do not follow the SQL Standard argument matching rules.
  • PlanExporter, a tool to export query plan data for further analysis.

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

sudo apt-get -y install derby-tools

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

You can also use apt command to install derby-tools.

sudo apt -y install derby-tools

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

sudo aptitude install derby-tools

Summary

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