0

运行 opscode samba 食谱时出现此错误,我已按照 samba 食谱用法中的说明设置了我的用户数据包、我的共享数据包以及我的 samba 用户,但仍然收到此消息。

[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 的候选版本”意味着什么的任何见解?

4

1 回答 1

0

“包”资源不是特别聪明或复杂 - 在它的引擎盖下它提供给apt-get,yum或任何你的发行版的等价物。据推测,您的发行版在其存储库中没有任何称为“smbclient”的东西。

如果您添加了一些有关您正在使用的发行版的信息,我也许可以添加更精确的建议,但是在正确的文件中具有额外值的 fork可能是最好的方法。

于 2013-09-27T03:39:25.710 回答