# Could not find a valid gem 'jekyll' (\>= 0)

**URL:** <https://talk.jekyllrb.com/t/could-not-find-a-valid-gem-jekyll-0/9287>\
**Category:** Help\
**Created:** [June 25, 2024, 12:30pm UTC](https://talk.jekyllrb.com/t/could-not-find-a-valid-gem-jekyll-0/9287 "2024-06-25T12:30:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rafisics](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/rafisics/32/5996_2.png) [@rafisics](https://talk.jekyllrb.com/u/rafisics)\
**Post date:** [June 25, 2024, 12:30pm UTC](https://talk.jekyllrb.com/t/could-not-find-a-valid-gem-jekyll-0/9287/1 "2024-06-25T12:30:38Z")

</div>

On Ubuntu 22.04.4 LTS, I am following [Jekyll on Ubuntu | Jekyll • Simple, blog-aware, static sites](https://jekyllrb.com/docs/installation/ubuntu/). But I am having this error:

```auto
$ gem install jekyll bundler
ERROR: Could not find a valid gem 'jekyll' (>= 0), here is why:
          Unable to download data from https://rubygems.org/ - Net::OpenTimeout: execution expired (https://rubygems.org/specs.4.8.gz)

```

Installed Ruby and Gem:

```auto
$ ruby -v
ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-linux-gnu]
$ gem -v
3.3.5

```

---

<div class="post-metadata">

**Author:** ![rafisics](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/rafisics/32/5996_2.png) [@rafisics](https://talk.jekyllrb.com/u/rafisics)\
**Post date:** [June 28, 2024, 6:34am UTC](https://talk.jekyllrb.com/t/could-not-find-a-valid-gem-jekyll-0/9287/2 "2024-06-28T06:34:11Z")

</div>

> [@Installing Jekyll on Ubuntu 22.04](https://talk.jekyllrb.com/t/installing-jekyll-on-ubuntu-22-04/9296):
>
> I am trying to install jekyll. But I am getting this error: $ gem install jekyll bundler ERROR: Could not find a valid gem 'jekyll' (\>= 0), here is why: Unable to download data from https://rubygems.org/ - Gem::Net::OpenTimeout: Failed to open TCP connection to rubygems.org:443 (execution expired) (https://rubygems.org/specs.4.8.gz) ERROR: Could not find a valid gem 'bundler' (\>= 0), here is why: Unable to download data from https://rubygems.org/ - Gem::Net::OpenTimeout: F…

---

<div class="post-metadata">

**Author:** ![george-gca](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/george-gca/32/5301_2.png) [@george-gca](https://talk.jekyllrb.com/u/george-gca)\
**Post date:** [July 30, 2024, 1:43pm UTC](https://talk.jekyllrb.com/t/could-not-find-a-valid-gem-jekyll-0/9287/3 "2024-07-30T13:43:47Z")

</div>

Check the first 2 steps of [this tutorial](https://george-gca.github.io/blog/2022/running-local-al-folio/). This might help you set up a ruby environment.
