亚马逊网络服务和Ubuntu 10.04 EC2实例

7

我已经创建了Ubuntu 10.04的EC2镜像,现在需要在我的实例上安装Tomcat Apache和JDK6,但每当我使用命令sudo apt-get install sun-java6-jdksudo apt-get install tomcat6 adminsudo apt-get install ec2-api-tools时,都会出问题。

Package ec2-api-tools is not available, but is referred to by another package.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package ec2-api-tools is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source
E: Package ec2-api-tools has no installation candidate
3个回答

8
另一种选择是将官方仓库添加到apt中 - 这将为您提供最新的AWS工具。请访问官方仓库
sudo apt-add-repository ppa:awstools-dev/awstools
sudo apt-get update
sudo apt-get install ec2-api-tools -y

这非常有用,可以获得更新的官方补丁程序等。只需运行通常的操作即可。

sudo apt-get update
sudo apt-get upgrade -y

2

Ubuntu默认情况下不提供Sun JDK,所以需要在/etc/apt/sources.list中取消注释:

deb http://archive.canonical.com/ubuntu maverick partner
deb-src http://archive.canonical.com/ubuntu maverick partner

接着:

sudo apt-get update
sudo apt-get install sun-java6-jdk

ec2-api-tools 要求在 sources.list 中先取消 multiverse 行的注释(也要记得运行 apt-get update)。


确保您没有将多元宇宙行指向“hardy”。直到我用“lucid”替换“hardy”,我仍然收到“Package ec2-api-tools has no installation candidate”的错误消息。 - James Moore

1

我有点困惑,如果你只是想安装Java和Tomcat,为什么还要尝试安装ec2工具呢?

无论如何,我也想提一下免费的BitNami云工具安装程序(声明:我是其中一名开发者)。它包括JDK和所有与EC2相关的工具。我们会保持它相当更新,并可以作为常规用户运行。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接