ostree-receive command not found

In this troubleshooting guide we learn how to fix ostree-receive command not found error message

Introduction

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

ostree-receive: command not found

or when using sudo you get the following error message

sudo: ostree-receive: command not found

Solutions to ostree-receive: command not found

How To Fix ostree-receive: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu ostree-receive is provided by ostree-push package.

ostree-push is:

ostree-push uses ssh to push commits from a local OSTree repo to a remote OSTree repo. This is to fill a gap where currently you can only pull commits in core ostree. To publish commits to a remote repository, you either have to pull from the local repo to the remote repo or use an out of band mechanism like rsync.

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

sudo apt-get -y install ostree-push

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

You can also use apt command to install ostree-push.

sudo apt -y install ostree-push

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

sudo aptitude install ostree-push

Summary

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