我已经创build了Ubuntu 10.04 ec2映像,现在我需要在我的实例上安装tomcat apache和jdk6,但是每当我使用命令sudo apt-get install sun-java6-jdk
或者sudo apt-get install tomcat6 admin
或者sudo 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
另一个选择是将他们的官方仓库添加到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
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需要首先取消source.list中的多个字符串(还记得apt-get update)。
我有点困惑,如果你只是想安装Java和Tomcat,你为什么还要安装ec2工具?
在任何情况下,我也想提到免费的BitNami云工具安装程序 (免责声明:我是其中一个开发人员)。 它包括JDK和所有与EC2相关的工具。 我们保持最新状态,并且可以以普通用户身份运行。