AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1179939
Accepted
jasmines
jasmines
Asked: 2019-10-11 00:50:28 +0800 CST2019-10-11 00:50:28 +0800 CST 2019-10-11 00:50:28 +0800 CST

我应该维护同一个 Flatpak 包的多个版本吗?

  • 772
#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.
flatpak
  • 2 2 个回答
  • 1751 Views

2 个回答

  • Voted
  1. Best Answer
    ajgringo619
    2019-10-11T10:06:11+08:002019-10-11T10:06:11+08:00

    您拥有多个版本的(运行时)软件包的原因是因为您安装的应用程序(无论如何都是一次)与不同的版本捆绑在一起。例如,Skype应用程序使用org.freedesktop.Platform/x86_64/18.08版本,如下所示:

    $ flatpak info com.skype.Client
    
    Skype - Call and message skype users, with video chat support
    
            ID: com.skype.Client
           Ref: app/com.skype.Client/x86_64/stable
          Arch: x86_64
        Branch: stable
       Version: 8.51.0.72
       License: LicenseRef-proprietary
    Collection: org.flathub.Stable
      Download: 1.4 MB
     Installed: 3.6 MB
       Runtime: org.freedesktop.Platform/x86_64/18.08
    
           Sdk: org.freedesktop.Sdk/x86_64/18.08
        Commit: 33d87117f3d06e0e91bc47bc4d8f588707817bfb278312778f9621a75ed76acd
        Parent: 3c349350580315d12c7038848a1077c0d9bfdf2ae34c77109935b559a20caebf
       Subject: Revert "Update skypeforlinux-64.deb to 8.51.0.92" (bc3e41a3)
          Date: 2019-09-02 11:15:01 +0000
    

    有时,Flatpak 并不擅长自行清理。我的系统有(3)个你提到的运行时版本,目前都在使用。您可以尝试运行flatpak remove --unused,它应该卸载任何不应该存在的软件包,但它不是 100% 可靠的。如果您不小心删除了安装所需的运行时,它将在您的系统下次运行 Flatpak 维护或flatpak update手动运行时修复。

    • 4
  2. Jeff
    2019-10-11T10:19:50+08:002019-10-11T10:19:50+08:00

    理想情况下,您实际上可以卸载 freedesktop。我很确定您所要做的就是安装 GNOME 软件管理器并从那里管理这些应用程序。再说一次,我比 Xfce4 更了解 Chrome OS 和 Mac OSX。

    对不起,如果我没有帮助。在我做一些研究之后,我也许可以给你一个更好的答案。

    • 0

相关问题

  • 如何在我的计算机上识别应用程序是 snap、flatpak 还是本机应用程序?

  • 在 AppImage 或 Flatpak 中打包 CLI 服务?

  • 如何接收已安装的 Flatpak 应用程序新版本的更新通知?

  • 应该如何删除 Flatpak 应用程序的文件?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve