doas command not found

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

Introduction

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

doas: command not found

or when using sudo you get the following error message

sudo: doas: command not found

Solutions to doas: command not found

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

In Ubuntu doas is provided by doas package.

doas is:

OpenDoas: a portable version of OpenBSD’s doas command doas is a minimal replacement for the venerable sudo. It was initially written by Ted Unangst of the OpenBSD project to provide 95% of the features of sudo with a fraction of the codebase.

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

sudo apt-get -y install doas

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

You can also use apt command to install doas.

sudo apt -y install doas

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

sudo aptitude install doas

Summary

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