前段時間我安裝了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
現在已經成功卸載了