Desktop Environment (if applicable):
Docker container running on an M1 macOS laptop
Problem Description:
Luarocks 3.8.0 is not the current >= 3.13.0. apt install luarocks will by default install new packages for lua5.1 and does not contain updates to support lua5.5.
Relevant System Information:
It is a Docker container.
luarocks --version # /usr/bin/luarocks 3.8.0 # Not current >= 3.13.0
Steps to reproduce
% docker run -it ubuntu:26.04
apt-get update -q -q --yes
apt-get install --yes -q -q lua5.5 luarocks
lua -v # Lua 5.1.5 # Not current >= v5.5.0 that we just installed
luarocks --version # /usr/bin/luarocks 3.8.0 # Not current >= 3.13.0
I think there is a misunderstanding of what apt is and does. It doesn’t run some sort of installer of Lua; just installs DEB packages. Such are just archives, containing the files to install, essentially. And, by policy, you won’t get a newer version than at feature freeze time.
…and there’s everything you need to know. 3.11 is in Debian, but not 3.13. On a different system, I can see that 3.11 is also in Ubuntu 26.10, to be released in October.
If you want to help bring 3.13 to Debian (and thence to Ubuntu), you can also see the link to the Lua maintainers – reach out to them and offer to help.
You can also see open bugs – feel free to help squash those.
And you can see Lintian warnings that need to be addressed – pitch in!
Debian is 100% volunteer, and more help is welcome. They will train you how to do it!
That should be apt purge luarocks plus rm -r ~/.luarocks. BTW, apt-get is deprecated; one is supposed to use plain apt, which has assimilated most of the relevant apt-get commands.
Please put all log and other console/terminal output in pre-formatted code blocks (open a new line and click the </> icon in the editor first, then paste into the new element), ideally wrapped in a “Hide Details” element, if it’s more than just a few lines. See items 4 and 5 in the Posting Guide.
Optional helper script
If you are so inclined, I took it upon myself to provide a little helper script for that.