我正在尝试使用 flatpak,每当我尝试安装任何东西时,我都会收到此错误消息:
\nerror: No remote refs found similar to \xe2\x80\x98flathub\xe2\x80\x99\nRun Code Online (Sandbox Code Playgroud)\n我已经用谷歌搜索了这个错误,似乎当 flatpak 不知道这个存储库时就会发生这种情况。这个常见的解决方案似乎是运行以下命令:
\nflatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo\nRun Code Online (Sandbox Code Playgroud)\n然而,要添加存储库,执行此操作后我仍然看到同样的问题。
\n当我运行时,flatpak remotes我得到以下信息:
flatpak remotes \nName Options \nflathub system\nRun Code Online (Sandbox Code Playgroud)\n我认为这意味着 Flatpak 已知该存储库。最后如果我运行:
\nflatpak remote-add flathub https://flathub.org/repo/flathub.flatpakrepo\nRun Code Online (Sandbox Code Playgroud)\n我收到一条错误消息:
\nError: Remote flathub already exists\nRun Code Online (Sandbox Code Playgroud)\n有谁知道如何纠正这个问题?
\n我使用的是 Pop!_OS 21.10。默认情况下,Pop!_Shop 在用户模式下安装 flatpak,这很烦人,因为我的系统上有多个用户。
\n我现在已经在系统范围内添加了 Flathub 存储库,因此现在我拥有两个来源:
\n$ flatpak remotes --columns=name,title,url,options\nName Title URL Options\nflathub Flathub https://dl.flathub.org/repo/ system\nflathub Flathub https://dl.flathub.org/repo/ user\nRun Code Online (Sandbox Code Playgroud)\n为了避免将来的用户安装,我想删除用户远程。但是,为此我还必须卸载那里安装的所有应用程序:
\n$ flatpak remote-delete flathub\nRemote \xe2\x80\x98flathub\xe2\x80\x99 found in multiple installations:\n\n 1) system\n 2) user\n\nWhich do you want to use (0 to abort)? [0-2]: 2\nThe following refs are installed from remote 'flathub':\n\n 1) runtime/org.freedesktop.Platform/x86_64/21.08\n 2) runtime/org.freedesktop.Platform.Locale/x86_64/20.08\n 3) runtime/org.freedesktop.Platform.GL.nvidia-470-57-02/x86_64/1.4\n 4) runtime/org.freedesktop.Platform/x86_64/20.08\n 5) runtime/org.freedesktop.Platform.GL.nvidia-470-63-01/x86_64/1.4\n 6) runtime/org.freedesktop.Platform.GL.default/x86_64/21.08\n 7) runtime/org.freedesktop.Platform.GL.nvidia-470-82-00/x86_64/1.4\n 8) runtime/org.freedesktop.Platform.GL.default/x86_64/20.08\n 9) runtime/org.gtk.Gtk3theme.Pop-dark/x86_64/3.22\n 10) runtime/org.freedesktop.Platform.GL.nvidia-465-31/x86_64/1.4\n 11) app/com.skype.Client/x86_64/stable\n 12) runtime/org.freedesktop.Platform.VAAPI.Intel/x86_64/21.08\n …Run Code Online (Sandbox Code Playgroud)