我从 libreoffice 5.4.x 降级到存储库中的 5.1.x 现在我无法运行任何 libreoffice 程序。我怎样才能解决这个问题?
我做了什么来删除 libreoffice 5.4.x
sudo apt-get install ppa-purge && sudo ppa-purge ppa:libreoffice/ppa
sudo apt-get remove --purge libreoffice*
sudo apt-get autoremove
sudo apt-get clean
I then rebooted the machine
然后重新安装 5.1.x 我运行了命令。
sudo apt-get install libreoffice-common libreoffice
当我单击该图标时,Flash 屏幕会出现,但 libreoffice 应用程序都不会启动。
当我尝试使用命令从终端启动编写器时libreoffice --writer
我收到此错误消息
~$ libreoffice --writer
terminate called after throwing an instance of 'std::runtime_error'
what(): IconThemeInfo::FileNameToThemeId() called with invalid filename.
Fatal exception: Signal 6
Stack:
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x394e0)[0x7f996c2004e0]
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x39873)[0x7f996c200873]
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x399a8)[0x7f996c2009a8]
/lib/x86_64-linux-gnu/libc.so.6(+0x354b0)[0x7f996be324b0]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38)[0x7f996be32428]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7f996be3402a]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(_ZN9__gnu_cxx27__verbose_terminate_handlerEv+0x16d)[0x7f9964e9484d]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x8d6b6)[0x7f9964e926b6]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x8d701)[0x7f9964e92701]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x8d919)[0x7f9964e92919]
/usr/lib/libreoffice/program/libmergedlo.so(_ZN3vcl13IconThemeInfo17FileNameToThemeIdERKN3rtl8OUStringE+0x13c)[0x7f996ebb340c]
/usr/lib/libreoffice/program/libmergedlo.so(_ZN3vcl13IconThemeInfoC2ERKN3rtl8OUStringE+0x70)[0x7f996ebb3690]
/usr/lib/libreoffice/program/libmergedlo.so(_ZN3vcl16IconThemeScanner18AddIconThemeByPathERKN3rtl8OUStringE+0x5b)[0x7f996ebb427b]
/usr/lib/libreoffice/program/libmergedlo.so(_ZN3vcl16IconThemeScanner26ScanDirectoryForIconThemesERKN3rtl8OUStringE+0x13b)[0x7f996ebb446b]
/usr/lib/libreoffice/program/libmergedlo.so(_ZN3vcl16IconThemeScanner6CreateERKN3rtl8OUStringE+0x63)[0x7f996ebb4553]
/usr/lib/libreoffice/program/libmergedlo.so(+0x2790fdc)[0x7f996ebaefdc]
/usr/lib/libreoffice/program/libmergedlo.so(_ZN13StyleSettingsC1Ev+0x46)[0x7f996ebaf496]
/usr/lib/libreoffice/program/libmergedlo.so(+0x27914f6)[0x7f996ebaf4f6]
/usr/lib/libreoffice/program/libmergedlo.so(_ZN11AllSettingsC1Ev+0x46)[0x7f996ebaf676]
/usr/lib/libreoffice/program/libmergedlo.so(_ZN11Application12InitSettingsEP10ImplSVData+0x1e)[0x7f996ebb5fde]
/usr/lib/libreoffice/program/libmergedlo.so(_ZN11Application11GetSettingsEv+0x2d)[0x7f996ebb608d]
/usr/lib/libreoffice/program/libvclplug_gtklo.so(+0x3b502)[0x7f995807f502]
/usr/lib/libreoffice/program/libmergedlo.so(_Z7InitVCLv+0x292)[0x7f996ebbadc2]
/usr/lib/libreoffice/program/libmergedlo.so(+0x279d9f6)[0x7f996ebbb9f6]
/usr/lib/libreoffice/program/libmergedlo.so(_Z6SVMainv+0x22)[0x7f996ebbbb02]
/usr/lib/libreoffice/program/libmergedlo.so(soffice_main+0xa2)[0x7f996dcb3212]
/usr/lib/libreoffice/program/soffice.bin[0x4006eb]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f996be1d830]
/usr/lib/libreoffice/program/soffice.bin[0x400729]
lp@jt-laptop:~$
I'm using:
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
只安装了几个包,但没有安装 LibreOffice 项目的应用程序(Base、Calc、Writer...)。你想做的是
由于一个奇怪的原因,这个问题看起来是由
openjdk-8-jre-headless
不确定原因引起的,但这是我为让它工作所做的一切。1)卸载文件
2)找到并卸载jdk
3) 安装 libreoffice