我正在关注厨师教程.我的工作站是Ubuntu.在这一步'Install the Apache package'
.
我写了一个仅包含的食谱"package 'httpd'"
.我应该在那之后安装Apache.但是,我收到了一个错误:
Error executing action `install` on resource 'apt_package[httpd]' ================================================================================ Chef::Exceptions::Package ------------------------- httpd is a virtual package provided by multiple packages, you must explicitly select one Resource Declaration: --------------------- # In /home/local/ANT/yuqiw/chef-repo/webserver.rb 2: apt_package("httpd") Compiled Resource: ------------------ # Declared in /home/local/ANT/yuqiw/chef-repo/webserver.rb:2:in `from_file' apt_package("httpd") do package_name "httpd" action [:install] retries 0 retry_delay 2 default_guard_interpreter :default declared_type :apt_package cookbook_name "@recipe_files" recipe_name "/home/local/ANT/yuqiw/chef-repo/webserver.rb" end Platform: --------- x86_64-linux
谁能帮我吗?
在Debian/Ubuntu中调用httpd
在RHEL/CentOS/Fedora上调用的包apache2
.在教程开始时你必须选择你是否使用Ubuntu或CentOS,你可能选择了不正确的.只需返回该屏幕并单击其他链接即可.