当我尝试从 Ubuntu 软件中心安装 Kmplayer 时发生这种情况,我该怎么办?谢谢。
installArchives() failed:
Extracting templates from packages: 32%
Extracting templates from packages: 65%
Extracting templates from packages: 98%
Extracting templates from packages: 100%
Preconfiguring packages ...
Extracting templates from packages: 32%
Extracting templates from packages: 65%
Extracting templates from packages: 98%
Extracting templates from packages: 100%
Preconfiguring packages ...
Extracting templates from packages: 32%
Extracting templates from packages: 65%
Extracting templates from packages: 98%
Extracting templates from packages: 100%
Preconfiguring packages ...
Setting up install-info (5.2.0.dfsg.1-2) ...
/etc/environment: line 1: /usr/lib/jvm/jdk1.8.0_121/bin: Is a directory
dpkg: error processing package install-info (--configure):
subprocess installed post-installation script returned error exit status 126
Errors were encountered while processing:
install-info
Error in function:
Setting up install-info (5.2.0.dfsg.1-2) ...
/etc/environment: line 1: /usr/lib/jvm/jdk1.8.0_121/bin: Is a directory
dpkg: error processing package install-info (--configure):
subprocess installed post-installation script returned error exit status 126
答案1
正如 Thomas Ward 所说,问题出在/etc/environment
文件中。
就我而言,我为 Java 添加了两个变量 -JAVA_HOME
和JRE_HOME
。我刚刚删除了它们,现在一切正常。