error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory code example

Example 1: Original error was: libf77blas.so.3: cannot open shared object file: No such file or directory

sudo apt-get install libatlas-base-dev

Example 2: libgthread-2.0.so.0: cannot open shared object file: No such file or directory

sudo apt-get update
sudo apt-get install libglib2.0-0

Example 3: utserver: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory

cd /etc/apt/
sudo gedit sources.list

#add following lines to end of the file and save it

#Bionic support 
deb http://ca.archive.ubuntu.com/ubuntu/ bionic main restricted
deb http://ca.archive.ubuntu.com/ubuntu/ bionic universe
deb http://ca.archive.ubuntu.com/ubuntu/ bionic multiverse

run:
sudo apt update
sudo apt install libssl1.0.0

Example 4: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory"

sudo apt-get install libaio1 libaio-dev