我已经创建了ubuntu 10.04 ec2映像,现在我需要在实例上安装tomcat apache和jdk6,但是无论何时使用命令sudo apt-get install sun-java6-jdkor sudo apt-get install tomcat6 admin或sudo apt-get install ec2-api-tools
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