ptywrap command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
ptywrap: command not found
or when using sudo you get the following error message
sudo: ptywrap: command not found
Solutions to ptywrap: command not found
How To Fix ptywrap: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu ptywrap is provided by libmodglue1v5 package.
libmodglue1v5 is:
Modglue is a C++ library with classes for forking external processes and asynchronous reading from streams. It takes away the burden of all subtleties involving the Unix fork call. The asynchronous read facility enables one to read on multiple input streams at the same time, without losing any of the standard C++ stream facilities.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libmodglue1v5
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libmodglue1v5.
sudo apt -y install libmodglue1v5
Or if you have aptitude installed you can use the following command.
sudo aptitude install libmodglue1v5
Summary
In this tutorial we learn how to fix ptywrap command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.