# Mysql cookbook fails : Chef::Exceptions::Exec: apt-get -q -y install mysql-client=5.5.24-0ubuntu0.12.04.1 returned 100, expected 0

**URL:** <https://discourse.chef.io/t/mysql-cookbook-fails-chef-exceptions-exec-apt-get-q-y-install-mysql-client-5-5-24-0ubuntu0-12-04-1-returned-100-expected-0/3264>\
**Category:** Chef Infra (archive)\
**Created:** [November 8, 2012, 3:05pm UTC](https://discourse.chef.io/t/mysql-cookbook-fails-chef-exceptions-exec-apt-get-q-y-install-mysql-client-5-5-24-0ubuntu0-12-04-1-returned-100-expected-0/3264 "2012-11-08T15:05:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nilesh](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/nilesh/32/654_2.png) [@Nilesh](https://discourse.chef.io/u/Nilesh)\
**Post date:** [November 8, 2012, 3:05pm UTC](https://discourse.chef.io/t/mysql-cookbook-fails-chef-exceptions-exec-apt-get-q-y-install-mysql-client-5-5-24-0ubuntu0-12-04-1-returned-100-expected-0/3264/1 "2012-11-08T15:05:48Z")

</div>

I created a folder for vagrantVM, edited Vagrantfile to add solo recipes, created a cookbooks folder and cloned mysql, build-essential, openssl from [https://github.com/opscode-cookbooks](https://github.com/opscode-cookbooks) and then vagrant up but chef failed.

[https://gist.github.com/4039324](https://gist.github.com/4039324) Is this a known issue?

---

<div class="post-metadata">

**Author:** ![Jorge\_Bianquetti](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/jorge_bianquetti/32/432_2.png) [@Jorge\_Bianquetti](https://discourse.chef.io/u/Jorge_Bianquetti)\
**Post date:** [November 8, 2012, 3:43pm UTC](https://discourse.chef.io/t/mysql-cookbook-fails-chef-exceptions-exec-apt-get-q-y-install-mysql-client-5-5-24-0ubuntu0-12-04-1-returned-100-expected-0/3264/2 "2012-11-08T15:43:01Z")

</div>

Ohai, Nilesh

When I have this kind of problem, first thing to test its simple:

- vagrant up without provision vm . ( comment out all chef references on  
Vagrantfile)
- run offending command WITHOUT run apt-get update first.
- If it fails, run apt-get update and fire up again.

This situation is common when package has been removed from repos, but your  
local cache have references to it.

2012/11/8 Nilesh [lvnilesh@yahoo.com](mailto:lvnilesh@yahoo.com)

> I created a folder for vagrantVM, edited Vagrantfile to add solo recipes,  
> created a cookbooks folder and cloned mysql, build-essential, openssl from  
> [https://github.com/opscode-cookbooks](https://github.com/opscode-cookbooks) and then vagrant up but chef failed.
> 
> [mysql cookbook fails : Chef::Exceptions::Exec: apt-get -q -y install mysql-client=5.5.24-0ubuntu0.12.04.1 returned 100, expected 0 · GitHub](https://gist.github.com/4039324) Is this a known issue?

---

<div class="post-metadata">

**Author:** ![Nilesh](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/nilesh/32/654_2.png) [@Nilesh](https://discourse.chef.io/u/Nilesh)\
**Post date:** [November 8, 2012, 4:06pm UTC](https://discourse.chef.io/t/mysql-cookbook-fails-chef-exceptions-exec-apt-get-q-y-install-mysql-client-5-5-24-0ubuntu0-12-04-1-returned-100-expected-0/3264/3 "2012-11-08T16:06:12Z")

</div>

Thanks. is there a recipe for apt-get update that I am missing?

On Nov 8, 2012, at 7:43 AM, Jorge Bianquetti [jbianquetti@gmail.com](mailto:jbianquetti@gmail.com) wrote:

> Ohai, Nilesh
> 
> When I have this kind of problem, first thing to test its simple:
> 
> - vagrant up without provision vm . ( comment out all chef references on Vagrantfile)
> - run offending command WITHOUT run apt-get update first.
> - If it fails, run apt-get update and fire up again.
> 
> This situation is common when package has been removed from repos, but your local cache have references to it.
> 
> 2012/11/8 Nilesh [lvnilesh@yahoo.com](mailto:lvnilesh@yahoo.com)  
> I created a folder for vagrantVM, edited Vagrantfile to add solo recipes, created a cookbooks folder and cloned mysql, build-essential, openssl from [https://github.com/opscode-cookbooks](https://github.com/opscode-cookbooks) and then vagrant up but chef failed.
> 
> [mysql cookbook fails : Chef::Exceptions::Exec: apt-get -q -y install mysql-client=5.5.24-0ubuntu0.12.04.1 returned 100, expected 0 · GitHub](https://gist.github.com/4039324) Is this a known issue?

---

<div class="post-metadata">

**Author:** ![Joshua\_Buysse](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/joshua_buysse/32/422_2.png) [@Joshua\_Buysse](https://discourse.chef.io/u/Joshua_Buysse)\
**Post date:** [November 8, 2012, 4:16pm UTC](https://discourse.chef.io/t/mysql-cookbook-fails-chef-exceptions-exec-apt-get-q-y-install-mysql-client-5-5-24-0ubuntu0-12-04-1-returned-100-expected-0/3264/4 "2012-11-08T16:16:53Z")

</div>

You can include the 'apt' cookbook's default recipe in the run list to take  
care of that.

-J

On Thu, Nov 8, 2012 at 10:06 AM, Nilesh [lvnilesh@yahoo.com](mailto:lvnilesh@yahoo.com) wrote:

> Thanks. is there a recipe for apt-get update that I am missing?
> 
> On Nov 8, 2012, at 7:43 AM, Jorge Bianquetti [jbianquetti@gmail.com](mailto:jbianquetti@gmail.com)  
> wrote:
> 
> Ohai, Nilesh
> 
> When I have this kind of problem, first thing to test its simple:
> 
> - vagrant up without provision vm . ( comment out all chef references on  
> Vagrantfile)
> - run offending command WITHOUT run apt-get update first.
> - If it fails, run apt-get update and fire up again.
> 
> This situation is common when package has been removed from repos, but  
> your local cache have references to it.
> 
> 2012/11/8 Nilesh [lvnilesh@yahoo.com](mailto:lvnilesh@yahoo.com)
> 
> > I created a folder for vagrantVM, edited Vagrantfile to add solo recipes,  
> > created a cookbooks folder and cloned mysql, build-essential, openssl from  
> > [https://github.com/opscode-cookbooks](https://github.com/opscode-cookbooks) and then vagrant up but chef failed.
> > 
> > [mysql cookbook fails : Chef::Exceptions::Exec: apt-get -q -y install mysql-client=5.5.24-0ubuntu0.12.04.1 returned 100, expected 0 · GitHub](https://gist.github.com/4039324) Is this a known issue?

--  
Joshua Buysse, System Engineer  
College of Liberal Arts, Office of Information Technology  
University of Minnesota

"On two occasions I have been asked, 'Pray, Mr. Babbage, if you  
put into the machine wrong figures, will the right answers come  
out?' I am not able rightly to apprehend the kind of confusion of  
ideas that could provoke such a question."

- Charles Babbage

---

<div class="post-metadata">

**Author:** ![Nilesh](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/nilesh/32/654_2.png) [@Nilesh](https://discourse.chef.io/u/Nilesh)\
**Post date:** [November 8, 2012, 4:53pm UTC](https://discourse.chef.io/t/mysql-cookbook-fails-chef-exceptions-exec-apt-get-q-y-install-mysql-client-5-5-24-0ubuntu0-12-04-1-returned-100-expected-0/3264/5 "2012-11-08T16:53:54Z")

</div>

Thanks. It worked.

This is what I have been playing with [GitHub - fungibleclouds/khanakhazana](https://github.com/fungibleclouds/khanakhazana)

On Nov 8, 2012, at 8:16 AM, Joshua Buysse [buysse@umn.edu](mailto:buysse@umn.edu) wrote:

> You can include the 'apt' cookbook's default recipe in the run list to take care of that.
> 
> -J
> 
> On Thu, Nov 8, 2012 at 10:06 AM, Nilesh [lvnilesh@yahoo.com](mailto:lvnilesh@yahoo.com) wrote:  
> Thanks. is there a recipe for apt-get update that I am missing?
> 
> On Nov 8, 2012, at 7:43 AM, Jorge Bianquetti [jbianquetti@gmail.com](mailto:jbianquetti@gmail.com) wrote:
> 
> > Ohai, Nilesh
> > 
> > When I have this kind of problem, first thing to test its simple:
> > 
> > - vagrant up without provision vm . ( comment out all chef references on Vagrantfile)
> > - run offending command WITHOUT run apt-get update first.
> > - If it fails, run apt-get update and fire up again.
> > 
> > This situation is common when package has been removed from repos, but your local cache have references to it.
> > 
> > 2012/11/8 Nilesh [lvnilesh@yahoo.com](mailto:lvnilesh@yahoo.com)  
> > I created a folder for vagrantVM, edited Vagrantfile to add solo recipes, created a cookbooks folder and cloned mysql, build-essential, openssl from [https://github.com/opscode-cookbooks](https://github.com/opscode-cookbooks) and then vagrant up but chef failed.
> > 
> > [mysql cookbook fails : Chef::Exceptions::Exec: apt-get -q -y install mysql-client=5.5.24-0ubuntu0.12.04.1 returned 100, expected 0 · GitHub](https://gist.github.com/4039324) Is this a known issue?
> 
> --  
> Joshua Buysse, System Engineer  
> College of Liberal Arts, Office of Information Technology  
> University of Minnesota
> 
> "On two occasions I have been asked, 'Pray, Mr. Babbage, if you  
> put into the machine wrong figures, will the right answers come  
> out?' I am not able rightly to apprehend the kind of confusion of  
> ideas that could provoke such a question."
> 
> - Charles Babbage

---

<div class="post-metadata">

**Author:** ![Torben\_Knerr](https://avatars.discourse-cdn.com/v4/letter/t/ba8739/32.png) [@Torben\_Knerr](https://discourse.chef.io/u/Torben_Knerr)\
**Post date:** [November 8, 2012, 7:10pm UTC](https://discourse.chef.io/t/mysql-cookbook-fails-chef-exceptions-exec-apt-get-q-y-install-mysql-client-5-5-24-0ubuntu0-12-04-1-returned-100-expected-0/3264/6 "2012-11-08T19:10:32Z")

</div>

Am 08.11.2012 16:43 schrieb "Jorge Bianquetti" [jbianquetti@gmail.com](mailto:jbianquetti@gmail.com):

> Ohai, Nilesh
> 
> When I have this kind of problem, first thing to test its simple:
> 
> - vagrant up without provision vm . ( comment out all chef references  
> on Vagrantfile)

Or simply use 'vagrant up --no-provision'

> - run offending command WITHOUT run apt-get update first.
> - If it fails, run apt-get update and fire up again.
> 
> This situation is common when package has been removed from repos, but  
> your local cache have references to it.
> 
> 2012/11/8 Nilesh [lvnilesh@yahoo.com](mailto:lvnilesh@yahoo.com)
> 
> > I created a folder for vagrantVM, edited Vagrantfile to add solo  
> > recipes, created a cookbooks folder and cloned mysql, build-essential,  
> > openssl from [https://github.com/opscode-cookbooks](https://github.com/opscode-cookbooks) and then vagrant up but  
> > chef failed.
> > 
> > [mysql cookbook fails : Chef::Exceptions::Exec: apt-get -q -y install mysql-client=5.5.24-0ubuntu0.12.04.1 returned 100, expected 0 · GitHub](https://gist.github.com/4039324) Is this a known issue?
