ur command not found

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

Introduction

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

ur: command not found

or when using sudo you get the following error message

sudo: ur: command not found

Solutions to ur: command not found

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

In Ubuntu ur is provided by libur-perl package.

libur-perl is:

UR is a class framework and object/relational mapper for Perl. It starts with the familiar Perl meme of the blessed hash reference as the basis for object instances, and extends its capabilities with ORM (object-relational mapping) capabilities, object cache, in-memory transactions, more formal class definitions, metadata, documentation system, iterators, command line tools, etc.

UR can handle multiple column primary and foreign keys, SQL joins involving class inheritance and relationships, and does its best to avoid querying the database unless the requested data has not been loaded before. It has support for SQLite, Oracle, MySQL and Postgres databases, and the ability to use a text file as a table.

UR uses the same syntax to define non-persistent objects, and supports in-memory transactions for both.

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

sudo apt-get -y install libur-perl

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

You can also use apt command to install libur-perl.

sudo apt -y install libur-perl

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

sudo aptitude install libur-perl

Summary

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