wrapsrv command not found

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

Introduction

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

wrapsrv: command not found

or when using sudo you get the following error message

sudo: wrapsrv: command not found

Solutions to wrapsrv: command not found

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

In Ubuntu wrapsrv is provided by wrapsrv package.

wrapsrv is:

wrapsrv adds support for connecting to a network service based on DNS SRV record lookups to commands that do not support the DNS SRV record. wrapsrv implements the weighted priority client connection algorithm in RFC 2782. The specified command line will be invoked one or more times with %h and %p sequences in the command line substituted for the hostname and port elements of the selected SRV record.

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

sudo apt-get -y install wrapsrv

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

You can also use apt command to install wrapsrv.

sudo apt -y install wrapsrv

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

sudo aptitude install wrapsrv

Summary

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