Amazon Web 服务和 ubuntu 10.04 ec2 实例

发布于 2024-10-22 03:58:17 字数 639 浏览 3 评论 0原文

我已经创建了 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

鲜血染红嫁衣 2024-10-29 03:58:17

另一个选择是将他们的官方存储库添加到 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

Another option is to add their official repository to apt - this will provide you up to date AWS tools:

sudo apt-add-repository ppa:awstools-dev/awstools
sudo apt-get update
sudo apt-get install ec2-api-tools -y

This is extremely useful for farther releases and and for up to date official bug fixes etc. just by running the usual

sudo apt-get update
sudo apt-get upgrade -y
后eg是否自 2024-10-29 03:58:17

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 要求首先取消注释 resources.list 中的 multiverse 行(记住要 apt-get update还)。

Ubuntu doesn't have the Sun JDKs available by default so in /etc/apt/sources.list uncomment:

deb http://archive.canonical.com/ubuntu maverick partner
deb-src http://archive.canonical.com/ubuntu maverick partner

and then:

sudo apt-get update
sudo apt-get install sun-java6-jdk

ec2-api-tools requires the multiverse lines in sources.list to be uncommented first (remember to apt-get update also).

蛮可爱 2024-10-29 03:58:17

我有点困惑,如果你只想安装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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文