# Gem install/update errors

**URL:** <https://www.ruby-forum.com/t/gem-install-update-errors/187261>\
**Category:** Rails\
**Created:** [April 20, 2010, 6:58pm UTC](https://www.ruby-forum.com/t/gem-install-update-errors/187261 "2010-04-20T18:58:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![clavatinc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f05b48/32.png) [@clavatinc](https://www.ruby-forum.com/u/clavatinc)\
**Post date:** [April 20, 2010, 6:58pm UTC](https://www.ruby-forum.com/t/gem-install-update-errors/187261/1 "2010-04-20T18:58:52Z")

</div>

%USERPROFILE%\Documents\Programs\rails\_apps\history\> gem update rails  
ERROR: While executing gem … (ArgumentError)  
uri scheme is invalid  
Updating installed gems  
Process gem exited with code 1

I received this error first while attempting ‘gem install will\_paginate’  
and have been unable to do any gem install or gem update commands since.  
I recently installed git on my computer, but other than that have made  
no changes to my environment recently. I couldn’t find anything on this  
error elsewhere.

---

<div class="post-metadata">

**Author:** ![clavatinc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f05b48/32.png) [@clavatinc](https://www.ruby-forum.com/u/clavatinc)\
**Post date:** [April 21, 2010, 5:20am UTC](https://www.ruby-forum.com/t/gem-install-update-errors/187261/2 "2010-04-21T05:20:26Z")

</div>

Stacy Vlasits wrote:

> %USERPROFILE%\Documents\Programs\rails\_apps\history\> gem update rails  
> ERROR: While executing gem … (ArgumentError)  
> uri scheme is invalid  
> Updating installed gems  
> Process gem exited with code 1
> 
> I received this error first while attempting ‘gem install will\_paginate’  
> and have been unable to do any gem install or gem update commands since.  
> I recently installed git on my computer, but other than that have made  
> no changes to my environment recently. I couldn’t find anything on this  
> error elsewhere.

Try removing the gem source for [rubyonrails.org](http://rubyonrails.org) if it’s present. I  
think the issues they are having with their domain name may be causing  
your problem.

gem sources --remove [http://gems.rubyonrails.org](http://gems.rubyonrails.org)

That’s what worked for me.

~W

---

<div class="post-metadata">

**Author:** ![clavatinc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f05b48/32.png) [@clavatinc](https://www.ruby-forum.com/u/clavatinc)\
**Post date:** [April 21, 2010, 8:05am UTC](https://www.ruby-forum.com/t/gem-install-update-errors/187261/3 "2010-04-21T08:05:48Z")

</div>

Try doing a “gem sources” and see if one of your sources is  
[http://gems.rubyonrails.org](http://gems.rubyonrails.org)

If it is, remove it with “gem sources --remove  
[http://gems.rubyonrails.org](http://gems.rubyonrails.org)”.  
I had the same problem today, I think it is related to the issue that  
[rubyonrails.org](http://rubyonrails.org) is having with their domain name.

~W

---

<div class="post-metadata">

**Author:** ![clavatinc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f05b48/32.png) [@clavatinc](https://www.ruby-forum.com/u/clavatinc)\
**Post date:** [April 21, 2010, 8:05am UTC](https://www.ruby-forum.com/t/gem-install-update-errors/187261/4 "2010-04-21T08:05:48Z")

</div>

Check your Gem sources with: `gem sources` and remove  
[http://gems.rubyonrails.org](http://gems.rubyonrails.org)  
if it’s listed.  
The main [rubyonrails.org](http://rubyonrails.org) domain is down. ihth

–arnie riquelme

---

<div class="post-metadata">

**Author:** ![clavatinc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f05b48/32.png) [@clavatinc](https://www.ruby-forum.com/u/clavatinc)\
**Post date:** [April 21, 2010, 2:42pm UTC](https://www.ruby-forum.com/t/gem-install-update-errors/187261/5 "2010-04-21T14:42:16Z")

</div>

Thanks Wayne and Arnie,

That did it.

artixan wrote:

> Check your Gem sources with: `gem sources` and remove  
> [http://gems.rubyonrails.org](http://gems.rubyonrails.org)  
> if it’s listed.  
> The main [rubyonrails.org](http://rubyonrails.org) domain is down. ihth
> 
> –arnie riquelme
