如何告诉 ubuntu apt-get 在默认版本之外安装 eclipse

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5026381/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 15:48:50  来源:igfitidea点击:

how to tell ubuntu apt-get to install eclipse in other than the default version

eclipseubuntu-10.10

提问by oshai

eclipse is installed with apt-get in version 3.5:

eclipse 在 3.5 版中与 apt-get 一起安装:

sudo apt-get install eclipse-platform

sudo apt-get install eclipse-platform

however I would like to install 3.6. how to specify that?

但是我想安装 3.6。如何指定?

回答by Alain Pannetier

For a given Debian distro version, apt has only one version of any given software. This is because apt tries to solve the problem of dependencies (just like maven in the java domain if this speaks to you).

对于给定的 Debian 发行版,apt 只有一个给定软件的版本。这是因为 apt 试图解决依赖问题(如果这对你来说就像 java 域中的 maven 一样)。

If you "lie" about your version, apt won't complain, it's your own risk. As for eclipse there is little risk as eclipse is only dependent on java versions (for a given os/32-64/gui lib).

如果你对你的版本“撒谎”,apt 不会抱怨,这是你自己的风险。至于 eclipse,风险很小,因为 eclipse 仅依赖于 java 版本(对于给定的 os/32-64/gui lib)。

In 10.10 the eclipse standard version is 3.5sr2

在 10.10 中,eclipse 标准版本是 3.5sr2

But in natty narwhal it's 3.6, so you could try to use the

但是在整洁的独角鲸中它是 3.6,所以你可以尝试使用

An even safer solution is to add a PPA to your repositories list (synaptic => settings => repository for instance or update manager) there are other PPA that offer helios

更安全的解决方案是将 PPA 添加到您的存储库列表(突触 => 设置 => 存储库例如或更新管理器)还有其他 PPA 提供 helios

Best example:

最好的例子:

The Eclipse ppawhich has the 3.6 version (follow the PPA configuration instructions if you have never added a ppa before.

具有 3.6 版本的Eclipse ppa(如果您之前从未添加过 ppa,请按照 PPA 配置说明进行操作。

This answers your question. Howewer I tend to discourage using apt for eclipse (see SO answers hereand here)

这回答了你的问题。但是,我倾向于不鼓励使用 apt for eclipse(请参阅此处此处的SO 答案)

回答by XXX

That doesn't. I typed this:

那没有。我输入了这个:

sudo add-apt-repository ppa:itachi-sama-amaterasu/redeclipse-client sudo apt-get update sudo apt-get install redeclipse

This doesn't install the updated version, but it helps a bit...

这不会安装更新版本,但它有点帮助......

回答by bjornhol

If you know that version 3.6 is published as a package for 10.10, you should try

如果您知道 3.6 版是作为 10.10 的包发布的,您应该尝试

sudo apt-get update

And then try to install eclipse. If it's not published you have to wait or build it by yourself.

然后尝试安装eclipse。如果未发布,则必须等待或自行构建。