expect-lite command not found

In this troubleshooting guide we learn how to fix expect-lite command not found error message

Introduction

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

expect-lite: command not found

or when using sudo you get the following error message

sudo: expect-lite: command not found

Solutions to expect-lite: command not found

How To Fix expect-lite: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu expect-lite is provided by expect-lite package.

expect-lite is:

Written in expect, it is designed to directly map an interactive terminal session into an automation script. expect-lite scripts use special character(s) at the beginning of each line to indicate the action. Basic expect-lite scripts can be created by simply cutting and pasting text from a terminal window into a script, and adding ‘>’ ‘<’ characters. No knowledge of expect is required!

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

sudo apt-get -y install expect-lite

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

You can also use apt command to install expect-lite.

sudo apt -y install expect-lite

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

sudo aptitude install expect-lite

Summary

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