当运行opscode samba cookbook时出现此错误,我已经设置了我的用户数据包,我的共享数据包以及我的samba用户,如samba cookbook用法中所述,但仍然收到此消息。
[2013-09-18T10:56:22-05:00] INFO: *** Chef 10.24.0 ***
[2013-09-18T10:56:25-05:00] INFO: [inet6] no default interface, picking the first ipaddress
[2013-09-18T10:56:26-05:00] INFO: Run List is [recipe[samba]]
[2013-09-18T10:56:26-05:00] INFO: Run List expands to [samba]
[2013-09-18T10:56:26-05:00] INFO: HTTP Request Returned 404 Not Found: No routes match the request: /reports/nodes/ChefClient/runs
[2013-09-18T10:56:26-05:00] INFO: Starting Chef Run for ChefClient
[2013-09-18T10:56:26-05:00] INFO: Running start handlers
[2013-09-18T10:56:26-05:00] INFO: Start handlers complete.
[2013-09-18T10:56:26-05:00] INFO: Loading cookbooks [samba]
[2013-09-18T10:56:26-05:00] INFO: Processing samba_user[erxhub-devtest] action create (samba::default line 19)
[2013-09-18T10:56:26-05:00] INFO: Processing samba_user[erxhub-devtest] action enable (samba::default line 19)
[2013-09-18T10:56:26-05:00] INFO: Processing package[smbclient] action install (samba::client line 23)
================================================================================
Error executing action `install` on resource 'package[smbclient]'
================================================================================
Chef::Exceptions::Package
-------------------------
No version specified, and no candidate version available for smbclient
Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/samba/recipes/client.rb
23: )
Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/samba/recipes/client.rb:23:in `from_file'
package("smbclient") do
action :install
retries 0
retry_delay 2
package_name "smbclient"
cookbook_name "samba"
recipe_name "client"
end
[2013-09-18T11:00:07-05:00] ERROR: Running exception handlers
[2013-09-18T11:00:10-05:00] FATAL: Saving node information to /var/chef/cache/failed-run-data.json
[2013-09-18T11:00:10-05:00] ERROR: Exception handlers complete
[2013-09-18T11:00:29-05:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2013-09-18T11:00:29-05:00] FATAL: Chef::Exceptions::Package: package[smbclient] (samba::client line 23) had an error: Chef::Exceptions::Package: No version specified, and no candidate version available for smbclient
有关可能发生的事情以及“没有指定版本,没有可用于smbclient的候选版本”的任何见解意味着什么?
答案 0 :(得分:0)
“软件包”资源并不是特别聪明或复杂 - 它掩盖了apt-get
,yum
或任何您的发行版等价物。据推测,您的发行版在其存储库中没有任何名为“smbclient”的内容。
如果你添加了一些关于你正在使用的发行版的信息,我可能会添加更精确的建议,但是使用an extra value in the proper file的分叉可能是最好的方法。