swapspace command not found

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

Introduction

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

swapspace: command not found

or when using sudo you get the following error message

sudo: swapspace: command not found

Solutions to swapspace: command not found

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

In Ubuntu swapspace is provided by swapspace package.

swapspace is:

Small, stable system add-on that continuously and automatically adapts available virtual memory space to your actual memory needs. Claims disk space for use as swap space when needed; frees it up for use by the filesystem when not needed.

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

sudo apt-get -y install swapspace

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

You can also use apt command to install swapspace.

sudo apt -y install swapspace

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

sudo aptitude install swapspace

Summary

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