The installation of Lua libraries with luarocks fails:
tim@NodeMCU-Build:~$ for m in bitlib luafilesystem md5 luaposix luasocket; do su do luarocks install $m; done
Warning: Failed searching manifest: Failed loading manifest: Failed fetching man ifest for http://luarocks.org/repositories/rocks
The version of luarocks installed by is 2.0.8:
tim@NodeMCU-Build:~$ sudo apt-get install luarocks
Reading package lists... Done
Building dependency tree
Reading state information... Done
luarocks is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
tim@NodeMCU-Build:~$ luarocks
LuaRocks 2.0.8, a module deployment system for Lua
luarocks.org indicates the latest version is 2.4.4
I followed the procedure in the quickstart and was then able to install bitlib luafilesystem md5 luaposix luasocket using luarocks
Perhaps luarocks.org has re-arranged their files with the later versions?
I don't really understand the reasoning behind why the wiki calls specifically for Ubuntu 12.04 and no updating (since the wiki was updated in 2018, it is not because 12.04 was the current version at the time), but the older version of luarocks is likely a side-effect of that approach.