我有两个不同版本的 VLC,如何删除?

我有两个不同版本的 VLC,如何删除?

升级到 18.04 后,我通过软件商店和终端删除了未使用的应用程序、旧软件包和其他垃圾。我发现 VLC 与我正在使用的 yaru/communitheme 不匹配,所以我尝试了 Arch Wiki 上建议的一些方法,还从商店安装了 VLC snap。我现在有 VLC 3.0.4,它与主题匹配,但令人困惑的是,我仍然有 VLC 3.0.3,尽管我通过商店卸载了它并使用 apt/dpkg 进行了检查。

根据商店显示,只安装了一个版本的 VLC。如何删除另一个版本?它是从哪里来的?

$ snap list --all
Name                  Version    Rev   Tracking  Publisher       Notes
canonical-livepatch   8.0.2      41    stable    canonical*      disabled
canonical-livepatch   8.0.3      42    stable    canonical*      -
canonical-livepatch   8.0.1      39    stable    canonical*      disabled
communitheme          0.1        961   stable    didrocks        -
core                  16-2.35    5328  stable    canonical*      core
core                  16-2.33.1  4917  stable    canonical*      core,disabled
core                  16-2.34.3  5145  stable    canonical*      core,disabled
core18                0.1        19    stable    canonical*      base
gnome-3-26-1604       3.26.0     70    stable/…  canonical*      -
gnome-calculator      3.30.0     222   stable/…  canonical*      -
gnome-characters      3.28.2     117   stable/…  canonical*      -
gnome-logs            3.28.2     40    stable/…  canonical*      -
gnome-system-monitor  3.28.2     54    stable/…  canonical*      -
gtk-common-themes     0.1        319   stable/…  canonical*      -
keepassxc             2.3.4      49    stable    keepassxreboot  -
keepassxc             2.3.4      40    stable    keepassxreboot  disabled
keepassxc             2.3.4      39    stable    keepassxreboot  disabled
vlc                   3.0.4      555   stable    videolan*       -
$ dpkg -l vlc
dpkg-query: no packages found matching vlc
$ grep -i vlc ~/.local/share/applications/*.desktop
$ grep -i vlc /usr/share/applications/*.desktop
$ whereis vlc
vlc: /snap/bin/vlc

答案1

好吧,这是令人尴尬的部分:我还从 PPA 安装了 flatpak 运行时,现在我记得我尝试过flatpak VLC但它与 16.04 集成得不好,所以我忘记了它(希望它将来会有所改进)。

$ flatpak list
Ref                                             Options       
org.videolan.VLC/x86_64/stable                  system,current
org.freedesktop.Platform.VAAPI.Intel/x86_64/1.6 system,runtime
org.freedesktop.Platform.ffmpeg/x86_64/1.6      system,runtime
org.gtk.Gtk3theme.Ambiance/x86_64/3.22          system,runtime
org.gtk.Gtk3theme.Communitheme/x86_64/3.22      system,runtime
org.kde.Platform/x86_64/5.11                    system,runtime
$ find /var/lib/flatpak/app/org.videolan.VLC/ -iname *.desktop
/var/lib/flatpak/app/org.videolan.VLC/x86_64/stable/3aa719dda459ee693de4d94cee23e50e2f6eb144d1914d3bc93a15a6e8ba762b/files/share/kde4/apps/solid/actions/vlc-openvcd.desktop
/var/lib/flatpak/app/org.videolan.VLC/x86_64/stable/3aa719dda459ee693de4d94cee23e50e2f6eb144d1914d3bc93a15a6e8ba762b/files/share/kde4/apps/solid/actions/vlc-opendvd.desktop
/var/lib/flatpak/app/org.videolan.VLC/x86_64/stable/3aa719dda459ee693de4d94cee23e50e2f6eb144d1914d3bc93a15a6e8ba762b/files/share/kde4/apps/solid/actions/vlc-openbd.desktop
/var/lib/flatpak/app/org.videolan.VLC/x86_64/stable/3aa719dda459ee693de4d94cee23e50e2f6eb144d1914d3bc93a15a6e8ba762b/files/share/kde4/apps/solid/actions/vlc-opencda.desktop
/var/lib/flatpak/app/org.videolan.VLC/x86_64/stable/3aa719dda459ee693de4d94cee23e50e2f6eb144d1914d3bc93a15a6e8ba762b/files/share/applications/org.videolan.VLC.desktop
/var/lib/flatpak/app/org.videolan.VLC/x86_64/stable/3aa719dda459ee693de4d94cee23e50e2f6eb144d1914d3bc93a15a6e8ba762b/export/share/applications/org.videolan.VLC.desktop

要删除,只需运行:

flatpak uninstall org.videolan.VLC

为了将 flatpak 与 Gnome 软件集成,请安装相应的插件:

sudo apt install gnome-software-plugin-flatpak

相关内容