# CHEF-Client installation

**URL:** <https://discourse.chef.io/t/chef-client-installation/1761>\
**Category:** Chef Infra (archive)\
**Created:** [March 31, 2011, 12:59pm UTC](https://discourse.chef.io/t/chef-client-installation/1761 "2011-03-31T12:59:50Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![WEINHAPL\_Andreas](https://avatars.discourse-cdn.com/v4/letter/w/8baadc/32.png) [@WEINHAPL\_Andreas](https://discourse.chef.io/u/WEINHAPL_Andreas)\
**Post date:** [March 31, 2011, 12:59pm UTC](https://discourse.chef.io/t/chef-client-installation/1761/1 "2011-03-31T12:59:50Z")

</div>

Hi,

I just want to install chef-client on a Debian server. In the normal way this is no prob. First put the sources in the source-list and add the gpg key. After that install it with “apt-get install chef-client”

So now I get the message:

"  
Reading package lists… Done  
Building dependency tree  
Reading state information… Done  
Some packages could not be installed. This may mean that you have  
requested an impossible situation or if you are using the unstable  
distribution that some required packages have not yet been created  
or been moved out of Incoming.  
The following information may help to resolve the situation:

The following packages have unmet dependencies:  
chef: Depends: libjson-ruby1.8 (\>= 1.4.6) but it is not going to be installed  
Depends: ohai (\>= 0.5.8) but it is not going to be installed  
Depends: libchef-ruby1.8 (= 0.9.14+dfsg-1) but it is not going to be installed  
E: Broken packages  
"  
So I just used these things to resolve the issue:

- 

```
    apt-get --purge remove puppet (because we used puppet first)

```

- 

```
    apt-get --purge autoremove

```

- 

```
    apt-get clean

```

but after these steps I couldn’t install chef-client. I also checked the packages and found out that there are newer versions of ruby on the apt-repo but chef will use older ones. Could this be the problem or could someone help me with that?!

E.g.:  
Depends: ohai (\>= 0.5.8) but it is not going to be installed  
Depends: libohai-ruby but it is not going to be installed  
Depends: libohai-ruby1.8 (= 0.5.8-1) but it is not going to be installed  
Depends: libjson-ruby1.8 but it is not going to be installed  
Depends: libruby1.8 (\>= 1.8.7.249) but it is not going to be installed  
Inst libruby1.8 (1.8.7.72-3lenny1 Debian:5.0.8/oldstable, Debian-Security:5.0/oldstable) -\> I could install this but after installation, I couldn’t install ohai ☹

||/ Name Version Description  
++±=============================-=============================-==========================================================================  
ii libruby1.8 1.8.7.72-3lenny1 Libraries necessary to run Ruby 1.8

If I compare it with an running client (same version of Debian aso) is should be fine …

Dpkg -l  
Regards  
Andreas

---

<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:** [March 31, 2011, 1:29pm UTC](https://discourse.chef.io/t/chef-client-installation/1761/2 "2011-03-31T13:29:44Z")

</div>

On Thu, Mar 31, 2011 at 5:59 AM, WEINHAPL Andreas  
[andreas.weinhapl@thalesgroup.com](mailto:andreas.weinhapl@thalesgroup.com) wrote:

> I just want to install chef-client on a Debian server. In the normal way  
> this is no prob. First put the sources in the source-list and add the gpg  
> key. After that install it with “apt-get install chef-client”

What version of debian?

Bryan

---

<div class="post-metadata">

**Author:** ![WEINHAPL\_Andreas](https://avatars.discourse-cdn.com/v4/letter/w/8baadc/32.png) [@WEINHAPL\_Andreas](https://discourse.chef.io/u/WEINHAPL_Andreas)\
**Post date:** [March 31, 2011, 1:32pm UTC](https://discourse.chef.io/t/chef-client-installation/1761/3 "2011-03-31T13:32:56Z")

</div>

HI:

Uname - a  
Linux server31 2.6.26-2-amd64 #1 SMP Tue Jan 25 05:59:43 UTC 2011 x86\_64 GNU/Linux

Debian\_version: 5.0.8

Regards

-----Original Message-----  
From: Bryan McLellan [[mailto:btm@loftninjas.org](mailto:btm@loftninjas.org)]  
Sent: Donnerstag, 31. März 2011 15:30  
To: [chef@lists.opscode.com](mailto:chef@lists.opscode.com)  
Cc: WEINHAPL Andreas  
Subject: Re: [chef] CHEF-Client installation

On Thu, Mar 31, 2011 at 5:59 AM, WEINHAPL Andreas  
[andreas.weinhapl@thalesgroup.com](mailto:andreas.weinhapl@thalesgroup.com) wrote:

> I just want to install chef-client on a Debian server. In the normal way  
> this is no prob. First put the sources in the source-list and add the gpg  
> key. After that install it with "apt-get install chef-client"

What version of debian?

Bryan

---

<div class="post-metadata">

**Author:** ![Kimball\_Johnson](https://avatars.discourse-cdn.com/v4/letter/k/41988e/32.png) [@Kimball\_Johnson](https://discourse.chef.io/u/Kimball_Johnson)\
**Post date:** [March 31, 2011, 2:27pm UTC](https://discourse.chef.io/t/chef-client-installation/1761/4 "2011-03-31T14:27:30Z")

</div>

There is already a ticket for this CHEF-2110

On 31 March 2011 14:32, WEINHAPL Andreas  
[andreas.weinhapl@thalesgroup.com](mailto:andreas.weinhapl@thalesgroup.com) wrote:

> HI:
> 
> Uname - a  
> Linux server31 2.6.26-2-amd64 #1 SMP Tue Jan 25 05:59:43 UTC 2011 x86\_64 GNU/Linux
> 
> Debian\_version: 5.0.8
> 
> Regards
> 
> -----Original Message-----  
> From: Bryan McLellan [[mailto:btm@loftninjas.org](mailto:btm@loftninjas.org)]  
> Sent: Donnerstag, 31. März 2011 15:30  
> To: [chef@lists.opscode.com](mailto:chef@lists.opscode.com)  
> Cc: WEINHAPL Andreas  
> Subject: Re: [chef] CHEF-Client installation
> 
> On Thu, Mar 31, 2011 at 5:59 AM, WEINHAPL Andreas  
> [andreas.weinhapl@thalesgroup.com](mailto:andreas.weinhapl@thalesgroup.com) wrote:
> 
> > I just want to install chef-client on a Debian server. In the normal way  
> > this is no prob. First put the sources in the source-list and add the gpg  
> > key. After that install it with "apt-get install chef-client"
> 
> What version of debian?
> 
> Bryan

---

<div class="post-metadata">

**Author:** ![WEINHAPL\_Andreas](https://avatars.discourse-cdn.com/v4/letter/w/8baadc/32.png) [@WEINHAPL\_Andreas](https://discourse.chef.io/u/WEINHAPL_Andreas)\
**Post date:** [March 31, 2011, 3:13pm UTC](https://discourse.chef.io/t/chef-client-installation/1761/5 "2011-03-31T15:13:50Z")

</div>

Really? I can't find it ☹

-----Original Message-----  
From: Kimball Johnson [[mailto:kimball@bowerham.net](mailto:kimball@bowerham.net)]  
Sent: Donnerstag, 31. März 2011 16:28  
To: [chef@lists.opscode.com](mailto:chef@lists.opscode.com)  
Cc: WEINHAPL Andreas; Bryan McLellan  
Subject: Re: [chef] RE: CHEF-Client installation

There is already a ticket for this CHEF-2110

On 31 March 2011 14:32, WEINHAPL Andreas  
[andreas.weinhapl@thalesgroup.com](mailto:andreas.weinhapl@thalesgroup.com) wrote:

> HI:
> 
> Uname - a  
> Linux server31 2.6.26-2-amd64 #1 SMP Tue Jan 25 05:59:43 UTC 2011 x86\_64 GNU/Linux
> 
> Debian\_version: 5.0.8
> 
> Regards
> 
> -----Original Message-----  
> From: Bryan McLellan [[mailto:btm@loftninjas.org](mailto:btm@loftninjas.org)]  
> Sent: Donnerstag, 31. März 2011 15:30  
> To: [chef@lists.opscode.com](mailto:chef@lists.opscode.com)  
> Cc: WEINHAPL Andreas  
> Subject: Re: [chef] CHEF-Client installation
> 
> On Thu, Mar 31, 2011 at 5:59 AM, WEINHAPL Andreas  
> [andreas.weinhapl@thalesgroup.com](mailto:andreas.weinhapl@thalesgroup.com) wrote:
> 
> > I just want to install chef-client on a Debian server. In the normal way  
> > this is no prob. First put the sources in the source-list and add the gpg  
> > key. After that install it with "apt-get install chef-client"
> 
> What version of debian?
> 
> Bryan

---

<div class="post-metadata">

**Author:** ![Kimball\_Johnson](https://avatars.discourse-cdn.com/v4/letter/k/41988e/32.png) [@Kimball\_Johnson](https://discourse.chef.io/u/Kimball_Johnson)\
**Post date:** [March 31, 2011, 3:15pm UTC](https://discourse.chef.io/t/chef-client-installation/1761/6 "2011-03-31T15:15:42Z")

</div>

Is this not the same problem as I described in CHEF-2110 on jira? If  
not i'm sorry - it looks like it to me.

On 31 March 2011 16:13, WEINHAPL Andreas  
[andreas.weinhapl@thalesgroup.com](mailto:andreas.weinhapl@thalesgroup.com) wrote:

> Really? I can't find it ☹
> 
> -----Original Message-----  
> From: Kimball Johnson [[mailto:kimball@bowerham.net](mailto:kimball@bowerham.net)]  
> Sent: Donnerstag, 31. März 2011 16:28  
> To: [chef@lists.opscode.com](mailto:chef@lists.opscode.com)  
> Cc: WEINHAPL Andreas; Bryan McLellan  
> Subject: Re: [chef] RE: CHEF-Client installation
> 
> There is already a ticket for this CHEF-2110
> 
> On 31 March 2011 14:32, WEINHAPL Andreas  
> [andreas.weinhapl@thalesgroup.com](mailto:andreas.weinhapl@thalesgroup.com) wrote:
> 
> > HI:
> > 
> > Uname - a  
> > Linux server31 2.6.26-2-amd64 #1 SMP Tue Jan 25 05:59:43 UTC 2011 x86\_64 GNU/Linux
> > 
> > Debian\_version: 5.0.8
> > 
> > Regards
> > 
> > -----Original Message-----  
> > From: Bryan McLellan [[mailto:btm@loftninjas.org](mailto:btm@loftninjas.org)]  
> > Sent: Donnerstag, 31. März 2011 15:30  
> > To: [chef@lists.opscode.com](mailto:chef@lists.opscode.com)  
> > Cc: WEINHAPL Andreas  
> > Subject: Re: [chef] CHEF-Client installation
> > 
> > On Thu, Mar 31, 2011 at 5:59 AM, WEINHAPL Andreas  
> > [andreas.weinhapl@thalesgroup.com](mailto:andreas.weinhapl@thalesgroup.com) wrote:
> > 
> > > I just want to install chef-client on a Debian server. In the normal way  
> > > this is no prob. First put the sources in the source-list and add the gpg  
> > > key. After that install it with "apt-get install chef-client"
> > 
> > What version of debian?
> > 
> > Bryan

---

<div class="post-metadata">

**Author:** ![WEINHAPL\_Andreas](https://avatars.discourse-cdn.com/v4/letter/w/8baadc/32.png) [@WEINHAPL\_Andreas](https://discourse.chef.io/u/WEINHAPL_Andreas)\
**Post date:** [March 31, 2011, 3:17pm UTC](https://discourse.chef.io/t/chef-client-installation/1761/7 "2011-03-31T15:17:44Z")

</div>

I just don't know because I can't find the discussion ☹ May you help me a little bit?!

-----Original Message-----  
From: Kimball Johnson [[mailto:kimball@bowerham.net](mailto:kimball@bowerham.net)]  
Sent: Donnerstag, 31. März 2011 17:16  
To: WEINHAPL Andreas  
Cc: [chef@lists.opscode.com](mailto:chef@lists.opscode.com); Bryan McLellan  
Subject: Re: [chef] RE: CHEF-Client installation

Is this not the same problem as I described in CHEF-2110 on jira? If  
not i'm sorry - it looks like it to me.

On 31 March 2011 16:13, WEINHAPL Andreas  
[andreas.weinhapl@thalesgroup.com](mailto:andreas.weinhapl@thalesgroup.com) wrote:

> Really? I can't find it ☹
> 
> -----Original Message-----  
> From: Kimball Johnson [[mailto:kimball@bowerham.net](mailto:kimball@bowerham.net)]  
> Sent: Donnerstag, 31. März 2011 16:28  
> To: [chef@lists.opscode.com](mailto:chef@lists.opscode.com)  
> Cc: WEINHAPL Andreas; Bryan McLellan  
> Subject: Re: [chef] RE: CHEF-Client installation
> 
> There is already a ticket for this CHEF-2110
> 
> On 31 March 2011 14:32, WEINHAPL Andreas  
> [andreas.weinhapl@thalesgroup.com](mailto:andreas.weinhapl@thalesgroup.com) wrote:
> 
> > HI:
> > 
> > Uname - a  
> > Linux server31 2.6.26-2-amd64 #1 SMP Tue Jan 25 05:59:43 UTC 2011 x86\_64 GNU/Linux
> > 
> > Debian\_version: 5.0.8
> > 
> > Regards
> > 
> > -----Original Message-----  
> > From: Bryan McLellan [[mailto:btm@loftninjas.org](mailto:btm@loftninjas.org)]  
> > Sent: Donnerstag, 31. März 2011 15:30  
> > To: [chef@lists.opscode.com](mailto:chef@lists.opscode.com)  
> > Cc: WEINHAPL Andreas  
> > Subject: Re: [chef] CHEF-Client installation
> > 
> > On Thu, Mar 31, 2011 at 5:59 AM, WEINHAPL Andreas  
> > [andreas.weinhapl@thalesgroup.com](mailto:andreas.weinhapl@thalesgroup.com) wrote:
> > 
> > > I just want to install chef-client on a Debian server. In the normal way  
> > > this is no prob. First put the sources in the source-list and add the gpg  
> > > key. After that install it with "apt-get install chef-client"
> > 
> > What version of debian?
> > 
> > Bryan

---

<div class="post-metadata">

**Author:** ![Kimball\_Johnson](https://avatars.discourse-cdn.com/v4/letter/k/41988e/32.png) [@Kimball\_Johnson](https://discourse.chef.io/u/Kimball_Johnson)\
**Post date:** [March 31, 2011, 3:18pm UTC](https://discourse.chef.io/t/chef-client-installation/1761/8 "2011-03-31T15:18:38Z")

</div>

[http://tickets.opscode.com/browse/CHEF-2110](http://tickets.opscode.com/browse/CHEF-2110)

On 31 March 2011 16:17, WEINHAPL Andreas  
[andreas.weinhapl@thalesgroup.com](mailto:andreas.weinhapl@thalesgroup.com) wrote:

> I just don't know because I can't find the discussion ☹ May you help me a little bit?!
> 
> -----Original Message-----  
> From: Kimball Johnson [[mailto:kimball@bowerham.net](mailto:kimball@bowerham.net)]  
> Sent: Donnerstag, 31. März 2011 17:16  
> To: WEINHAPL Andreas  
> Cc: [chef@lists.opscode.com](mailto:chef@lists.opscode.com); Bryan McLellan  
> Subject: Re: [chef] RE: CHEF-Client installation
> 
> Is this not the same problem as I described in CHEF-2110 on jira? If  
> not i'm sorry - it looks like it to me.
> 
> On 31 March 2011 16:13, WEINHAPL Andreas  
> [andreas.weinhapl@thalesgroup.com](mailto:andreas.weinhapl@thalesgroup.com) wrote:
> 
> > Really? I can't find it ☹
> > 
> > -----Original Message-----  
> > From: Kimball Johnson [[mailto:kimball@bowerham.net](mailto:kimball@bowerham.net)]  
> > Sent: Donnerstag, 31. März 2011 16:28  
> > To: [chef@lists.opscode.com](mailto:chef@lists.opscode.com)  
> > Cc: WEINHAPL Andreas; Bryan McLellan  
> > Subject: Re: [chef] RE: CHEF-Client installation
> > 
> > There is already a ticket for this CHEF-2110
> > 
> > On 31 March 2011 14:32, WEINHAPL Andreas  
> > [andreas.weinhapl@thalesgroup.com](mailto:andreas.weinhapl@thalesgroup.com) wrote:
> > 
> > > HI:
> > > 
> > > Uname - a  
> > > Linux server31 2.6.26-2-amd64 #1 SMP Tue Jan 25 05:59:43 UTC 2011 x86\_64 GNU/Linux
> > > 
> > > Debian\_version: 5.0.8
> > > 
> > > Regards
> > > 
> > > -----Original Message-----  
> > > From: Bryan McLellan [[mailto:btm@loftninjas.org](mailto:btm@loftninjas.org)]  
> > > Sent: Donnerstag, 31. März 2011 15:30  
> > > To: [chef@lists.opscode.com](mailto:chef@lists.opscode.com)  
> > > Cc: WEINHAPL Andreas  
> > > Subject: Re: [chef] CHEF-Client installation
> > > 
> > > On Thu, Mar 31, 2011 at 5:59 AM, WEINHAPL Andreas  
> > > [andreas.weinhapl@thalesgroup.com](mailto:andreas.weinhapl@thalesgroup.com) wrote:
> > > 
> > > > I just want to install chef-client on a Debian server. In the normal way  
> > > > this is no prob. First put the sources in the source-list and add the gpg  
> > > > key. After that install it with "apt-get install chef-client"
> > > 
> > > What version of debian?
> > > 
> > > Bryan

---

<div class="post-metadata">

**Author:** ![WEINHAPL\_Andreas](https://avatars.discourse-cdn.com/v4/letter/w/8baadc/32.png) [@WEINHAPL\_Andreas](https://discourse.chef.io/u/WEINHAPL_Andreas)\
**Post date:** [March 31, 2011, 3:36pm UTC](https://discourse.chef.io/t/chef-client-installation/1761/9 "2011-03-31T15:36:24Z")

</div>

Mhm that seems to be a other problem which look like mine. The weird thing is that I'm able to install chef if the sever doesn't work with puppet before. So I think "puppet" will write something to a file which will be checked by apt-get.

I made a test and I can reproduce it with no problems, just set up a debian server (debian-507-amd64-netinst.iso)  
\* Install chef (apt-get install chef) -\> TO be sure that it will work  
\* Uninstall it with (apt-get --purge remove chef)  
\* Autoremove all automatic installed packages "apt-get --purge autoremove"  
\* Install "puppet" -\> apt-get install puppet  
\* Remove puppet after installed -\> apt-get --purge remove puppet  
\* apt-get --purge autoremove  
\* clean up everything -\> apt-get clean  
\* and install chef again -\> apt-get install chef

The result is that you will run into dependency errors:  
\* Depends: libjson-ruby1.8 (\>= 1.4.6) but it is not going to be installed  
\* Depends: ohai (\>= 0.5.8) but it is not going to be installed  
\* Depends: libchef-ruby1.8 (= 0.9.14+dfsg-1) but it is not going to be installed

I found out that the dependencies are stored at /var/lib/apt/lists/ ftp.at.debian.org\_debian\_dists\_lenny\_main\_binary-i386\_Packages

But I don't think that it will be good to edit this file 🙂

Regards

-----Original Message-----  
From: Kimball Johnson [[mailto:kimball@bowerham.net](mailto:kimball@bowerham.net)]  
Sent: Donnerstag, 31. März 2011 17:19  
To: WEINHAPL Andreas  
Cc: [chef@lists.opscode.com](mailto:chef@lists.opscode.com); Bryan McLellan  
Subject: Re: [chef] RE: CHEF-Client installation

[http://tickets.opscode.com/browse/CHEF-2110](http://tickets.opscode.com/browse/CHEF-2110)

On 31 March 2011 16:17, WEINHAPL Andreas  
[andreas.weinhapl@thalesgroup.com](mailto:andreas.weinhapl@thalesgroup.com) wrote:

> I just don't know because I can't find the discussion ☹ May you help me a little bit?!
> 
> -----Original Message-----  
> From: Kimball Johnson [[mailto:kimball@bowerham.net](mailto:kimball@bowerham.net)]  
> Sent: Donnerstag, 31. März 2011 17:16  
> To: WEINHAPL Andreas  
> Cc: [chef@lists.opscode.com](mailto:chef@lists.opscode.com); Bryan McLellan  
> Subject: Re: [chef] RE: CHEF-Client installation
> 
> Is this not the same problem as I described in CHEF-2110 on jira? If  
> not i'm sorry - it looks like it to me.
> 
> On 31 March 2011 16:13, WEINHAPL Andreas  
> [andreas.weinhapl@thalesgroup.com](mailto:andreas.weinhapl@thalesgroup.com) wrote:
> 
> > Really? I can't find it ☹
> > 
> > -----Original Message-----  
> > From: Kimball Johnson [[mailto:kimball@bowerham.net](mailto:kimball@bowerham.net)]  
> > Sent: Donnerstag, 31. März 2011 16:28  
> > To: [chef@lists.opscode.com](mailto:chef@lists.opscode.com)  
> > Cc: WEINHAPL Andreas; Bryan McLellan  
> > Subject: Re: [chef] RE: CHEF-Client installation
> > 
> > There is already a ticket for this CHEF-2110
> > 
> > On 31 March 2011 14:32, WEINHAPL Andreas  
> > [andreas.weinhapl@thalesgroup.com](mailto:andreas.weinhapl@thalesgroup.com) wrote:
> > 
> > > HI:
> > > 
> > > Uname - a  
> > > Linux server31 2.6.26-2-amd64 #1 SMP Tue Jan 25 05:59:43 UTC 2011 x86\_64 GNU/Linux
> > > 
> > > Debian\_version: 5.0.8
> > > 
> > > Regards
> > > 
> > > -----Original Message-----  
> > > From: Bryan McLellan [[mailto:btm@loftninjas.org](mailto:btm@loftninjas.org)]  
> > > Sent: Donnerstag, 31. März 2011 15:30  
> > > To: [chef@lists.opscode.com](mailto:chef@lists.opscode.com)  
> > > Cc: WEINHAPL Andreas  
> > > Subject: Re: [chef] CHEF-Client installation
> > > 
> > > On Thu, Mar 31, 2011 at 5:59 AM, WEINHAPL Andreas  
> > > [andreas.weinhapl@thalesgroup.com](mailto:andreas.weinhapl@thalesgroup.com) wrote:
> > > 
> > > > I just want to install chef-client on a Debian server. In the normal way  
> > > > this is no prob. First put the sources in the source-list and add the gpg  
> > > > key. After that install it with "apt-get install chef-client"
> > > 
> > > What version of debian?
> > > 
> > > Bryan

---

<div class="post-metadata">

**Author:** ![Kimball\_Johnson](https://avatars.discourse-cdn.com/v4/letter/k/41988e/32.png) [@Kimball\_Johnson](https://discourse.chef.io/u/Kimball_Johnson)\
**Post date:** [March 31, 2011, 3:44pm UTC](https://discourse.chef.io/t/chef-client-installation/1761/10 "2011-03-31T15:44:57Z")

</div>

That is strange as I couldn't install chef on a freshly installed  
lenny at all without creating a backport of libjson-ruby1.8, whihc is  
the dependency error you see in the final stage.

You are right, you should not change the dependencies file, it  
wouldn't help anyway, each package holds it's own dependencies, the  
file is to help apt resolve them automatically

On 31 March 2011 16:36, WEINHAPL Andreas  
[andreas.weinhapl@thalesgroup.com](mailto:andreas.weinhapl@thalesgroup.com) wrote:

> Mhm that seems to be a other problem which look like mine. The weird thing is that I'm able to install chef if the sever doesn't work with puppet before. So I think "puppet" will write something to a file which will be checked by apt-get.
> 
> I made a test and I can reproduce it with no problems, just set up a debian server (debian-507-amd64-netinst.iso)  
> \* Install chef (apt-get install chef) -\> TO be sure that it will work  
> \* Uninstall it with (apt-get --purge remove chef)  
> \* Autoremove all automatic installed packages "apt-get --purge autoremove"  
> \* Install "puppet" -\> apt-get install puppet  
> \* Remove puppet after installed -\> apt-get --purge remove puppet  
> \* apt-get --purge autoremove  
> \* clean up everything -\> apt-get clean  
> \* and install chef again -\> apt-get install chef
> 
> The result is that you will run into dependency errors:  
> \* Depends: libjson-ruby1.8 (\>= 1.4.6) but it is not going to be installed  
> \* Depends: ohai (\>= 0.5.8) but it is not going to be installed  
> \* Depends: libchef-ruby1.8 (= 0.9.14+dfsg-1) but it is not going to be installed
> 
> I found out that the dependencies are stored at /var/lib/apt/lists/ ftp.at.debian.org\_debian\_dists\_lenny\_main\_binary-i386\_Packages
> 
> But I don't think that it will be good to edit this file 🙂

---

<div class="post-metadata">

**Author:** ![WEINHAPL\_Andreas](https://avatars.discourse-cdn.com/v4/letter/w/8baadc/32.png) [@WEINHAPL\_Andreas](https://discourse.chef.io/u/WEINHAPL_Andreas)\
**Post date:** [March 31, 2011, 3:47pm UTC](https://discourse.chef.io/t/chef-client-installation/1761/11 "2011-03-31T15:47:42Z")

</div>

Mhm, youre right with the dependencies 🙂 I tested it in the meantime (last hope aso .. you know )

The problem is that we need to install chef on the server where puppet was running before, because this are our production servers and can't be install from the scratch ☹

So do you know a workaround or could you reproduce it?!

-----Original Message-----  
From: Kimball Johnson [[mailto:kimball@bowerham.net](mailto:kimball@bowerham.net)]  
Sent: Donnerstag, 31. März 2011 17:45  
To: WEINHAPL Andreas  
Cc: [chef@lists.opscode.com](mailto:chef@lists.opscode.com); Bryan McLellan  
Subject: Re: [chef] RE: CHEF-Client installation

That is strange as I couldn't install chef on a freshly installed  
lenny at all without creating a backport of libjson-ruby1.8, whihc is  
the dependency error you see in the final stage.

You are right, you should not change the dependencies file, it  
wouldn't help anyway, each package holds it's own dependencies, the  
file is to help apt resolve them automatically

On 31 March 2011 16:36, WEINHAPL Andreas  
[andreas.weinhapl@thalesgroup.com](mailto:andreas.weinhapl@thalesgroup.com) wrote:

> Mhm that seems to be a other problem which look like mine. The weird thing is that I'm able to install chef if the sever doesn't work with puppet before. So I think "puppet" will write something to a file which will be checked by apt-get.
> 
> I made a test and I can reproduce it with no problems, just set up a debian server (debian-507-amd64-netinst.iso)  
> \* Install chef (apt-get install chef) -\> TO be sure that it will work  
> \* Uninstall it with (apt-get --purge remove chef)  
> \* Autoremove all automatic installed packages "apt-get --purge autoremove"  
> \* Install "puppet" -\> apt-get install puppet  
> \* Remove puppet after installed -\> apt-get --purge remove puppet  
> \* apt-get --purge autoremove  
> \* clean up everything -\> apt-get clean  
> \* and install chef again -\> apt-get install chef
> 
> The result is that you will run into dependency errors:  
> \* Depends: libjson-ruby1.8 (\>= 1.4.6) but it is not going to be installed  
> \* Depends: ohai (\>= 0.5.8) but it is not going to be installed  
> \* Depends: libchef-ruby1.8 (= 0.9.14+dfsg-1) but it is not going to be installed
> 
> I found out that the dependencies are stored at /var/lib/apt/lists/ ftp.at.debian.org\_debian\_dists\_lenny\_main\_binary-i386\_Packages
> 
> But I don't think that it will be good to edit this file 🙂

---

<div class="post-metadata">

**Author:** ![Kimball\_Johnson](https://avatars.discourse-cdn.com/v4/letter/k/41988e/32.png) [@Kimball\_Johnson](https://discourse.chef.io/u/Kimball_Johnson)\
**Post date:** [March 31, 2011, 3:50pm UTC](https://discourse.chef.io/t/chef-client-installation/1761/12 "2011-03-31T15:50:34Z")

</div>

I think you need to wait for opscode to fix the bug, or backport  
libjson from their source repository and that will solve your issues.

I'm sure it's the same issue, I just don't get the strangeness with  
puppet first.

It will work with a backported libjson, as I have lenny servers with  
puppet and chef installed having created the backport.

On 31 March 2011 16:47, WEINHAPL Andreas  
[andreas.weinhapl@thalesgroup.com](mailto:andreas.weinhapl@thalesgroup.com) wrote:

> Mhm, youre right with the dependencies 🙂 I tested it in the meantime (last hope aso .. you know )
> 
> The problem is that we need to install chef on the server where puppet was running before, because this are our production servers and can't be install from the scratch ☹
> 
> So do you know a workaround or could you reproduce it?!
> 
> -----Original Message-----  
> From: Kimball Johnson [[mailto:kimball@bowerham.net](mailto:kimball@bowerham.net)]  
> Sent: Donnerstag, 31. März 2011 17:45  
> To: WEINHAPL Andreas  
> Cc: [chef@lists.opscode.com](mailto:chef@lists.opscode.com); Bryan McLellan  
> Subject: Re: [chef] RE: CHEF-Client installation
> 
> That is strange as I couldn't install chef on a freshly installed  
> lenny at all without creating a backport of libjson-ruby1.8, whihc is  
> the dependency error you see in the final stage.
> 
> You are right, you should not change the dependencies file, it  
> wouldn't help anyway, each package holds it's own dependencies, the  
> file is to help apt resolve them automatically
> 
> On 31 March 2011 16:36, WEINHAPL Andreas  
> [andreas.weinhapl@thalesgroup.com](mailto:andreas.weinhapl@thalesgroup.com) wrote:
> 
> > Mhm that seems to be a other problem which look like mine. The weird thing is that I'm able to install chef if the sever doesn't work with puppet before. So I think "puppet" will write something to a file which will be checked by apt-get.
> > 
> > I made a test and I can reproduce it with no problems, just set up a debian server (debian-507-amd64-netinst.iso)  
> > \* Install chef (apt-get install chef) -\> TO be sure that it will work  
> > \* Uninstall it with (apt-get --purge remove chef)  
> > \* Autoremove all automatic installed packages "apt-get --purge autoremove"  
> > \* Install "puppet" -\> apt-get install puppet  
> > \* Remove puppet after installed -\> apt-get --purge remove puppet  
> > \* apt-get --purge autoremove  
> > \* clean up everything -\> apt-get clean  
> > \* and install chef again -\> apt-get install chef
> > 
> > The result is that you will run into dependency errors:  
> > \* Depends: libjson-ruby1.8 (\>= 1.4.6) but it is not going to be installed  
> > \* Depends: ohai (\>= 0.5.8) but it is not going to be installed  
> > \* Depends: libchef-ruby1.8 (= 0.9.14+dfsg-1) but it is not going to be installed
> > 
> > I found out that the dependencies are stored at /var/lib/apt/lists/ ftp.at.debian.org\_debian\_dists\_lenny\_main\_binary-i386\_Packages
> > 
> > But I don't think that it will be good to edit this file 🙂

---

<div class="post-metadata">

**Author:** ![WEINHAPL\_Andreas](https://avatars.discourse-cdn.com/v4/letter/w/8baadc/32.png) [@WEINHAPL\_Andreas](https://discourse.chef.io/u/WEINHAPL_Andreas)\
**Post date:** [March 31, 2011, 4:07pm UTC](https://discourse.chef.io/t/chef-client-installation/1761/13 "2011-03-31T16:07:15Z")

</div>

So I created a fresh install of debian and yeah you're right.... it won't work .. ☹ So I have to do it with a backported libjson ☹

But kindly regards for your help

Regards

-----Original Message-----  
From: Kimball Johnson [[mailto:kimball@bowerham.net](mailto:kimball@bowerham.net)]  
Sent: Donnerstag, 31. März 2011 17:51  
To: WEINHAPL Andreas  
Cc: [chef@lists.opscode.com](mailto:chef@lists.opscode.com); Bryan McLellan  
Subject: Re: [chef] RE: CHEF-Client installation

I think you need to wait for opscode to fix the bug, or backport  
libjson from their source repository and that will solve your issues.

I'm sure it's the same issue, I just don't get the strangeness with  
puppet first.

It will work with a backported libjson, as I have lenny servers with  
puppet and chef installed having created the backport.

On 31 March 2011 16:47, WEINHAPL Andreas  
[andreas.weinhapl@thalesgroup.com](mailto:andreas.weinhapl@thalesgroup.com) wrote:

> Mhm, youre right with the dependencies 🙂 I tested it in the meantime (last hope aso .. you know )
> 
> The problem is that we need to install chef on the server where puppet was running before, because this are our production servers and can't be install from the scratch ☹
> 
> So do you know a workaround or could you reproduce it?!
> 
> -----Original Message-----  
> From: Kimball Johnson [[mailto:kimball@bowerham.net](mailto:kimball@bowerham.net)]  
> Sent: Donnerstag, 31. März 2011 17:45  
> To: WEINHAPL Andreas  
> Cc: [chef@lists.opscode.com](mailto:chef@lists.opscode.com); Bryan McLellan  
> Subject: Re: [chef] RE: CHEF-Client installation
> 
> That is strange as I couldn't install chef on a freshly installed  
> lenny at all without creating a backport of libjson-ruby1.8, whihc is  
> the dependency error you see in the final stage.
> 
> You are right, you should not change the dependencies file, it  
> wouldn't help anyway, each package holds it's own dependencies, the  
> file is to help apt resolve them automatically
> 
> On 31 March 2011 16:36, WEINHAPL Andreas  
> [andreas.weinhapl@thalesgroup.com](mailto:andreas.weinhapl@thalesgroup.com) wrote:
> 
> > Mhm that seems to be a other problem which look like mine. The weird thing is that I'm able to install chef if the sever doesn't work with puppet before. So I think "puppet" will write something to a file which will be checked by apt-get.
> > 
> > I made a test and I can reproduce it with no problems, just set up a debian server (debian-507-amd64-netinst.iso)  
> > \* Install chef (apt-get install chef) -\> TO be sure that it will work  
> > \* Uninstall it with (apt-get --purge remove chef)  
> > \* Autoremove all automatic installed packages "apt-get --purge autoremove"  
> > \* Install "puppet" -\> apt-get install puppet  
> > \* Remove puppet after installed -\> apt-get --purge remove puppet  
> > \* apt-get --purge autoremove  
> > \* clean up everything -\> apt-get clean  
> > \* and install chef again -\> apt-get install chef
> > 
> > The result is that you will run into dependency errors:  
> > \* Depends: libjson-ruby1.8 (\>= 1.4.6) but it is not going to be installed  
> > \* Depends: ohai (\>= 0.5.8) but it is not going to be installed  
> > \* Depends: libchef-ruby1.8 (= 0.9.14+dfsg-1) but it is not going to be installed
> > 
> > I found out that the dependencies are stored at /var/lib/apt/lists/ ftp.at.debian.org\_debian\_dists\_lenny\_main\_binary-i386\_Packages
> > 
> > But I don't think that it will be good to edit this file 🙂

---

<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:** [March 31, 2011, 4:38pm UTC](https://discourse.chef.io/t/chef-client-installation/1761/14 "2011-03-31T16:38:54Z")

</div>

On Thu, Mar 31, 2011 at 8:50 AM, Kimball Johnson [kimball@bowerham.net](mailto:kimball@bowerham.net) wrote:

> I think you need to wait for opscode to fix the bug, or backport  
> libjson from their source repository and that will solve your issues.

I'll look into fixing it this morning.

Bryan

---

<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:** [March 31, 2011, 7:45pm UTC](https://discourse.chef.io/t/chef-client-installation/1761/15 "2011-03-31T19:45:57Z")

</div>

On Thu, Mar 31, 2011 at 6:32 AM, WEINHAPL Andreas  
[andreas.weinhapl@thalesgroup.com](mailto:andreas.weinhapl@thalesgroup.com) wrote:

> Debian\_version: 5.0.8

I had copied the backport of libjson-ruby1.8=1.4.6-1 I made for a  
recent version of ubuntu to a number of ubuntu and debian releases to  
save some time. I've uploaded libjson-ruby1.8 compiled for amd64 +  
i386 on lenny (oldstable) to [apt.opscode.com](http://apt.opscode.com) [1]. "apt-get install  
chef" per the wiki [2] now works for me.

Bryan

[1]  
ip-10-204-170-216:~# apt-cache madison libjson-ruby1.8  
libjson-ruby1.8 | 1.4.6-1lenny1 | [http://apt.opscode.com](http://apt.opscode.com) lenny/main Packages  
libjson-ruby1.8 | 1.1.2-1+lenny1 | [http://http.us.debian.org](http://http.us.debian.org) lenny/main Packages

[2] [http://wiki.opscode.com/display/chef/Package+Installation+on+Debian+and+Ubuntu](http://wiki.opscode.com/display/chef/Package+Installation+on+Debian+and+Ubuntu)

---

<div class="post-metadata">

**Author:** ![WEINHAPL\_Andreas](https://avatars.discourse-cdn.com/v4/letter/w/8baadc/32.png) [@WEINHAPL\_Andreas](https://discourse.chef.io/u/WEINHAPL_Andreas)\
**Post date:** [April 1, 2011, 6:39am UTC](https://discourse.chef.io/t/chef-client-installation/1761/16 "2011-04-01T06:39:25Z")

</div>

Hi Bryan,

Thanks for doing this but in my case it won't work with the normal installation ☹

dbdump:~# apt-cache madison libjson-ruby1.8  
libjson-ruby1.8 | 1.4.6-1opscode1 | [http://apt.opscode.com](http://apt.opscode.com) lenny/main Packages  
libjson-ruby1.8 | 1.1.2-1+lenny1 | [http://debian.inode.at](http://debian.inode.at) lenny/main Packages  
libjson-ruby | 1.1.2-1+lenny1 | [http://debian.inode.at](http://debian.inode.at) lenny/main Sources

dbdump:~# apt-get install chef  
Reading package lists... Done  
Building dependency tree  
Reading state information... Done  
Some packages could not be installed. This may mean that you have  
requested an impossible situation or if you are using the unstable  
distribution that some required packages have not yet been created  
or been moved out of Incoming.  
The following information may help to resolve the situation:

The following packages have unmet dependencies:  
chef: Depends: libjson-ruby1.8 (\>= 1.4.6) but it is not going to be installed  
Depends: ohai (\>= 0.5.8) but it is not going to be installed  
Depends: libchef-ruby1.8 (= 0.9.14+dfsg-1) but it is not going to be installed  
E: Broken packages

So do you know when this problem will be resolved. We can't use backports for our environment, because if you are using this it will be the same to sell an old cake as a new one. It doesn't fell right for me.  
Regards

-----Original Message-----  
From: Bryan McLellan [[mailto:btm@loftninjas.org](mailto:btm@loftninjas.org)]  
Sent: Donnerstag, 31. März 2011 21:46  
To: WEINHAPL Andreas  
Cc: [chef@lists.opscode.com](mailto:chef@lists.opscode.com)  
Subject: Re: [chef] CHEF-Client installation

On Thu, Mar 31, 2011 at 6:32 AM, WEINHAPL Andreas  
[andreas.weinhapl@thalesgroup.com](mailto:andreas.weinhapl@thalesgroup.com) wrote:

> Debian\_version: 5.0.8

I had copied the backport of libjson-ruby1.8=1.4.6-1 I made for a  
recent version of ubuntu to a number of ubuntu and debian releases to  
save some time. I've uploaded libjson-ruby1.8 compiled for amd64 +  
i386 on lenny (oldstable) to [apt.opscode.com](http://apt.opscode.com) [1]. "apt-get install  
chef" per the wiki [2] now works for me.

Bryan

[1]  
ip-10-204-170-216:~# apt-cache madison libjson-ruby1.8  
libjson-ruby1.8 | 1.4.6-1lenny1 | [http://apt.opscode.com](http://apt.opscode.com) lenny/main Packages  
libjson-ruby1.8 | 1.1.2-1+lenny1 | [http://http.us.debian.org](http://http.us.debian.org) lenny/main Packages

[2] [http://wiki.opscode.com/display/chef/Package+Installation+on+Debian+and+Ubuntu](http://wiki.opscode.com/display/chef/Package+Installation+on+Debian+and+Ubuntu)

---

<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:** [April 1, 2011, 3:40pm UTC](https://discourse.chef.io/t/chef-client-installation/1761/17 "2011-04-01T15:40:56Z")

</div>

Are you sure you ran 'apt-get update' before that 'apt-cache madison'?

On Mar 31, 2011 11:39 PM, "WEINHAPL Andreas" \<  
[andreas.weinhapl@thalesgroup.com](mailto:andreas.weinhapl@thalesgroup.com)\> wrote:

Hi Bryan,

Thanks for doing this but in my case it won't work with the normal  
installation ☹

dbdump:~# apt-cache madison libjson-ruby1.8  
libjson-ruby1.8 | 1.4.6-1opscode1 | [http://apt.opscode.com](http://apt.opscode.com) lenny/main  
Packages  
libjson-ruby1.8 | 1.1.2-1+lenny1 | [http://debian.inode.at](http://debian.inode.at) lenny/main  
Packages  
libjson-ruby | 1.1.2-1+lenny1 | [http://debian.inode.at](http://debian.inode.at) lenny/main Sources

dbdump:~# apt-get install chef

Reading package lists... Done  
Building dependency tree  
Reading state information... Done  
Some...  
So do you know when this problem will be resolved. We can't use backports  
for our environment, because if you are using this it will be the same to  
sell an old cake as a new one. It doesn't fell right for me.

Regards

-----Original Message-----  
From: Bryan McLellan [[mailto:btm@loftninjas.org](mailto:btm@loftninjas.org)]

Sent: Donnerstag, 31. März 2011 21:46  
To: WEINHAPL Andreas  
Cc: [chef@lists.opscode.com](mailto:chef@lists.opscode.com)

Subject: Re: [chef] CHEF-Client installation

On Thu, Mar 31, 2011 at 6:32 AM, WEINHAPL Andreas  
[andreas.weinhapl@thalesgroup.com](mailto:andreas.weinhapl@thalesgroup.com) wrote:

> Debian...

---

<div class="post-metadata">

**Author:** ![WEINHAPL\_Andreas](https://avatars.discourse-cdn.com/v4/letter/w/8baadc/32.png) [@WEINHAPL\_Andreas](https://discourse.chef.io/u/WEINHAPL_Andreas)\
**Post date:** [April 4, 2011, 6:19am UTC](https://discourse.chef.io/t/chef-client-installation/1761/18 "2011-04-04T06:19:49Z")

</div>

HI,  
Yes I did! I cleaned the cache before I made an apt-get update 🙂 So I don't know. But that's no problem because we're thinking about using Ubuntu as the main OS. The other question I would like to ask you is, do you think that the next generations of Debian would also be able to work as a chef-server?! Or is the squeeze edition of Ubuntu only a test?!

Regards

From: Bryan McLellan [[mailto:btm@loftninjas.org](mailto:btm@loftninjas.org)]  
Sent: Freitag, 01. April 2011 17:41  
To: WEINHAPL Andreas  
Cc: [chef@lists.opscode.com](mailto:chef@lists.opscode.com)  
Subject: Re: RE: [chef] CHEF-Client installation

Are you sure you ran 'apt-get update' before that 'apt-cache madison'?  
On Mar 31, 2011 11:39 PM, "WEINHAPL Andreas" \<[andreas.weinhapl@thalesgroup.com](mailto:andreas.weinhapl@thalesgroup.com)[mailto:andreas.weinhapl@thalesgroup.com](mailto:andreas.weinhapl@thalesgroup.com)\> wrote:

Hi Bryan,

Thanks for doing this but in my case it won't work with the normal installation ☹

dbdump:~# apt-cache madison libjson-ruby1.8  
libjson-ruby1.8 | 1.4.6-1opscode1 | [http://apt.opscode.com](http://apt.opscode.com) lenny/main Packages  
libjson-ruby1.8 | 1.1.2-1+lenny1 | [http://debian.inode.at](http://debian.inode.at) lenny/main Packages  
libjson-ruby | 1.1.2-1+lenny1 | [http://debian.inode.at](http://debian.inode.at) lenny/main Sources

dbdump:~# apt-get install chef

Reading package lists... Done  
Building dependency tree  
Reading state information... Done  
Some...  
So do you know when this problem will be resolved. We can't use backports for our environment, because if you are using this it will be the same to sell an old cake as a new one. It doesn't fell right for me.

Regards

-----Original Message-----  
From: Bryan McLellan [[mailto:btm@loftninjas.org](mailto:btm@loftninjas.org)[mailto:btm@loftninjas.org](mailto:btm@loftninjas.org)]

Sent: Donnerstag, 31. März 2011 21:46  
To: WEINHAPL Andreas  
Cc: [chef@lists.opscode.com](mailto:chef@lists.opscode.com)[mailto:chef@lists.opscode.com](mailto:chef@lists.opscode.com)

Subject: Re: [chef] CHEF-Client installation

On Thu, Mar 31, 2011 at 6:32 AM, WEINHAPL Andreas  
\<[andreas.weinhapl@thalesgroup.com](mailto:andreas.weinhapl@thalesgroup.com)[mailto:andreas.weinhapl@thalesgroup.com](mailto:andreas.weinhapl@thalesgroup.com)\> wrote:

> Debian...
