如果通过其网站从 .debs 安装 LibreOffice,我们如何卸载它?这些在软件中心中没有条目,因此无法通过这种方式卸载。并遵循其他指南,例如如何卸载 LibreOffice?或者删除重复的 LibreOffice 程序不适用于 Lubuntu/APT 1.6.12 — 没有显示任何包。
答案1
除非绝对必要,否则我会避免在命令中使用任何通配符apt
。对于您的情况,我会选择列出已安装的内容(dpkg -l
),然后删除那些特定的软件包,从而避免使用通配符造成的所有麻烦。仅供参考:在这方面,Lubuntu 与 18.04 版的任何其他 Ubuntu(或版本)没有什么不同。
不过,软件包管理器是一个更简单的选择;因为它们列出了所有软件包,而不仅仅是像软件中心那样“选定”的软件包。 synaptic
由默认的 Lubuntu 18.04 LTS 安装(https://packages.ubuntu.com/bionic/lubuntu-desktop) 是另一种选择,尽管还有很多其他选择。
另请注意,我启动了最新的 Lubuntu 18.04.4 QA 测试安装(f或图片), 和不LibreOffice 软件包是默认安装的(请参阅之前安装的软件包列表),因此未找到任何软件包。您的软件包可能是手动安装的,因此删除它们将取决于您如何安装它们,因此如果您安装了 flatpak、snap 等,之前的详细信息可能会有所不同。
Lubuntu 18.04 LTS 默认配备abiword
,gnumeric
而不是 LibreOffice。
答案2
诀窍是在 Lubuntu 的 APT 搜索中使用双引号:
mark@Lubuntu:~$ apt list "libreoffice6.*" "libobasis6.*"
Listing... Done
libobasis6.1-core/now 6.1.3.2-2 amd64 [residual-config]
libobasis6.3-base/now 6.3.4.2-2 amd64 [installed,local]
libobasis6.3-calc/now 6.3.4.2-2 amd64 [installed,local]
libobasis6.3-core/now 6.3.4.2-2 amd64 [installed,local]
libobasis6.3-draw/now 6.3.4.2-2 amd64 [installed,local]
libobasis6.3-en-us/now 6.3.4.2-2 amd64 [installed,local]
libobasis6.3-extension-beanshell-script-provider/now 6.3.4.2-2 amd64 [installed,local]
libobasis6.3-extension-javascript-script-provider/now 6.3.4.2-2 amd64 [installed,local]
libobasis6.3-extension-mediawiki-publisher/now 6.3.4.2-2 amd64 [installed,local]
libobasis6.3-extension-nlpsolver/now 6.3.4.2-2 amd64 [installed,local]
libobasis6.3-extension-pdf-import/now 6.3.4.2-2 amd64 [installed,local]
libobasis6.3-extension-report-builder/now 6.3.4.2-2 amd64 [installed,local]
libobasis6.3-firebird/now 6.3.4.2-2 amd64 [installed,local]
libobasis6.3-gnome-integration/now 6.3.4.2-2 amd64 [installed,local]
libobasis6.3-graphicfilter/now 6.3.4.2-2 amd64 [installed,local]
libobasis6.3-images/now 6.3.4.2-2 amd64 [installed,local]
libobasis6.3-impress/now 6.3.4.2-2 amd64 [installed,local]
libobasis6.3-kde-integration/now 6.3.4.2-2 amd64 [installed,local]
libobasis6.3-librelogo/now 6.3.4.2-2 amd64 [installed,local]
libobasis6.3-libreofficekit-data/now 6.3.4.2-2 amd64 [installed,local]
libobasis6.3-math/now 6.3.4.2-2 amd64 [installed,local]
libobasis6.3-ogltrans/now 6.3.4.2-2 amd64 [installed,local]
libobasis6.3-onlineupdate/now 6.3.4.2-2 amd64 [installed,local]
libobasis6.3-ooofonts/now 6.3.4.2-2 amd64 [installed,local]
libobasis6.3-ooolinguistic/now 6.3.4.2-2 amd64 [installed,local]
libobasis6.3-postgresql-sdbc/now 6.3.4.2-2 amd64 [installed,local]
libobasis6.3-python-script-provider/now 6.3.4.2-2 amd64 [installed,local]
libobasis6.3-pyuno/now 6.3.4.2-2 amd64 [installed,local]
libobasis6.3-writer/now 6.3.4.2-2 amd64 [installed,local]
libobasis6.3-xsltfilter/now 6.3.4.2-2 amd64 [installed,local]
libobasis6.4-base/now 6.4.0.3-3 amd64 [installed,local]
libobasis6.4-calc/now 6.4.0.3-3 amd64 [installed,local]
libobasis6.4-core/now 6.4.0.3-3 amd64 [installed,local]
libobasis6.4-draw/now 6.4.0.3-3 amd64 [installed,local]
libobasis6.4-en-us/now 6.4.0.3-3 amd64 [installed,local]
libobasis6.4-extension-beanshell-script-provider/now 6.4.0.3-3 amd64 [installed,local]
libobasis6.4-extension-javascript-script-provider/now 6.4.0.3-3 amd64 [installed,local]
libobasis6.4-extension-mediawiki-publisher/now 6.4.0.3-3 amd64 [installed,local]
libobasis6.4-extension-nlpsolver/now 6.4.0.3-3 amd64 [installed,local]
libobasis6.4-extension-pdf-import/now 6.4.0.3-3 amd64 [installed,local]
libobasis6.4-extension-report-builder/now 6.4.0.3-3 amd64 [installed,local]
libobasis6.4-firebird/now 6.4.0.3-3 amd64 [installed,local]
libobasis6.4-gnome-integration/now 6.4.0.3-3 amd64 [installed,local]
libobasis6.4-graphicfilter/now 6.4.0.3-3 amd64 [installed,local]
libobasis6.4-images/now 6.4.0.3-3 amd64 [installed,local]
libobasis6.4-impress/now 6.4.0.3-3 amd64 [installed,local]
libobasis6.4-kde-integration/now 6.4.0.3-3 amd64 [installed,local]
libobasis6.4-librelogo/now 6.4.0.3-3 amd64 [installed,local]
libobasis6.4-libreofficekit-data/now 6.4.0.3-3 amd64 [installed,local]
libobasis6.4-math/now 6.4.0.3-3 amd64 [installed,local]
libobasis6.4-ogltrans/now 6.4.0.3-3 amd64 [installed,local]
libobasis6.4-onlineupdate/now 6.4.0.3-3 amd64 [installed,local]
libobasis6.4-ooofonts/now 6.4.0.3-3 amd64 [installed,local]
libobasis6.4-ooolinguistic/now 6.4.0.3-3 amd64 [installed,local]
libobasis6.4-postgresql-sdbc/now 6.4.0.3-3 amd64 [installed,local]
libobasis6.4-python-script-provider/now 6.4.0.3-3 amd64 [installed,local]
libobasis6.4-pyuno/now 6.4.0.3-3 amd64 [installed,local]
libobasis6.4-writer/now 6.4.0.3-3 amd64 [installed,local]
libobasis6.4-xsltfilter/now 6.4.0.3-3 amd64 [installed,local]
libreoffice6.1-debian-menus/now 6.1.3-2 all [residual-config]
libreoffice6.3/now 6.3.4.2-2 amd64 [installed,local]
libreoffice6.3-base/now 6.3.4.2-2 amd64 [installed,local]
libreoffice6.3-calc/now 6.3.4.2-2 amd64 [installed,local]
libreoffice6.3-debian-menus/now 6.3.4-2 all [installed,local]
libreoffice6.3-dict-en/now 6.3.4.2-2 amd64 [installed,local]
libreoffice6.3-dict-es/now 6.3.4.2-2 amd64 [installed,local]
libreoffice6.3-dict-fr/now 6.3.4.2-2 amd64 [installed,local]
libreoffice6.3-draw/now 6.3.4.2-2 amd64 [installed,local]
libreoffice6.3-en-us/now 6.3.4.2-2 amd64 [installed,local]
libreoffice6.3-impress/now 6.3.4.2-2 amd64 [installed,local]
libreoffice6.3-math/now 6.3.4.2-2 amd64 [installed,local]
libreoffice6.3-ure/now 6.3.4.2-2 amd64 [installed,local]
libreoffice6.3-writer/now 6.3.4.2-2 amd64 [installed,local]
libreoffice6.4/now 6.4.0.3-3 amd64 [installed,local]
libreoffice6.4-base/now 6.4.0.3-3 amd64 [installed,local]
libreoffice6.4-calc/now 6.4.0.3-3 amd64 [installed,local]
libreoffice6.4-debian-menus/now 6.4.0-3 all [installed,local]
libreoffice6.4-dict-en/now 6.4.0.3-3 amd64 [installed,local]
libreoffice6.4-dict-es/now 6.4.0.3-3 amd64 [installed,local]
libreoffice6.4-dict-fr/now 6.4.0.3-3 amd64 [installed,local]
libreoffice6.4-draw/now 6.4.0.3-3 amd64 [installed,local]
libreoffice6.4-en-us/now 6.4.0.3-3 amd64 [installed,local]
libreoffice6.4-impress/now 6.4.0.3-3 amd64 [installed,local]
libreoffice6.4-math/now 6.4.0.3-3 amd64 [installed,local]
libreoffice6.4-ure/now 6.4.0.3-3 amd64 [installed,local]
libreoffice6.4-writer/now 6.4.0.3-3 amd64 [installed,local]
mark@Lubuntu:~$
现在可以仅列出您想要删除的内容apt list "libreoffice6.1*" "libobasis6.1*"
:
Listing... Done
libobasis6.1-core/now 6.1.3.2-2 amd64 [residual-config]
libreoffice6.1-debian-menus/now 6.1.3-2 all [residual-config]
现在可以使用 删除它们。在使用 清除之前,sudo apt purge "libreoffice6.1*" "libobasis6.1*"
请使用 检查其他版本,以确保不会意外删除任何其他内容。list
purge
请注意,至少在我删除 6.3 时,它为 LibreOffice 6.3 Draw 和 Math 留下了两个死的 .desktop 文件。解决方案是使用 MenuLibre 删除它们。
瞧!只剩下安装的 v6.4,并且释放了超过 650MB 的磁盘空间。