例如,我安装了不同的 LibreOffice 产品,我想删除它们。我试过:
sudo apt purge libreoffice*
在卸载 LibreOffice 的所有内容(Base、Calc、Draw 等)之前,此方法有效,但现在不起作用。它给出了这些错误:
$ sudo apt purge libreoffice* Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package libreoffice*
(LibreOffice已安装,可以正常打开!)
$ sudo apt purge libreoffice/* Reading package lists... Done Building dependency tree Reading state information... Done Package 'libreoffice' is not installed, so not removed Selected version '1:6.4.4-0ubuntu0.20.04.1' (Ubuntu:20.04/focal-updates [amd64]) for 'libreoffice' 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$ sudo apt purge libreoffice\* Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package libreoffice*
使用基于 Ubuntu 20.04 LTS 的 Linux Mint 20