# Knife-ec2 plugin not working when chef is installed from Ubuntu packages

**URL:** <https://discourse.chef.io/t/knife-ec2-plugin-not-working-when-chef-is-installed-from-ubuntu-packages/1955>\
**Category:** Chef Infra (archive)\
**Created:** [July 28, 2011, 3:03pm UTC](https://discourse.chef.io/t/knife-ec2-plugin-not-working-when-chef-is-installed-from-ubuntu-packages/1955 "2011-07-28T15:03:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luis](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/luis/32/802_2.png) [@Luis](https://discourse.chef.io/u/Luis)\
**Post date:** [July 28, 2011, 3:03pm UTC](https://discourse.chef.io/t/knife-ec2-plugin-not-working-when-chef-is-installed-from-ubuntu-packages/1955/1 "2011-07-28T15:03:45Z")

</div>

Hi,

I’ve installed chef from the opscode Ubuntu packages. I have the version  
0.10.2-2.  
I’ve tried to install knife-ec2 from the rubygems packages installation.  
Rubygems version is 1.3.7.  
If I try to use ‘knife ec2 …’ it keeps saying:  
FATAL: Cannot find sub command for: 'ec2’  
The ec2 commands were moved to plugins in Chef 0.10  
You can install the plugin with `(sudo) gem install knife-ec2

Any ideas?

## Thanks

Luis

---

<div class="post-metadata">

**Author:** ![Bryan\_McLellan](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/bryan_mclellan/32/81_2.png) [@Bryan\_McLellan](https://discourse.chef.io/u/Bryan_McLellan)\
**Post date:** [July 28, 2011, 8:14pm UTC](https://discourse.chef.io/t/knife-ec2-plugin-not-working-when-chef-is-installed-from-ubuntu-packages/1955/2 "2011-07-28T20:14:44Z")

</div>

On Thu, Jul 28, 2011 at 8:03 AM, [luisico@gmail.com](mailto:luisico@gmail.com) wrote:

> I've installed chef from the opscode Ubuntu packages. I have the version  
> 0.10.2-2.  
> I've tried to install knife-ec2 from the rubygems packages installation.  
> Rubygems version is 1.3.7.  
> If I try to use 'knife ec2 ....' it keeps saying:  
> FATAL: Cannot find sub command for: 'ec2'  
> The ec2 commands were moved to plugins in Chef 0.10  
> You can install the plugin with `(sudo) gem install knife-ec2

Take a look at this bug: [http://tickets.opscode.com/browse/CHEF-2483](http://tickets.opscode.com/browse/CHEF-2483)

Bryan

---

<div class="post-metadata">

**Author:** ![Luis](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/luis/32/802_2.png) [@Luis](https://discourse.chef.io/u/Luis)\
**Post date:** [July 29, 2011, 11:14am UTC](https://discourse.chef.io/t/knife-ec2-plugin-not-working-when-chef-is-installed-from-ubuntu-packages/1955/3 "2011-07-29T11:14:24Z")

</div>

Thanks Bryan.

It worked. I also added a small comment to the bug thread.

2011/7/28 Bryan McLellan [btm@loftninjas.org](mailto:btm@loftninjas.org):

> On Thu, Jul 28, 2011 at 8:03 AM, [luisico@gmail.com](mailto:luisico@gmail.com) wrote:
> 
> > I've installed chef from the opscode Ubuntu packages. I have the version  
> > 0.10.2-2.  
> > I've tried to install knife-ec2 from the rubygems packages installation.  
> > Rubygems version is 1.3.7.  
> > If I try to use 'knife ec2 ....' it keeps saying:  
> > FATAL: Cannot find sub command for: 'ec2'  
> > The ec2 commands were moved to plugins in Chef 0.10  
> > You can install the plugin with `(sudo) gem install knife-ec2
> 
> Take a look at this bug: [http://tickets.opscode.com/browse/CHEF-2483](http://tickets.opscode.com/browse/CHEF-2483)
> 
> Bryan
