安装 netbeans 时出错

安装 netbeans 时出错

我尝试从下载的文件安装 NetBeans 7.2 .sh,但遇到了问题。以下是终端中的文本,显示了我所做的操作以及发生的情况:

hridesh@ubuntu:~$ cd Desktop/
hridesh@ubuntu:~/Desktop$ cd full\ netbeans\ 7.2\ for\ linux\ in\ .sh\ format/
hridesh@ubuntu:~/Desktop/full netbeans 7.2 for linux in .sh format$ chmod +x netbeans-7.1.2-ml-linux.sh
hridesh@ubuntu:~/Desktop/full netbeans 7.2 for linux in .sh format$ ./netbeans-7.1.2-ml-linux.sh
Configuring the installer...
Searching for JVM on the system...
Extracting installation data...
Installer file /home/hridesh/Desktop/full seems to be corrupted

为什么会出现此消息Installer file /home/hridesh/Desktop/full seems to be corrupted?这个文件是否真的已损坏或出现其他问题?

答案1

设置显示此错误

Installer file /home/hridesh/Desktop/full seems to be corrupted

由于使用的完整路径是“home/hridesh/Desktop/full netbeans 7.2 for linux in .sh format”,因此安装程序似乎遇到了这样的问题复杂的文件夹名称。

将文件夹“.sh 格式的适用于 Linux 的完整 netbeans 7.2”重命名为“netbeans_installer”等简单名称应该可以解决安装程序报告的问题。

cd Desktop
mv full\ netbeans\ 7.2\ for\ linux\ in\ .sh\ format netbeans_installer
cd netbeans_installer
./netbeans-7.1.2-ml-linux.sh

答案2

尝试

 sudo ./netbeans-7.1.2-ml-linux.sh

答案3

应该:sh netbeans-7.1.2-ml-linux.sh

相关内容