Joh*_*ohn 5 package-management apt lubuntu libreoffice 20.04
我发现 LibreOffice Impress 默认安装在 Lubuntu 20.04 上处理字体的方式存在问题。这个问题就在这里讨论。简而言之,解决方案是删除 LibreOffice 的默认安装(通过安装 Lubuntu 来安装的安装)并安装 LibreOffice 的 snap 版本。
为了保持我的系统干净整洁,我想删除现有的(默认)LibreOffice。我试过:
sudo apt remove libreoffice
Run Code Online (Sandbox Code Playgroud)
我也尝试了上面的各种版本,包括--purge等,但是一直说没有安装LibreOffice,所以不会删除它。
最终,我找到了Lubuntu的软件中心(我的主机是Ubuntu)。在那里我可以单独删除 Calc、Impress、Writer 等。但是,没有任何东西可以删除 LibreOffice 的总体应用程序。
需要明确的是,那个包罗万象的外壳仍然存在。我可以启动它,但它无法读取任何文件,因为 Impress 等都消失了。但是,它仍然存在,我想将其删除。
我在其他问题上找到了很多帮助,包括这个答案,它表明我应该能够使用:
sudo apt remove libreoffice-base-core
sudo apt autoremove
Run Code Online (Sandbox Code Playgroud)
这不起作用,因为 apt 没有看到 LibreOffice 已安装。
Package 'libreoffice-base-core' is not installed
Run Code Online (Sandbox Code Playgroud)
然后我根据该答案的建议尝试了这个:
dpkg -l |grep "ii libre"
Run Code Online (Sandbox Code Playgroud)
它什么也不返回。
我没有找到删除 LibreOffice 默认安装的方法,我不需要它,因为 snap 版本运行良好。
当我输入:
whereis libreoffice
Run Code Online (Sandbox Code Playgroud)
我得到:
libreoffice: /usr/bin/libreoffice /usr/lib/libreoffice /etc/libreoffice /usr/share/libreoffice /snap/bin/libreoffice.draw /snap/bin/libreoffice /snap/bin/libreoffice.math /snap/bin/libreoffice.base /snap/bin/libreoffice.calc /snap/bin/libreoffice.impress /snap/bin/libreoffice.writer /snap/bin/libreoffice.filebug /usr/share/man/man1/libreoffice.1.gz
Run Code Online (Sandbox Code Playgroud)
我可以简单地删除 /snap/bin/ 之外所有名为 libreoffice* 的所有内容吗?这会破坏任何东西吗?
基本上,它是apt purge libreoffice-common
.
您应该能够获得相关软件包的几乎完整列表dpkg -S /usr/lib/libreoffice
。乍一看,似乎所有人都安全apt purge
。Lubuntu 的第一个“级别”的软件包列表:
$ apt depends lubuntu-desktop | grep libreoffice
Recommends: libreoffice-calc
Recommends: libreoffice-gtk3
Recommends: libreoffice-impress
Recommends: libreoffice-qt5
Recommends: libreoffice-style-breeze
Recommends: libreoffice-writer
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
12761 次 |
最近记录: |