lftp command not found

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

Introduction

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

lftp: command not found

or when using sudo you get the following error message

sudo: lftp: command not found

Solutions to lftp: command not found

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

In Ubuntu lftp is provided by lftp package.

lftp is:

Lftp is a file retrieving tool that supports FTP, HTTP, FISH, SFTP, HTTPS, FTPS and BitTorrent protocols under both IPv4 and IPv6. Lftp has an amazing set of features, while preserving its interface as simple and easy as possible.

The main two advantages over other ftp clients are reliability and ability to perform tasks in background. It will reconnect and reget the file being transferred if the connection broke. You can start a transfer in background and continue browsing on the ftp site. It does this all in one process. When you have started background jobs and feel you are done, you can just exit lftp and it automatically moves to nohup mode and completes the transfers. It has also such nice features as reput and mirror. It can also download a file as soon as possible by using several connections at the same time.

Lftp can also be scriptable, it can be used to mirror sites, it lets you copy files among remote servers (even between FTP and HTTP). It has an extensive online help. It supports bookmarks, and connecting to several ftp/http sites at the same time.

This package also includes lftpget - A simple non-interactive tool for downloading files.

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

sudo apt-get -y install lftp

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

You can also use apt command to install lftp.

sudo apt -y install lftp

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

sudo aptitude install lftp

Summary

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