[chef] Re: Re: How to write the cookbook for third party ubuntu ppa?


Chronological Thread 
  • From: Millisi < >
  • To: " " < >
  • Subject: [chef] Re: Re: How to write the cookbook for third party ubuntu ppa?
  • Date: Wed, 22 Aug 2012 13:50:53 +0545

@kevin, In which user script do i've to put that
apt_upgrade: false attribute? Is it some cookbook or role?

Via Millisami'z iPhone

On Aug 22, 2012, at 3:35 AM, Kevin Nuckolls < "> > wrote:

I've encountered this problem as well and I'm nearly certain that a background process is running apt-get update by default when you start up the Ubuntu image. My solution was to tell cloud-init not to run apt-get update by default. These 100 errors no longer come up.


Set apt_upgrade: false in your user data script.

Hope that helps. 

Bryan I bet that command you asked him to run will run because it's a race condition. By the time you log in to the Ubuntu box and run it, the background cloud-init is done and other systems can run apt just fine.

-Kevin

On Tuesday, August 21, 2012, Bryan McLellan wrote:
On Tue, Aug 21, 2012 at 11:14 AM, Sachin Sagar Rai < > wrote:
> FATAL: Chef::Exceptions::Exec: package[ruby] (base::install_ruby line 22)
> had an error: Chef::Exceptions::Exec: apt-get -q -y install ruby=4.8-0bbox1
> returned 100, expected 0

It looks like apt is failing for some reason.

What happens if you run "apt-get -q -y install ruby=4.8-0bbox1"?

Bryan



Archive powered by MHonArc 2.6.16.

§