我正在尝试按照Jekyll on Windows 教程安装 Jekyll 。从BrightBox存储库安装 ruby 有一个陡峭的过程。我触发了以下命令:
sudo apt-add-repository ppa:brightbox/ruby-ng
sudo apt-get update
sudo apt-get install ruby2.4 ruby2.4-dev build-essential dh-autoreconf
最后一个命令产生以下错误:
sudo apt-get install ruby2.4 ruby2.4-dev build-essential dh-autoreconf
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ruby2.4
E: Couldn't find any package by glob 'ruby2.4'
E: Couldn't find any package by regex 'ruby2.4'
E: Unable to locate package ruby2.4-dev
E: Couldn't find any package by glob 'ruby2.4-dev'
E: Couldn't find any package by regex 'ruby2.4-dev'
我该如何解决这个问题?
我已经安装了 Ubuntu 18.04,并且在 packages.ubuntu.com 上没有
ruby2.4 ruby2.4-dev
Ubuntu 18.04 的软件包,所以,我已将我的命令更新为如下进行安装ruby2.5 ruby2.5-dev