将Ubuntu更新到12.04之后,发现无法从图形界面打开libreoffice,只能在命令行使用lowriter来打开文档,在bash中输入libreoffice,出现如下错误:
www @ubuntu:~$ libreoffice
ls: 初始化月份字符串出错
/usr/bin/libreoffice: 58: cd: can't cd to lrwxrwxrwx 1 root root 34 4../lib/libreoffice/program
Failed to find intro image
fopen /usr/bin/pagein-common: No such file or directory
Warning: failed to launch javaldx - java may not fuction correctly
ERROR 4 forking processxiaolong@ubuntu:~$ locate oosplash
/usr/lib/libreoffice/program/oosplash:没有那个文件或目录
解决方案如下:
打开 /etc/default/locale,将文件改为如下:
NG="en_US.UTF-8"
LANGUAGE="en_US:zh_CN:en"
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=