You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~# echo 'package "ntp"' > /tmp/test.rb && chef-apply /tmp/test.rb
Recipe: (chef-apply cookbook)::(chef-apply recipe)
* apt_package[ntp] action install
* No version specified, and no candidate version available for ntp
================================================================================
Error executing action `install` on resource 'apt_package[ntp]'
================================================================================
Chef::Exceptions::Package
-------------------------
No version specified, and no candidate version available for ntp
Resource Declaration:
---------------------
# In /tmp/test.rb
1: package "ntp"
Compiled Resource:
------------------
# Declared in /tmp/test.rb:1:in `run_chef_recipe'
apt_package("ntp") do
action :install
retries 0
retry_delay 2
default_guard_interpreter :default
package_name "ntp"
timeout 900
declared_type :package
cookbook_name "(chef-apply cookbook)"
recipe_name "(chef-apply recipe)"
end
[2014-12-22T13:48:19+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2014-12-22T13:48:19+00:00] FATAL: Chef::Exceptions::Package: apt_package[ntp] ((chef-apply cookbook)::(chef-apply recipe) line 1) had an error: Chef::Exceptions::Package: No version specified, and no candidate version available for ntp
# avoid problems with locales on chef# workaround https://github.com/opscode/chef/issues/2695ENV['LANG']='en_US.UTF-8'ENV['LANGUAGE']=ENV['LANG']ENV['LC_ALL']=ENV['LANG']
Ohai Chefs !
Just wanted to report a bug when using a simple
package
ressource :Vagrant precise VM :
Now just change locale to fr_FR :
Same conf with chef 11 :
All we can say about this issue :
package
ressource seems to have a dependency to a specific (en) locale in Chef 12 (for some output parsing i guess)So is it possible to support non-EN locale or create a workaround to force EN locale inside Chef ?
It would be great for all Chefs around the world.
Thanks for all !
The text was updated successfully, but these errors were encountered: