在Ubuntu 20.04中启动LibreOffice时出现未定义的符号错误

After executing the command libreoffice I am getting the following error message.

/usr/lib/libreoffice/program/soffice.bin: symbol lookup error: /lib/x86_64-linux-gnu/libcairo.so.2: undefined symbol: FT_Done_MM_Var

从桌面环境启动它不会显示任何内容。

I tried renaming ~/.config/libreoffice to reset the user settings, but it did not change anything. A new ~/.config/libreoffice folder was created, however.

将Ubuntu重新安装到最新版本20.04之后,我开始出现此错误。我将主文件夹完整保存在单独的驱动器上,在安装过程中刚刚格式化了OS驱动器。

评论
zquia
zquia

Setting the LD_PRELOAD variable to point to a different library solved the problem. Namely, the following command worked for me.

LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libfreetype.so.6 libreoffice

So to be able to run LibreOffice from the desktop environment I added an environment variable export line to ~/.profile.

export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libfreetype.so.6

但是,这种解决方案在我看来似乎很棘手。一个更合适的将不胜感激。

点赞
评论