Aparamente numa nova instalação o cache de pacotes não lista o lua.
Porém basta atualizar: sudo apt-get update
.
Rodando Ubuntu através do Docker:
docker run -it --rm ubuntu bash
Erro ao tentar instalar a lua:
root@2d889582f79b:/# apt-get install lua5.2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package lua5.2
E: Couldn't find any package by glob 'lua5.2'
E: Couldn't find any package by regex 'lua5.2'
Pacotes atualizados e o começo da instalação:
root@2d889582f79b:/# apt-get update > /dev/null
root@2d889582f79b:/# apt-get install lua5.2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libreadline7 readline-common
Suggested packages:
readline-doc
The following NEW packages will be installed:
libreadline7 lua5.2 readline-common
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 274 kB of archives.
After this operation, 853 kB of additional disk space will be used.
Do you want to continue? [Y/n]