【问题标题】:Chef: samba cookbook error: No version specified, and no candidate version available for smbclient厨师:samba 食谱错误:未指定版本,并且没有可用于 smbclient 的候选版本
【发布时间】:2013-09-27 11:39:25
【问题描述】:

运行 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 的候选版本”的含义有任何见解吗?

【问题讨论】:

    标签: chef-infra samba cookbook


    【解决方案1】:

    “包”资源并不是特别聪明或复杂——在它的底层是 apt-getyum 或任何你的发行版的等价物。据推测,您的发行版在其存储库中没有任何名为“smbclient”的东西。

    如果您添加了一些有关您正在使用的发行版的信息,我也许可以添加一个更精确的建议,但是带有an extra value in the proper file 的分支可能是最好的选择。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-05-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多