gk command not found

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

Introduction

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

gk: command not found

or when using sudo you get the following error message

sudo: gk: command not found

Solutions to gk: command not found

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

In Ubuntu gk is provided by mrb package.

mrb is:

mrb is a single, self-documenting, executable makefile, which aims to make trivial the task of maintaining a set of compact, incremental, rsync mirrors of your important (and sometimes rapidly changing) data.

It relies only on the time-hardened industry tools GNU make and rsync. Snapshots may be taken at any opportune interval. Multiple snapshot targets can be configured in a modular fashion, so fast changing data can be separated from static bulk data, with snapshots of each scheduled or triggered on demand, as may be appropriate for each.

This package also includes gitkeeper, which is a tool for easy bidirectional mirroring of ‘installed’ data files from a remote system to a local git repository. It doesn’t actually require you to keep the local files in git, but if you do it supports restoring the remote system to any snapshot from the repository. Likewise it allows you to explicitly configure the owner and access permission that should be applied when pushing to the remote system since they are not preserved by the versions stored in git.

To use gitkeeper you will need to install the suggested perl packages too.

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

sudo apt-get -y install mrb

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

You can also use apt command to install mrb.

sudo apt -y install mrb

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

sudo aptitude install mrb

Summary

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