Improved workaround so that it's compatible with the alternatives configured by the older lua packages, like lua5.2:
sudo update-alternatives --install /usr/bin/lua lua-interpreter /usr/bin/lua5.3 130 --slave /usr/share/man/man1/lua.1.gz lua-manual /usr/share/man/man1/lua5.3.1.gz
sudo update-alternatives --install /usr/bin/luac lua-compiler /usr/bin/luac5.3 130 --slave /usr/share/man/man1/luac.1.gz lua-compiler-manual /usr/share/man/man1/luac5.3.1.gz
Improved workaround so that it's compatible with the alternatives configured by the older lua packages, like lua5.2:
sudo update-alternatives --install /usr/bin/lua lua-interpreter /usr/bin/lua5.3 130 --slave /usr/share/ man/man1/ lua.1.gz lua-manual /usr/share/ man/man1/ lua5.3. 1.gz
sudo update-alternatives --install /usr/bin/luac lua-compiler /usr/bin/luac5.3 130 --slave /usr/share/ man/man1/ luac.1. gz lua-compiler-manual /usr/share/ man/man1/ luac5.3. 1.gz