我执行厨师时遇到此错误
没有适用于tshark的候选版本
clear
这是关于istalling 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
可能出现的问题是什么。 。谢谢
答案 0 :(得分:1)
您配置的yum存储库名称tshark
中没有可用的包。至少在RHEL和CentOS上,/usr/bin/tshark
包提供了wireshark
命令。