无法安装 Netbeans 8.1

无法安装 Netbeans 8.1

我正在运行 64 位版本的 Ubuntu 14.04 桌面,当我运行Netbeans 安装程序(PHP 版本)我收到以下错误消息:

Configuring the installer...
Searching for JVM on the system...
Preparing bundled JVM ...
netbeans-8.1-php-linux-x64.sh: 1: eval: /tmp/.nbi-4114443.tmp/jre-8u60-linux-x64.bin: Permission denied
Cannot prepare bundled JVM to run the installer.
Most probably the bundled JVM is not compatible with the current platform.
See FAQ at http://wiki.netbeans.org/FaqUnableToPrepareBundledJdk for more information.

当我查看 wiki 时,它告诉我:

On Debian-based 64bit distributions (such as Ubuntu) it is usually enough to install the ia32-libs package to successfully start the bundled 32bit installer. 

当我尝试跑步时

sudo apt-get install ia32-libs

我收到错误:

Package ia32-libs 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
However the following packages replace it:
  lib32z1 lib32ncurses5 lib32bz2-1.0

E: Package 'ia32-libs' has no installation candidate

然后我就跑

sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0

...然后我执行安装程序并收到相同的错误消息:

Configuring the installer...
Searching for JVM on the system...
Preparing bundled JVM ...
netbeans-8.1-php-linux-x64.sh: 1: eval: /tmp/.nbi-4114845.tmp/jre-8u60-linux-x64.bin: Permission denied
Cannot prepare bundled JVM to run the installer.
Most probably the bundled JVM is not compatible with the current platform.
See FAQ at http://wiki.netbeans.org/FaqUnableToPrepareBundledJdk for more information.

为了在 Ubuntu 14.04(64 位)上安装 netbeans 8.1,我需要做什么?

系统状态

输出uname -a

Linux stuart-home 3.19.0-31-generic #36~14.04.1-Ubuntu SMP Thu Oct 8 10:21:08 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

java -version 的输出

Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on
java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)

更新日期:2015 年 7 月 11 日

我已经尝试过了安装 Java 9但那也不起作用。


更新日期:2015 年 8 月 11 日

解决方法是,看来完整的 netbeans 下载有效。这种类型的 Netbeans 安装只有一个下载选项,而不是 1 个用于 x86 和 1 个用于 x64。我想知道这是否与此有关,或者只是 PHP 版本有错误?

在此处输入图片描述

现在,我将保留它并使用完整版本,但我很想知道对于那些只想要最少 PHP 安装的人来说是否有真正的解决方案。

答案1

我遇到了同样的问题(NetBeans 8.1,Debian 8.1)。

在 /etc/fstab 中我删除了“禁止执行“参数/tmp定义,重新挂载 /tmp 并且现在它可以工作了。(缺少执行权限);)

答案2

您必须从他们的站点下载 netbeans,它是一个 tar 文件。

  • 解压到您选择的文件夹。
  • 确保您已安装 JDK。
  • 打开终端并更改为包含文件 netbeans.sh 的目录。
  • 然后使用命令执行shell脚本文件:

    ./netbeans.sh

  • 这需要提升权限才能完成。

然后出现一个以 GUI 形式安装 NetBeans 的窗口。

答案3

我在尝试为计算机上的非 root 用户安装 netbeans 时遇到了这个问题,但 addin 所有者执行位有所帮助。使用的命令如下:

chmod u+x netbeans-8.1-linux.sh

之后,当我跑步时

./netbeans-8.1-linux.sh

它起作用了,之后安装运行没有任何问题。

相关内容