gpt4 book ai didi

chef-infra - Chef : No candidate version available for mod_security2 for Ubuntu 16. 04

转载 作者:行者123 更新时间:2023-12-04 03:12:34 24 4
gpt4 key购买 nike

在包含 package mod_securitypackage mod_security2 时出现错误 Chef: No candidate version available for mod_security2

这里是截取的堆栈跟踪:

       * No candidate version available for mod_security2
================================================================================
Error executing action `install` on resource 'apt_package[mod_security2]'
================================================================================

Chef::Exceptions::Package
-------------------------
No candidate version available for mod_security2

Resource Declaration:
---------------------
# In <snipped>

13: package 'mod_security2'
14:

Compiled Resource:
------------------
# Declared in <snipped> `from_file'

apt_package("mod_security2") do
package_name "mod_security2"
action [:install]
default_guard_interpreter :default
declared_type :package
cookbook_name "mod_secure"
recipe_name "default"
end

System Info:
------------
chef_version=13.0.118
platform=ubuntu
platform_version=16.04
ruby=ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
program_name=chef-client worker: ppid=16061;start=17:30:57;
executable=/opt/chef/bin/chef-client

最佳答案

这意味着 apt 中没有可用的包版本。您可能缺少 apt-get update。在您的基本配方或任何最接近的配方中添加 apt_update

关于chef-infra - Chef : No candidate version available for mod_security2 for Ubuntu 16. 04,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43853960/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com