- From: Jacobo García <
>
- To:
- Subject: [chef] Problem with apt-cache policy
- Date: Wed, 9 Dec 2009 03:39:48 +0100
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=YwFrNAvFq058KXZr3cgu8lkktAxhkN09ZroOYrluTtlfFwI5BCeEcxsu/wOSq0Nyhu PC2uE3I4+5jLmxBQfBBeNWpK43ricMmaZQTd93Q+POXneCq5H1uz1V39TCkrAP+bQ252 nmcXELiGv5nA7DVB8kntxJqNmuRnL2cOsA7Pk=
Hi,
I'm working on a chef Ruby Enterprise Cookbook that uses Brightbox apt repository in case that the machine that is going to be installed is ubuntu 8.04. The recipe goes like this:
First I add brightbox sources.list file and perform apt-get update
Then I declare the package libruby-1.8 with the following lines:
package "libruby-1.8" do
action :install
action :upgrade
end
But chef is not working as I expected and it stays on not installing ruby.
In the log there's the following information:
[Tue, 08 Dec 2009 21:21:19 -0500] INFO: Ran execute[apt-get update] successfully
[Tue, 08 Dec 2009 21:21:19 -0500] DEBUG: Processing package[libruby-1.8]
[Tue, 08 Dec 2009 21:21:19 -0500] DEBUG: package[libruby-1.8] using Chef::Provider::Package::Apt
[Tue, 08 Dec 2009 21:21:19 -0500] DEBUG: Checking apt-cache policy for libruby-1.8
[Tue, 08 Dec 2009 21:21:19 -0500] DEBUG: Saving the current state of node ubuntu_localdomain
[Tue, 08 Dec 2009 21:21:19 -0500] DEBUG: Sending HTTP Request via PUT to /nodes/ubuntu_localdomain
Also apt-cache policy libruby1.8 shows:
libruby1.8:
Installed: 1.8.6.111-2ubuntu1.3
Candidate: 1.8.6.20090610-0bbox1
Version table:
1.8.6.20090610-0bbox1 0
*** 1.8.6.111-2ubuntu1.3 0
100 /var/lib/dpkg/status
1.8.6.111-2ubuntu1 0
What am I missing?
Thanks.
- [chef] Problem with apt-cache policy, Jacobo García, 12/08/2009
Archive powered by MHonArc 2.6.16.