我正在尝试使用Ubuntu(14.04)中的软件中心安装s / w。 它给了我以下错误。
installArchives() failed: Setting up install-info (5.2.0.dfsg.1-2) ...
/etc/environment: line 2: JAVA_HOME: command not found
dpkg: error processing package install-info (--configure):
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
install-info
Error in function:
Setting up install-info (5.2.0.dfsg.1-2) ...
/etc/environment: line 2: JAVA_HOME: command not found
dpkg: error processing package install-info (--configure):
subprocess installed post-installation script returned error exit status 127
但是,当我在终端输入which java
或echo "$JAVA_HOME"
时,它会给我:
/usr/bin/java
此外,java(在/ usr / bin / java中)的权限如下所示:
owner: root
access:Read and write
group:root
access:read-only
others:read-only
You are not the owner,so you cannot change these permissions.
如何解决这个问题?