无法安装任何应用程序。安装语言包时出现错误

无法安装任何应用程序。安装语言包时出现错误
Lenovo-G570:~$ sudo apt-get install language-pack-en
[sudo] password for parmeet: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
language-pack-en is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 128 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up install-info (5.2.0.dfsg.1-2) ...
/etc/environment: line 2: unexpected EOF while looking for matching `"'
dpkg: error processing package install-info (--configure):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 install-info
E: Sub-process /usr/bin/dpkg returned an error code (1)

parmeet@parmeet-Lenovo-G570:~$ 

etc/environment 文件是:

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
JAVA_HOME="/home/parmeet/JAVA/jdk1.8.0_20/bin

答案1

错误消息中的一行/etc/environment: line 2: unexpected EOF while looking for matching "'表明您"在第二行末尾漏掉了一个双引号。

将第二行从

JAVA_HOME="/home/parmeet/JAVA/jdk1.8.0_20/bin

JAVA_HOME="/home/parmeet/JAVA/jdk1.8.0_20/bin"

然后再试sudo apt-get install language-pack-en一次

相关内容