J'ai suivi les étapes ci-dessous pour installer Ruby1.9.1 sur Ubuntu 18.04, mais il affiche la dernière version d'ubuntu après l'installation:
Pas:
Sudo apt-get install Ruby1.9.1-full
Sudo apt-get install rubygems1.9.1
Sudo apt-get install Ruby1.9.1-dev
Sudo update-alternatives --install /usr/bin/Ruby ruby /usr/bin/Ruby1.9.1 1
Réponse:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package Ruby1.9.1-full
E: Couldn't find any package by glob 'Ruby1.9.1-full'
E: Couldn't find any package by regex 'Ruby1.9.1-full'
Ruby apt-get installation failed, make sure that apt is working correctly and try again
./install_opentest.sh: line 135: break: only meaningful in a `for', `while', or `until' loop
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package rubygems1.9.1
E: Couldn't find any package by glob 'rubygems1.9.1'
E: Couldn't find any package by regex 'rubygems1.9.1'
rubygems apt-get installation failed, make sure that apt is working correctly and try again
./install_opentest.sh: line 135: break: only meaningful in a `for', `while', or `until' loop
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package Ruby1.9.1-dev
E: Couldn't find any package by glob 'Ruby1.9.1-dev'
E: Couldn't find any package by regex 'Ruby1.9.1-dev'
Est-il possible d'installer Ruby1.9.1 sur Ubuntu 18.04?
Selon recherche sur http://packages.ubuntu.com Ruby 1.9.1 est disponible uniquement pour Ubuntu 14.04 LTS.
Selon les officiels Ruby Maintenance Branches page 1.9.3 (comme aussi 2.0.0, 2.1, 2.2) est EOL .
Pensez à installer la version prise en charge de Ruby 2.5.1 pour votre Ubuntu 18.04 LTS:
Sudo apt install Ruby2.5 Ruby2.5-dev
Si vous avez vraiment besoin d'installer 1.9.1, compilez-le manuellement. Mais assurez-vous que vous souhaitez utiliser une version en fin de vie et non sécurisée.