Cannot find the provider for a resource with no run context set
/usr/lib/ruby/gems/1.8/gems/chef-0.9.0.a8/bin/../lib/chef/platform.rb:242:in `provider_for_resource'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.0.a8/bin/../lib/chef/resource.rb:258:in `run_action'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.0.a8/bin/../lib/chef/provider/package.rb:129:in `get_preseed_file'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.0.a8/bin/../lib/chef/provider/package/apt.rb:95:in `preseed_package'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.0.a8/bin/../lib/chef/provider/package.rb:57:in `action_install'
fixed, now the run_context is set when we create the cookbook file resource