#flatpak list
Name Application ID Version Branch Installation
Authenticator com.github.bilelmoussaoui.Authenticator 3.32.2 stable system
Skype com.skype.Client 8.51.0.72 stable system
Freedesktop.org Application Platform version 1.6 org.freedesktop.Platform 1.6 1.6 system
Freedesktop Platform org.freedesktop.Platform 18.08.37 18.08 system
Freedesktop Platform org.freedesktop.Platform 19.08.3 19.08 system
default org.freedesktop.Platform.GL.default 19.08 system
nvidia-340-107 org.freedesktop.Platform.GL.nvidia-340-107 1.4 system
FFmpeg extension org.freedesktop.Platform.ffmpeg 1.6 system
html5-codecs org.freedesktop.Platform.html5-codecs 18.08 system
openh264 org.freedesktop.Platform.openh264 19.08 system
GNOME Application Platform version 3.34 org.gnome.Platform 3.34 system
Breeze Gtk theme org.gtk.Gtk3theme.Breeze 3.22 system
我可以在不破坏任何依赖关系的情况下卸载 Freedesktop.org 平台版本 1.6 和其他两个 Freedesktop 平台之一(哪个?)?
编辑:
~$ sudo flatpak remove --unused
ID Arch Branch
1. [-] org.freedesktop.Platform.ffmpeg x86_64 1.6
2. [-] org.freedesktop.Platform x86_64 1.6
3. [-] org.freedesktop.Platform.Locale x86_64 1.6
4. [-] org.freedesktop.Platform x86_64 19.08
5. [-] org.freedesktop.Platform.Locale x86_64 19.08
Uninstall complete.
error: Refusing to operate on a user installation as root! This can lead to incorrect file ownership and permission errors.
~$ flatpak remove --unused
Nothing unused to uninstall
编辑2:
$ flatpak update
Looking for updates…
Required runtime for org.freedesktop.Platform.GL.nvidia-340-107/x86_64/1.4 (runtime/org.freedesktop.Platform/x86_64/1.6) found in remote flathub
Do you want to install it? [Y/n]: y
ID Arch Branch Op Remote Download
1. [✓] org.freedesktop.Platform x86_64 1.6 i flathub 184,4 MB / 395,4 MB
2. [✓] org.freedesktop.Platform.ffmpeg x86_64 1.6 i flathub 2,9 MB / 2,9 MB
3. [✓] org.freedesktop.Platform.Locale x86_64 1.6 i flathub 620,0 kB / 177,1 MB
4. [✓] org.gnome.Platform x86_64 3.34 u flathub 253,8 kB / 318,4 MB
5. [✓] org.gnome.Platform.Locale x86_64 3.34 u flathub 1.0 kB / 322,7 MB
Changes complete.
$ flatpak remove --unused
ID Arch Branch
1. [-] org.freedesktop.Platform.ffmpeg x86_64 1.6
2. [-] org.freedesktop.Platform x86_64 1.6
3. [-] org.freedesktop.Platform.Locale x86_64 1.6
Uninstall complete.
$ flatpak remove --unused
Nothing unused to uninstall
$ flatpak update
Looking for updates…
Required runtime for org.freedesktop.Platform.GL.nvidia-340-107/x86_64/1.4 (runtime/org.freedesktop.Platform/x86_64/1.6) found in remote flathub
Do you want to install it? [Y/n]: y
ID Arch Branch Remote Download
1. [✓] org.freedesktop.Platform x86_64 1.6 flathub 184,4 MB / 395,4 MB
2. [✓] org.freedesktop.Platform.ffmpeg x86_64 1.6 flathub 2,9 MB / 2,9 MB
3. [✓] org.freedesktop.Platform.Locale x86_64 1.6 flathub 620,0 kB / 177,1 MB
Installation complete.
$ flatpak remove --unused
ID Arch Branch
1. [-] org.freedesktop.Platform.ffmpeg x86_64 1.6
2. [-] org.freedesktop.Platform x86_64 1.6
3. [-] org.freedesktop.Platform.Locale x86_64 1.6
Uninstall complete.
$ flatpak update
Looking for updates…
Required runtime for org.freedesktop.Platform.GL.nvidia-340-107/x86_64/1.4 (runtime/org.freedesktop.Platform/x86_64/1.6) found in remote flathub
Do you want to install it? [Y/n]:
ID Arch Branch Remote Download
1. [✓] org.freedesktop.Platform x86_64 1.6 flathub 184,4 MB / 395,4 MB
2. [✓] org.freedesktop.Platform.ffmpeg x86_64 1.6 flathub 2,9 MB / 2,9 MB
3. [✓] org.freedesktop.Platform.Locale x86_64 1.6 flathub 620,0 kB / 177,1 MB
Installation complete.
您拥有多个版本的(运行时)软件包的原因是因为您安装的应用程序(无论如何都是一次)与不同的版本捆绑在一起。例如,Skype应用程序使用org.freedesktop.Platform/x86_64/18.08版本,如下所示:
有时,Flatpak 并不擅长自行清理。我的系统有(3)个你提到的运行时版本,目前都在使用。您可以尝试运行
flatpak remove --unused
,它应该卸载任何不应该存在的软件包,但它不是 100% 可靠的。如果您不小心删除了安装所需的运行时,它将在您的系统下次运行 Flatpak 维护或flatpak update
手动运行时修复。理想情况下,您实际上可以卸载 freedesktop。我很确定您所要做的就是安装 GNOME 软件管理器并从那里管理这些应用程序。再说一次,我比 Xfce4 更了解 Chrome OS 和 Mac OSX。
对不起,如果我没有帮助。在我做一些研究之后,我也许可以给你一个更好的答案。