Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I'm getting "Error 403" when installing rails

I'm trying to install rails -v 5.2.2 on wsl ubuntu 18.04. Im met with following error:

ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
    bad response Forbidden 403 (https://api.rubygems.org/quick/Marshal.4.8/nokogiri-1.13.3-x64-unknown.gemspec.rz)

I'm relatively new to bash and I'm not sure what to do at this point, as google failed me. Help? :)

like image 481
Egilzzz Avatar asked Sep 07 '26 15:09

Egilzzz


1 Answers

I had the same issue with -v 5.2.3. What worked for me was updating RubyGems with:

gem update --system

Then again:

gem install rails --version 5.2.3 

and no issues this time.

like image 193
Rodrigo Ladrón de Guevara Avatar answered Sep 10 '26 08:09

Rodrigo Ladrón de Guevara



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!