0

我正在尝试在 AWS 实例上安装 tomcat 食谱,但遇到如下错误:

角色tomcat.rb:

name 'tomcat'
description 'A single tomcat server'
run_list(
  'recipe[tomcat]'
)

跑步:

knife ec2 server create --availability-zone us-east-1d --node-name tomcat.demo --flavor t1.micro --image ami-fd20ad94 --identity-file .ssh/tiagov.pem --run-list 'role[tomcat]' --ssh-user ubuntu

返回:

...
...
ec2-54-237-233-176.compute-1.amazonaws.com   xorg-sgml-doctools xtrans-dev
ec2-54-237-233-176.compute-1.amazonaws.com 0 upgraded, 85 newly installed, 0 to remove and 0 not upgraded.
ec2-54-237-233-176.compute-1.amazonaws.com Need to get 63.2 MB of archives.
ec2-54-237-233-176.compute-1.amazonaws.com After this operation, 184 MB of additional disk space will be used.
ec2-54-237-233-176.compute-1.amazonaws.com Err http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ precise-updates/main libasound2 amd64 1.0.25-1ubuntu10.1
ec2-54-237-233-176.compute-1.amazonaws.com   403  Forbidden

我究竟做错了什么?

4

1 回答 1

0

我看起来update您在引导实例时安装的软件包的端点可能已经过时。我会检查你的[tomcat]食谱是否有以下命令(作为 sudo):

apt-get update

我还将确保您的 AMI 中的 ubuntu 用户具有 sudo 无密码安装访问权限(这是 Amazon ubuntu AMI 的默认设置)

于 2014-04-07T00:58:39.563 回答