没有可用于 tshark 的候选版本
No candidate version available for tshark
执行厨师时出现此错误
No candidate version available for tshark
Chef::Exceptions::Package
-------------------------
No candidate version available for tshark
Resource Declaration:
---------------------
# In /root/chef/cookbooks/kamailio-trunk2/recipes/default.rb
23: package pkg do
24: action :install
25: end
26: end
Compiled Resource:
------------------
# Declared in /root/chef/cookbooks/kamailio-trunk2/recipes/default.rb:23:in `block in from_file'
yum_package("tshark") do
action [:install]
retries 0
retry_delay 2
default_guard_interpreter :default
package_name "tshark"
flush_cache {:before=>false, :after=>false}
declared_type :package
cookbook_name :"kamailio-trunk2"
recipe_name "default"
end
这是安装 tshark 的代码:
# debug tools
%w{tshark}.each do |pkg|
package pkg do
action :install
end
end
可能的问题是什么。 .谢谢
您配置的 yum 存储库名称中没有可用的包 tshark
。至少在 RHEL 和 CentOS 上,/usr/bin/tshark
命令由 wireshark
包提供。
执行厨师时出现此错误
No candidate version available for tshark
Chef::Exceptions::Package
-------------------------
No candidate version available for tshark
Resource Declaration:
---------------------
# In /root/chef/cookbooks/kamailio-trunk2/recipes/default.rb
23: package pkg do
24: action :install
25: end
26: end
Compiled Resource:
------------------
# Declared in /root/chef/cookbooks/kamailio-trunk2/recipes/default.rb:23:in `block in from_file'
yum_package("tshark") do
action [:install]
retries 0
retry_delay 2
default_guard_interpreter :default
package_name "tshark"
flush_cache {:before=>false, :after=>false}
declared_type :package
cookbook_name :"kamailio-trunk2"
recipe_name "default"
end
这是安装 tshark 的代码:
# debug tools
%w{tshark}.each do |pkg|
package pkg do
action :install
end
end
可能的问题是什么。 .谢谢
您配置的 yum 存储库名称中没有可用的包 tshark
。至少在 RHEL 和 CentOS 上,/usr/bin/tshark
命令由 wireshark
包提供。