我是一名 Linux 新手。当我在 Ubuntu16.04 中安装任何软件时,都会遇到相同的错误。例如,当我安装 smplayer( sudo apt-get install smplayer
) 时,我遇到以下错误:
/usr/sbin/update-info-dir: 2: /etc/default/locale: UTF-8: 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
E: Sub-process /usr/bin/dpkg returned an error code (1)
locale
以下是和的输出ls -ld /etc/default/locale
robert@robert-ThinkPad:~$ locale
LANG=zh_CN.\ UTF-8
LANGUAGE=en_US:en
LC_CTYPE="zh_CN. UTF-8"
LC_NUMERIC="zh_CN. UTF-8"
LC_TIME="zh_CN. UTF-8"
LC_COLLATE="zh_CN. UTF-8"
LC_MONETARY="zh_CN. UTF-8"
LC_MESSAGES="zh_CN. UTF-8"
LC_PAPER="zh_CN. UTF-8"
LC_NAME="zh_CN. UTF-8"
LC_ADDRESS="zh_CN. UTF-8"
LC_TELEPHONE="zh_CN. UTF-8"
LC_MEASUREMENT="zh_CN. UTF-8"
LC_IDENTIFICATION="zh_CN. UTF-8"
LC_ALL=
robert@robert-ThinkPad:~$ ls -ld /etc/default/locale
-rw-r--r-- 1 root root 76 2月 22 2017 /etc/default/locale
我怎么解决这个问题?
答案1
我改变/etc/default/locale
了
LANG="zh_CN.UTF-8"
LANGUAGE="zh_CN:en"
然后问题就解决了