lwp-mirror command not found

In this troubleshooting guide we learn how to fix lwp-mirror command not found error message

Introduction

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

lwp-mirror: command not found

or when using sudo you get the following error message

sudo: lwp-mirror: command not found

Solutions to lwp-mirror: command not found

How To Fix lwp-mirror: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu lwp-mirror is provided by libwww-perl package.

libwww-perl is:

libwww-perl (also known as LWP) is a collection of Perl modules that provide a simple and consistent programming interface (API) to the World-Wide Web. The main focus of the library is to provide classes and functions that allow you to write WWW clients. It also contains general purpose modules, as well as a simple HTTP/1.1-compatible server implementation.

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

sudo apt-get -y install libwww-perl

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

You can also use apt command to install libwww-perl.

sudo apt -y install libwww-perl

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

sudo aptitude install libwww-perl

Summary

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