Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/design-patterns/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache Amazon web服务和ubuntu 10.04 ec2实例_Apache_Tomcat_Amazon Ec2_Amazon Web Services - Fatal编程技术网

Apache Amazon web服务和ubuntu 10.04 ec2实例

Apache Amazon web服务和ubuntu 10.04 ec2实例,apache,tomcat,amazon-ec2,amazon-web-services,Apache,Tomcat,Amazon Ec2,Amazon Web Services,我已经创建了Ubuntu10.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. R

我已经创建了Ubuntu10.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

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工具要求首先取消对sources.list中的多宇宙行的注释(记住也要获取更新)。

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


在任何情况下,我还想提到免费的(免责声明:我是开发人员之一)。它包括JDK和所有与EC2相关的工具。我们将其保持相当的最新,并可以作为普通用户运行。

另一个选项是将其添加到apt-这将为您提供最新的AWS工具:

sudo apt-add-repository ppa:awstools-dev/awstools
sudo apt-get update
sudo apt-get install ec2-api-tools -y
这对于进一步的发布和最新的官方bug修复等非常有用,只需运行通常的

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

确保你没有在多重宇宙中指向“哈代”。我仍然收到错误消息“PackageEC2API工具没有安装候选程序”,直到我将“hardy”替换为“lucid”。