onionshare command not found

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

Introduction

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

onionshare: command not found

or when using sudo you get the following error message

sudo: onionshare: command not found

Solutions to onionshare: command not found

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

In Ubuntu onionshare is provided by onionshare package.

onionshare is:

OnionShare lets you securely and anonymously share a file of any size with someone. It works by starting a web server, making it accessible as a Tor hidden service, and generating an unguessable URL to access and download the file. It doesn’t require setting up a server on the Internet somewhere or using a third party filesharing service. You host the file on your own computer and use a Tor hidden service to make it temporarily accessible over the Internet. The other user just needs to use the Tor Browser and to enter the URL to download the file from you.

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

sudo apt-get -y install onionshare

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

You can also use apt command to install onionshare.

sudo apt -y install onionshare

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

sudo aptitude install onionshare

Summary

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