JinKazama
JinKazama

Reputation: 81

Liblua5.3-lpeg.so.2: cannot open shared object file

I have updated my Kali Linux 2.0 using apt-get update and apt-get upgrade.

Since then, nmap have stopped working for me.

I receive the following error on command line:

root@kali:/usr/local/lib# nmap
nmap: error while loading shared libraries: liblua5.3-lpeg.so.2: cannot open shared object file: No such file or directory

I already have tried to update nmap using apt-get update nmap, and also creating a symbolic link using: ln -s liblua.so.5.3 liblua.so.5.2. Both didn't help.

How can I fix the issue?

Upvotes: 0

Views: 3730

Answers (4)

Emac342007
Emac342007

Reputation: 384

When I had a similar problem with neovim, I just installed the lua-lpeg version it required with sudo dnf install lua5.1-lpeg and it worked just fine.

Upvotes: 0

jak bin
jak bin

Reputation: 502

You need to install or update lua-lpeg package. So run command

sudo apt install lua-lpeg

If you are, don't use sudo. This will fix your problem.

Upvotes: 1

bonsaiviking
bonsaiviking

Reputation: 6005

You have a library version dependency problem. Nmap needs the lpeg library for Lua 5.3, which is not available. The lpeg-lua package provides lua5.3-lpeg on Kali Linux, so it probably has to be updated as well. The version I see as current is 0.12.2-1.

Upvotes: 1

JinKazama
JinKazama

Reputation: 81

Have been able to fix the issue using:

ln -s liblua5.2-lpeg.so.2.0.0 liblua5.3-lpeg.so.2

Upvotes: -2

Related Questions