Progets, thanks for the help, I had not noticed, but it still does not work, now it gives error 127.
It seems to say that attract is not, but if it is and with permissions rwxr-xr-x, i do not know if they are enough.
The attract binary i got from a compilation i made myself in Raspbian Stretch.
The main problem is that lakka is based on openELEC, and this is intended only to run kodi and nothing but kodi, although they have managed to get the lakka retroarch, so commands like apt-get do not work.