Not sure if this applies on Debian, but on Arch I also had to install LuaSocket.