*After this operation, 44.1 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Extracting templates from packages: 100%
Setting up install-info (4.13a.dfsg.1-10ubuntu4) ...
/etc/environment: line 5: JAVA_HOME: command not found
dpkg: error processing install-info (--configure):
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
install-info
E: Sub-process /usr/bin/dpkg returned an error code (1)*
这是我在尝试修改任何软件包时遇到的错误,在这种情况下我试图安装LXDE。我的环境文件如下所示:
*PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
JAVA_HOME=/usr/lib/jvm/jdk1.7.0_25/
为了提供更多背景信息,在我经历了设置Android Studio的漫长而艰巨的过程之后,这个DKPG错误开始发生。我觉得解决方案很简单,但我现在一直在寻找并且无法解决我的问题。任何帮助将不胜感激,谢谢你提前
答案 0 :(得分:0)
在执行命令
之前导出JAVA_HOMEexport JAVA_HOME=$JAVA_HOME:/usr/lib/jvm/jdk1.7.0_25/