ngspice command not found

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

Introduction

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

ngspice: command not found

or when using sudo you get the following error message

sudo: ngspice: command not found

Solutions to ngspice: command not found

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

In Ubuntu ngspice is provided by ngspice package.

ngspice is:

NGSpice is a mixed-level/mixed-signal circuit simulator. Its code is based on three open source software packages: Spice3f5, Cider1b1 and Xspice.

NGSpice is part of gEDA project, a full GPL’d suite of Electronic Design Automation tools.

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

sudo apt-get -y install ngspice

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

You can also use apt command to install ngspice.

sudo apt -y install ngspice

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

sudo aptitude install ngspice

Summary

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