我已经创建了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发布于 2011-11-14 18:52:46
另一种选择是将他们的official repository添加到apt -这将为您提供最新的亚马逊网络服务工具:
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发布于 2011-03-18 04:22:35
默认情况下,Ubuntu没有提供Sun,因此在/etc/apt/soures.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-jdkec2-api-tools要求首先取消注释sources.list中的multiverse行(还要记住apt-get update )。
发布于 2011-08-10 22:19:06
我有点困惑,如果你只想安装Java和Tomcat,为什么还要安装ec2工具呢?
无论如何,我也想提一下免费的BitNami Cloud Tools installer (免责声明:我是开发者之一)。它包括JDK和所有与EC2相关的工具。我们将其保持在最新状态,并且可以作为普通用户运行。
https://stackoverflow.com/questions/5337138
复制相似问题