Problem following "Chef Fundamentals - Module 3" with vagrant

I have followed the istructions for setting up a Vagrant Lab in “Chef
Fundamentals Webinar - Training Lab Setup” prior doing “Chef Fundamentals
Module 3”.

When I run chef-client to install the “apache” cookbook I get …
Err http://us.archive.ubuntu.com/ubuntu/ precise-updates/main apache2.2-bin
i386 2.2.22-1ubuntu1.3
404 Not Found [IP: 91.189.91.14 80]

It seems to be the image config.vm.box_url = "
https://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04-i386_provisionerless.box"
which is causing the problem

because if I run …
root@robvirsatel-starter:~# apt-get install apache2

I get …
Err http://us.archive.ubuntu.com/ubuntu/ precise-updates/main apache2.2-bin
i386 2.2.22-1ubuntu1.3
404 Not Found [IP: 91.189.91.15 80]
Err http://security.ubuntu.com/ubuntu/ precise-security/main apache2.2-bin
i386 2.2.22-1ubuntu1.3
404 Not Found [IP: 91.189.92.200 80]

I have looked at http://us.archive.ubuntu.com/ubuntu/ and it seems it
should be going to http://us.archive.ubuntu.com/ubuntu/dists.

Any ideas on how I can go about fixing this so I can get on with the
training webinar.

Thanks
Rob

Doh! :slight_smile:

I have fixed this by running

root@robvirsatel-starter:~# apt-get update

Now I just need to figure out how to put this into Vagrant :slight_smile:

Thanks
Rob

On 20 November 2013 08:44, Rob Watkin robwatkin@gmail.com wrote:

I have followed the istructions for setting up a Vagrant Lab in "Chef
Fundamentals Webinar - Training Lab Setup" prior doing "Chef Fundamentals
Module 3".

When I run chef-client to install the "apache" cookbook I get ...
Err Index of /ubuntu precise-updates/main
apache2.2-bin i386 2.2.22-1ubuntu1.3
404 Not Found [IP: 91.189.91.14 80]

It seems to be the image config.vm.box_url = "
https://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04-i386_provisionerless.box"
which is causing the problem

because if I run ...
root@robvirsatel-starter:~# apt-get install apache2

I get ...
Err Index of /ubuntu precise-updates/main
apache2.2-bin i386 2.2.22-1ubuntu1.3
404 Not Found [IP: 91.189.91.15 80]
Err Index of /ubuntu precise-security/main
apache2.2-bin i386 2.2.22-1ubuntu1.3
404 Not Found [IP: 91.189.92.200 80]

I have looked at Index of /ubuntu and it seems it
should be going to Index of /ubuntu/dists.

Any ideas on how I can go about fixing this so I can get on with the
training webinar.

Thanks
Rob

--
Circular reasoning is legitimate due to circular reasoning being legitimate.

Are you using Berkshelf?

If so, stick this in your Berksfile:

cookbook ‘apt’

Then, add “recipe[apt::default]” to the top of your run_list in the Vagrantfile.

--Cassiano Leal
http://cassianoleal.com
http://twitter.com/cassianoleal

On Wednesday, November 20, 2013 at 07:06, Rob Watkin wrote:

Doh! :slight_smile:

I have fixed this by running

root@robvirsatel-starter:~# apt-get update

Now I just need to figure out how to put this into Vagrant :slight_smile:

Thanks
Rob

On 20 November 2013 08:44, Rob Watkin <robwatkin@gmail.com (mailto:robwatkin@gmail.com)> wrote:

I have followed the istructions for setting up a Vagrant Lab in "Chef Fundamentals Webinar - Training Lab Setup" prior doing "Chef Fundamentals Module 3".

When I run chef-client to install the "apache" cookbook I get ...
Err Index of /ubuntu precise-updates/main apache2.2-bin i386 2.2.22-1ubuntu1.3
404 Not Found [IP: 91.189.91.14 80]

It seems to be the image config.vm.box_url = "https://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04-i386_provisionerless.box" which is causing the problem

because if I run ...
root@robvirsatel-starter:~# apt-get install apache2

I get ...
Err Index of /ubuntu precise-updates/main apache2.2-bin i386 2.2.22-1ubuntu1.3
404 Not Found [IP: 91.189.91.15 80]
Err Index of /ubuntu precise-security/main apache2.2-bin i386 2.2.22-1ubuntu1.3
404 Not Found [IP: 91.189.92.200 80]

I have looked at Index of /ubuntu and it seems it should be going to Index of /ubuntu/dists.

Any ideas on how I can go about fixing this so I can get on with the training webinar.

ThanksRob

--
Circular reasoning is legitimate due to circular reasoning being legitimate.

Thanks, I'm not using Berkshelf yet but I expect I will.

On 20 November 2013 11:56, Cassiano Leal cassianoleal@gmail.com wrote:

Are you using Berkshelf?

If so, stick this in your Berksfile:

cookbook ‘apt’

Then, add “recipe[apt::default]” to the top of your run_list in the
Vagrantfile.

--
Cassiano Leal
http://cassianoleal.com
http://twitter.com/cassianoleal

On Wednesday, November 20, 2013 at 07:06, Rob Watkin wrote:

Doh! :slight_smile:

I have fixed this by running

root@robvirsatel-starter:~# apt-get update

Now I just need to figure out how to put this into Vagrant :slight_smile:

Thanks
Rob

On 20 November 2013 08:44, Rob Watkin robwatkin@gmail.com wrote:

I have followed the istructions for setting up a Vagrant Lab in "Chef
Fundamentals Webinar - Training Lab Setup" prior doing "Chef Fundamentals
Module 3".

When I run chef-client to install the "apache" cookbook I get ...
Err Index of /ubuntu precise-updates/main
apache2.2-bin i386 2.2.22-1ubuntu1.3
404 Not Found [IP: 91.189.91.14 80]

It seems to be the image config.vm.box_url = "
https://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04-i386_provisionerless.box"
which is causing the problem

because if I run ...
root@robvirsatel-starter:~# apt-get install apache2

I get ...
Err Index of /ubuntu precise-updates/main
apache2.2-bin i386 2.2.22-1ubuntu1.3
404 Not Found [IP: 91.189.91.15 80]
Err Index of /ubuntu precise-security/main
apache2.2-bin i386 2.2.22-1ubuntu1.3
404 Not Found [IP: 91.189.92.200 80]

I have looked at Index of /ubuntu and it seems it
should be going to Index of /ubuntu/dists.

Any ideas on how I can go about fixing this so I can get on with the
training webinar.

Thanks
Rob

--
Circular reasoning is legitimate due to circular reasoning being
legitimate.

Watch module 4. We fix the issue there :wink:

--
Nathen Harvey

On Nov 20, 2013, at 7:04 AM, Rob Watkin robwatkin@gmail.com wrote:

Thanks, I'm not using Berkshelf yet but I expect I will.

On 20 November 2013 11:56, Cassiano Leal cassianoleal@gmail.com wrote:
Are you using Berkshelf?

If so, stick this in your Berksfile:

cookbook ‘apt’

Then, add “recipe[apt::default]” to the top of your run_list in the Vagrantfile.

--
Cassiano Leal
http://cassianoleal.com
http://twitter.com/cassianoleal

On Wednesday, November 20, 2013 at 07:06, Rob Watkin wrote:

Doh! :slight_smile:

I have fixed this by running

root@robvirsatel-starter:~# apt-get update

Now I just need to figure out how to put this into Vagrant :slight_smile:

Thanks
Rob

On 20 November 2013 08:44, Rob Watkin robwatkin@gmail.com wrote:
I have followed the istructions for setting up a Vagrant Lab in "Chef Fundamentals Webinar - Training Lab Setup" prior doing "Chef Fundamentals Module 3".

When I run chef-client to install the "apache" cookbook I get ...
Err Index of /ubuntu precise-updates/main apache2.2-bin i386 2.2.22-1ubuntu1.3
404 Not Found [IP: 91.189.91.14 80]

It seems to be the image config.vm.box_url = "https://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04-i386_provisionerless.box" which is causing the problem

because if I run ...
root@robvirsatel-starter:~# apt-get install apache2

I get ...
Err Index of /ubuntu precise-updates/main apache2.2-bin i386 2.2.22-1ubuntu1.3
404 Not Found [IP: 91.189.91.15 80]
Err Index of /ubuntu precise-security/main apache2.2-bin i386 2.2.22-1ubuntu1.3
404 Not Found [IP: 91.189.92.200 80]

I have looked at Index of /ubuntu and it seems it should be going to Index of /ubuntu/dists.

Any ideas on how I can go about fixing this so I can get on with the training webinar.

Thanks
Rob

--
Circular reasoning is legitimate due to circular reasoning being legitimate.

Hi Nathen,

Thanks for your help.

I ended up doing it by putting
config.vm.provision :shell, :inline => "apt-get update"
into my Vagrant file. Because I'm just trying to learning all this stuff
it's nothing lost :slight_smile:

Anyway, I then moved on to episode 4 where I found that you had addressed
the problem but...

when I did "knife cookbook create apt" I ended up with an 'official' apt
cookbook from somewhere with a lot of stuff (3 recipes) already in it. I
removed it and did "knife create cookbook myapt" to get around this. This
works fine.

I think I must have broken my local installation, have you got any ideas
what I may have done?

Thanks again
Rob

On 20 November 2013 12:17, Nathen Harvey nharvey@opscode.com wrote:

Watch module 4. We fix the issue there :wink:

--
Nathen Harvey

On Nov 20, 2013, at 7:04 AM, Rob Watkin robwatkin@gmail.com wrote:

Thanks, I'm not using Berkshelf yet but I expect I will.

On 20 November 2013 11:56, Cassiano Leal cassianoleal@gmail.com wrote:

Are you using Berkshelf?

If so, stick this in your Berksfile:

cookbook ‘apt’

Then, add “recipe[apt::default]” to the top of your run_list in the
Vagrantfile.

--
Cassiano Leal
http://cassianoleal.com
http://twitter.com/cassianoleal

On Wednesday, November 20, 2013 at 07:06, Rob Watkin wrote:

Doh! :slight_smile:

I have fixed this by running

root@robvirsatel-starter:~# apt-get update

Now I just need to figure out how to put this into Vagrant :slight_smile:

Thanks
Rob

On 20 November 2013 08:44, Rob Watkin robwatkin@gmail.com wrote:

I have followed the istructions for setting up a Vagrant Lab in "Chef
Fundamentals Webinar - Training Lab Setup" prior doing "Chef Fundamentals
Module 3".

When I run chef-client to install the "apache" cookbook I get ...
Err Index of /ubuntu precise-updates/main
apache2.2-bin i386 2.2.22-1ubuntu1.3
404 Not Found [IP: 91.189.91.14 80]

It seems to be the image config.vm.box_url = "
https://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04-i386_provisionerless.box"
which is causing the problem

because if I run ...
root@robvirsatel-starter:~# apt-get install apache2

I get ...
Err Index of /ubuntu precise-updates/main
apache2.2-bin i386 2.2.22-1ubuntu1.3
404 Not Found [IP: 91.189.91.15 80]
Err Index of /ubuntu precise-security/main
apache2.2-bin i386 2.2.22-1ubuntu1.3
404 Not Found [IP: 91.189.92.200 80]

I have looked at Index of /ubuntu and it seems it
should be going to Index of /ubuntu/dists.

Any ideas on how I can go about fixing this so I can get on with the
training webinar.

Thanks
Rob

--
Circular reasoning is legitimate due to circular reasoning being
legitimate.

I suspect you may have installed the apt cookbook from the community site
[0] during some pervious exercise or playing around with Chef.

You may have done this using either "knife cookbook site install apt" or
"knife cookbook site download apt". If you are or have completed some of
the exercises on http://learnchef.opscode.com, you would have run "knife
cookbook site install apt" during the "Using Chef Repo" section [1] .

-Nathen

[0] - http://community.opscode.com/cookbooks/apt
[1] - https://learnchef.opscode.com/quickstart/chef-repo/

On Wed, Nov 20, 2013 at 10:35 AM, Rob Watkin robwatkin@gmail.com wrote:

Hi Nathen,

Thanks for your help.

I ended up doing it by putting
config.vm.provision :shell, :inline => "apt-get update"
into my Vagrant file. Because I'm just trying to learning all this stuff
it's nothing lost :slight_smile:

Anyway, I then moved on to episode 4 where I found that you had addressed
the problem but...

when I did "knife cookbook create apt" I ended up with an 'official' apt
cookbook from somewhere with a lot of stuff (3 recipes) already in it. I
removed it and did "knife create cookbook myapt" to get around this. This
works fine.

I think I must have broken my local installation, have you got any ideas
what I may have done?

Thanks again
Rob

On 20 November 2013 12:17, Nathen Harvey nharvey@opscode.com wrote:

Watch module 4. We fix the issue there :wink:

--
Nathen Harvey

On Nov 20, 2013, at 7:04 AM, Rob Watkin robwatkin@gmail.com wrote:

Thanks, I'm not using Berkshelf yet but I expect I will.

On 20 November 2013 11:56, Cassiano Leal cassianoleal@gmail.com wrote:

Are you using Berkshelf?

If so, stick this in your Berksfile:

cookbook ‘apt’

Then, add “recipe[apt::default]” to the top of your run_list in the
Vagrantfile.

--
Cassiano Leal
http://cassianoleal.com
http://twitter.com/cassianoleal

On Wednesday, November 20, 2013 at 07:06, Rob Watkin wrote:

Doh! :slight_smile:

I have fixed this by running

root@robvirsatel-starter:~# apt-get update

Now I just need to figure out how to put this into Vagrant :slight_smile:

Thanks
Rob

On 20 November 2013 08:44, Rob Watkin robwatkin@gmail.com wrote:

I have followed the istructions for setting up a Vagrant Lab in "Chef
Fundamentals Webinar - Training Lab Setup" prior doing "Chef Fundamentals
Module 3".

When I run chef-client to install the "apache" cookbook I get ...
Err Index of /ubuntu precise-updates/main
apache2.2-bin i386 2.2.22-1ubuntu1.3
404 Not Found [IP: 91.189.91.14 80]

It seems to be the image config.vm.box_url = "
https://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04-i386_provisionerless.box"
which is causing the problem

because if I run ...
root@robvirsatel-starter:~# apt-get install apache2

I get ...
Err Index of /ubuntu precise-updates/main
apache2.2-bin i386 2.2.22-1ubuntu1.3
404 Not Found [IP: 91.189.91.15 80]
Err Index of /ubuntu precise-security/main
apache2.2-bin i386 2.2.22-1ubuntu1.3
404 Not Found [IP: 91.189.92.200 80]

I have looked at Index of /ubuntu and it seems it
should be going to Index of /ubuntu/dists.

Any ideas on how I can go about fixing this so I can get on with the
training webinar.

Thanks
Rob

--
Circular reasoning is legitimate due to circular reasoning being
legitimate.

How can I find out what I have downloaded? I have just tried "knife
cookbook site list", it takes ages and seems to list all cookbooks which
are available.

On 20 November 2013 21:21, Nathen Harvey nharvey@opscode.com wrote:

I suspect you may have installed the apt cookbook from the community site
[0] during some pervious exercise or playing around with Chef.

You may have done this using either "knife cookbook site install apt" or
"knife cookbook site download apt". If you are or have completed some of
the exercises on http://learnchef.opscode.com, you would have run "knife
cookbook site install apt" during the "Using Chef Repo" section [1] .

-Nathen

[0] - http://community.opscode.com/cookbooks/apt
[1] - https://learnchef.opscode.com/quickstart/chef-repo/

On Wed, Nov 20, 2013 at 10:35 AM, Rob Watkin robwatkin@gmail.com wrote:

Hi Nathen,

Thanks for your help.

I ended up doing it by putting
config.vm.provision :shell, :inline => "apt-get update"
into my Vagrant file. Because I'm just trying to learning all this stuff
it's nothing lost :slight_smile:

Anyway, I then moved on to episode 4 where I found that you had addressed
the problem but...

when I did "knife cookbook create apt" I ended up with an 'official' apt
cookbook from somewhere with a lot of stuff (3 recipes) already in it. I
removed it and did "knife create cookbook myapt" to get around this. This
works fine.

I think I must have broken my local installation, have you got any ideas
what I may have done?

Thanks again
Rob

On 20 November 2013 12:17, Nathen Harvey nharvey@opscode.com wrote:

Watch module 4. We fix the issue there :wink:

--
Nathen Harvey

On Nov 20, 2013, at 7:04 AM, Rob Watkin robwatkin@gmail.com wrote:

Thanks, I'm not using Berkshelf yet but I expect I will.

On 20 November 2013 11:56, Cassiano Leal cassianoleal@gmail.com wrote:

Are you using Berkshelf?

If so, stick this in your Berksfile:

cookbook ‘apt’

Then, add “recipe[apt::default]” to the top of your run_list in the
Vagrantfile.

--
Cassiano Leal
http://cassianoleal.com
http://twitter.com/cassianoleal

On Wednesday, November 20, 2013 at 07:06, Rob Watkin wrote:

Doh! :slight_smile:

I have fixed this by running

root@robvirsatel-starter:~# apt-get update

Now I just need to figure out how to put this into Vagrant :slight_smile:

Thanks
Rob

On 20 November 2013 08:44, Rob Watkin robwatkin@gmail.com wrote:

I have followed the istructions for setting up a Vagrant Lab in "Chef
Fundamentals Webinar - Training Lab Setup" prior doing "Chef Fundamentals
Module 3".

When I run chef-client to install the "apache" cookbook I get ...
Err Index of /ubuntu precise-updates/main
apache2.2-bin i386 2.2.22-1ubuntu1.3
404 Not Found [IP: 91.189.91.14 80]

It seems to be the image config.vm.box_url = "
https://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04-i386_provisionerless.box"
which is causing the problem

because if I run ...
root@robvirsatel-starter:~# apt-get install apache2

I get ...
Err Index of /ubuntu precise-updates/main
apache2.2-bin i386 2.2.22-1ubuntu1.3
404 Not Found [IP: 91.189.91.15 80]
Err Index of /ubuntu precise-security/main
apache2.2-bin i386 2.2.22-1ubuntu1.3
404 Not Found [IP: 91.189.92.200 80]

I have looked at Index of /ubuntu and it seems it
should be going to Index of /ubuntu/dists.

Any ideas on how I can go about fixing this so I can get on with the
training webinar.

Thanks
Rob

--
Circular reasoning is legitimate due to circular reasoning being
legitimate.

I helped Rob off-list. But here's how in case you're wondering.

Running 'git branch' revealed the git branches that were created by various
cookbooks that had previously been 'knife cookbook site install'ed.

-Nathen

On Thu, Nov 21, 2013 at 6:38 AM, Rob Watkin robwatkin@gmail.com wrote:

How can I find out what I have downloaded? I have just tried "knife
cookbook site list", it takes ages and seems to list all cookbooks which
are available.

On 20 November 2013 21:21, Nathen Harvey nharvey@opscode.com wrote:

I suspect you may have installed the apt cookbook from the community site
[0] during some pervious exercise or playing around with Chef.

You may have done this using either "knife cookbook site install apt" or
"knife cookbook site download apt". If you are or have completed some of
the exercises on http://learnchef.opscode.com, you would have run "knife
cookbook site install apt" during the "Using Chef Repo" section [1] .

-Nathen

[0] - http://community.opscode.com/cookbooks/apt
[1] - https://learnchef.opscode.com/quickstart/chef-repo/

On Wed, Nov 20, 2013 at 10:35 AM, Rob Watkin robwatkin@gmail.com wrote:

Hi Nathen,

Thanks for your help.

I ended up doing it by putting
config.vm.provision :shell, :inline => "apt-get update"
into my Vagrant file. Because I'm just trying to learning all this stuff
it's nothing lost :slight_smile:

Anyway, I then moved on to episode 4 where I found that you had
addressed the problem but...

when I did "knife cookbook create apt" I ended up with an 'official' apt
cookbook from somewhere with a lot of stuff (3 recipes) already in it. I
removed it and did "knife create cookbook myapt" to get around this. This
works fine.

I think I must have broken my local installation, have you got any ideas
what I may have done?

Thanks again
Rob

On 20 November 2013 12:17, Nathen Harvey nharvey@opscode.com wrote:

Watch module 4. We fix the issue there :wink:

--
Nathen Harvey

On Nov 20, 2013, at 7:04 AM, Rob Watkin robwatkin@gmail.com wrote:

Thanks, I'm not using Berkshelf yet but I expect I will.

On 20 November 2013 11:56, Cassiano Leal cassianoleal@gmail.comwrote:

Are you using Berkshelf?

If so, stick this in your Berksfile:

cookbook ‘apt’

Then, add “recipe[apt::default]” to the top of your run_list in the
Vagrantfile.

--
Cassiano Leal
http://cassianoleal.com
http://twitter.com/cassianoleal

On Wednesday, November 20, 2013 at 07:06, Rob Watkin wrote:

Doh! :slight_smile:

I have fixed this by running

root@robvirsatel-starter:~# apt-get update

Now I just need to figure out how to put this into Vagrant :slight_smile:

Thanks
Rob

On 20 November 2013 08:44, Rob Watkin robwatkin@gmail.com wrote:

I have followed the istructions for setting up a Vagrant Lab in "Chef
Fundamentals Webinar - Training Lab Setup" prior doing "Chef Fundamentals
Module 3".

When I run chef-client to install the "apache" cookbook I get ...
Err Index of /ubuntu precise-updates/main
apache2.2-bin i386 2.2.22-1ubuntu1.3
404 Not Found [IP: 91.189.91.14 80]

It seems to be the image config.vm.box_url = "
https://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04-i386_provisionerless.box"
which is causing the problem

because if I run ...
root@robvirsatel-starter:~# apt-get install apache2

I get ...
Err Index of /ubuntu precise-updates/main
apache2.2-bin i386 2.2.22-1ubuntu1.3
404 Not Found [IP: 91.189.91.15 80]
Err Index of /ubuntu precise-security/main
apache2.2-bin i386 2.2.22-1ubuntu1.3
404 Not Found [IP: 91.189.92.200 80]

I have looked at Index of /ubuntu and it seems it
should be going to Index of /ubuntu/dists.

Any ideas on how I can go about fixing this so I can get on with the
training webinar.

Thanks
Rob

--
Circular reasoning is legitimate due to circular reasoning being
legitimate.