How to install moon in Ubuntu via terminal?

Asked

Viewed 146 times

0

I have tried everything, write apt-get install lua5.1 or lua5.2, it says it is impossible to find package

Reading Package Lists... Ready Building a dependency tree
Reading status information... Ready E: Impossible to find the package lua5.1 E: Couldn’t find any package by glob 'lua5.1' E: Could not find package via regular expression 'lua5.1'

I tried to see if I already had a version, I don’t have

I tried to download through their site, I could not, if someone has to help me there.

  • See http://www.lua.org/start.html#building

1 answer

0

In a new installation, the package cache does not list the moon. But just update: sudo apt-get update.

Running Ubuntu through Docker:

docker run -it --rm ubuntu bash

Error while trying to install the moon:

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'

Updated packages and start of installation:

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]

Browser other questions tagged

You are not signed in. Login or sign up in order to post.