error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory

I’ve installed parrot os on my device for the 1st time and I’ve installed home edition. Now after I’ve installed metasploit using apt whenever I run msfconsole or msfvenom I get the following error /opt/metasploit/ruby/bin/.ruby.bin: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory

My parrot os info is
VERSION_ID=“5.3”
VERSION=“5.3 (Electro Ara)”
VERSION_CODENAME=ara

  • Logs/Terminal output (use pastebin or similar services):

  • Screenshots:

Hi @R147

Sounds like you may need to create a symlink to libcrypt.so. First, you need to locate the library…

sudo su
apt install locate
updatedb
locate libcrypt.so

┌─[root@cracker]─[/home/masmer]
└──╼ #locate libcrypt.so
/usr/lib/x86_64-linux-gnu/libcrypt.so
/usr/lib/x86_64-linux-gnu/libcrypt.so.1
/usr/lib/x86_64-linux-gnu/libcrypt.so.1.1.0

what to do next. I mean where should I create symlink ?

Strange. My Metasploit is installed on Parrot (Security 5.3) in /usr/share/metasploit-framework.

Did you install it using

sudo install metasploit-framework

BTW: I’ve spent time googling for an answer.