Amazon Web 服务和 ubuntu 10.04 ec2 实例
我已经创建了 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
I have created ubuntu 10.04 ec2 image and now I need to install tomcat apache and jdk6 on my instance but whenever I use the command sudo apt-get install sun-java6-jdk
or sudo apt-get install tomcat6 admin
or 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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
另一个选择是将他们的官方存储库添加到 apt - 这将为您提供日期AWS工具:
这对于进一步的版本和最新的官方错误修复等非常有用,只需运行通常的命令
Another option is to add their official repository to apt - this will provide you up to date AWS tools:
This is extremely useful for farther releases and and for up to date official bug fixes etc. just by running the usual
Ubuntu 默认情况下没有可用的 Sun JDK,因此在 /etc/apt/sources.list 中取消注释:
然后:
ec2-api-tools 要求首先取消注释 resources.list 中的 multiverse 行(记住要 apt-get update还)。
Ubuntu doesn't have the Sun JDKs available by default so in /etc/apt/sources.list uncomment:
and then:
ec2-api-tools requires the multiverse lines in sources.list to be uncommented first (remember to apt-get update also).
我有点困惑,如果你只想安装Java和Tomcat,为什么还要尝试安装ec2工具?
无论如何,我还想提一下免费的 BitNami Cloud Tools 安装程序(免责声明:我是其中之一)开发商)。它包括 JDK 和所有与 EC2 相关的工具。我们保持它相当最新并且可以作为普通用户运行。
I am a bit confused, if you just want to install Java and Tomcat, why are you also trying to install the ec2 tools?
In any case, I also want to mention the free BitNami Cloud Tools installer (disclaimer: I am one of the developers). It includes the JDK and all EC2-related tools. We keep it fairly up-to-date and can run as a regular user.