pristine-lfs command not found

In this troubleshooting guide we learn how to fix pristine-lfs command not found error message

Introduction

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

pristine-lfs: command not found

or when using sudo you get the following error message

sudo: pristine-lfs: command not found

Solutions to pristine-lfs: command not found

How To Fix pristine-lfs: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu pristine-lfs is provided by pristine-lfs package.

pristine-lfs is:

pristine-lfs can store pristine upstream tarballs in Git leveraging Git LFS. Instead of storing the potentially large tarballs within the Git repository as blobs, Git LFS only stores specially prepared metadata in the repository, while storing the actual file contents out of band on a Git LFS server.

Using pristine-lfs allows Debian packages to be built entirely using sources in version control, without the need to keep copies of upstream tarballs.

An optional upstream signature may be attached to tarballs for verification by, for example, dpkg-source(1).

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

sudo apt-get -y install pristine-lfs

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

You can also use apt command to install pristine-lfs.

sudo apt -y install pristine-lfs

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

sudo aptitude install pristine-lfs

Summary

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