carton command not found

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

Introduction

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

carton: command not found

or when using sudo you get the following error message

sudo: carton: command not found

Solutions to carton: command not found

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

In Ubuntu carton is provided by carton package.

carton is:

carton is a command line tool to track the Perl module dependencies for your Perl application. The required dependencies are managed through a file named cpanfile and tracked through the carton.lock file. It makes deployments easier and allows other developers of your application to have the exact same versions of the modules.

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

sudo apt-get -y install carton

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

You can also use apt command to install carton.

sudo apt -y install carton

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

sudo aptitude install carton

Summary

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