我正在尝试按照以下步骤安装 JekyllWindows 子系统上的 Jekyll Linux 教程。安装 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'
我该如何解决这个问题?
答案1
我已经安装了 Ubuntu 18.04,但没有ruby2.4 ruby2.4-dev
适用于 Ubuntu 18.04 的软件包packages.ubuntu.com因此,我已将命令更新为如下方式进行安装ruby2.5 ruby2.5-dev
sudo apt-get install ruby2.5 ruby2.5-dev build-essential dh-autoreconf