不久前我安装了 Anki,它工作了一天然后就停止了。我不记得我是怎么安装它的。但是图标存在于我的应用程序启动器中,而不存在于我的/usr/share
snap list | grep -i anki
什么也没显示。
以下是输出sudo apt-get remove anki
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'anki' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 28 not upgraded.
我该如何删除这个无法运行的应用程序?
答案1
.desktop
自从我在 Ubuntu 软件管理器中看到 Anki 以来,我搜索了所有文件,这些.desktop
文件告诉 Ubuntu 软件管理器要显示哪些应用程序:
sudo find / -iname "*anki*.desktop" 2>/dev/null
/home/.../.local/share/flatpak/app/net.ankiweb.Anki/x86_64/stable/431478bed56ecbe10f86f1df97bfd78ff3417ab73db8928ad0ef8f65e7f25701/files/share/applications/net.ankiweb.Anki.desktop
/home/.../.local/share/flatpak/app/net.ankiweb.Anki/x86_64/stable/431478bed56ecbe10f86f1df97bfd78ff3417ab73db8928ad0ef8f65e7f25701/export/share/applications/net.ankiweb.Anki.desktop
/home/.../.local/share/flatpak/exports/share/applications/net.ankiweb.Anki.desktop
ls /home/.../.local/share/flatpak/app/net.ankiweb.Anki/x86_64/stable/431478bed56ecbe10f86f1df97bfd78ff3417ab73db8928ad0ef8f65e7f25701/files/share/applications/net.ankiweb.Anki.desktop
安装显然是 flatpak,所以我使用了flatpak uninstall anki
现已成功卸载