static command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
static: command not found
or when using sudo you get the following error message
sudo: static: command not found
Solutions to static: command not found
How To Fix static: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu static is provided by python3-static3 package.
python3-static3 is:
This library provides an easy way to include static content in your WSGI applications. There is a convenience method for serving files located via pkg_resources. There are also facilities for serving mixed (static and dynamic) content using “magic” file handlers. Python builtin string substitution, kid and Genshi template support are provided and it is easy to roll your own handlers. Note that this distribution does not require kid or Genshi unless you want to use that type of template. Also provides a command of the same name as a convenience when you just want to share a little content over HTTP, ad hoc.
This package installs the library for Python 3.
To fix this problem, we can install more using the command below.
sudo apt-get -y install python3-static3
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install python3-static3.
sudo apt -y install python3-static3
Or if you have aptitude installed you can use the following command.
sudo aptitude install python3-static3
Summary
In this tutorial we learn how to fix static command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.