【问题标题】:Unable to install flatpak on Arch Linux无法在 Arch Linux 上安装 flatpak
【发布时间】:2021-04-22 12:06:23
【问题描述】:

[尝试]在 Arch linux 上安装 flatpak 失败:

$ sudo pacman -S flatpak
resolving dependencies...
:: There are 3 providers available for xdg-desktop-portal-impl:
:: Repository extra
   1) xdg-desktop-portal-gtk  2) xdg-desktop-portal-kde
:: Repository community
   3) xdg-desktop-portal-wlr

Enter a number (default=1): 1
looking for conflicting packages...

Packages (11) appstream-glib-0.7.18-1  gcab-1.4-1  geoclue-2.5.7-3  geocode-glib-3.26.2-1
              gnome-desktop-1:40.0-1  gnome-keyring-1:40.0-1  libstemmer-0+713-2  ostree-2021.1-1
              xdg-desktop-portal-1.8.0-1  xdg-desktop-portal-gtk-1.8.0-1  flatpak-1.10.2-1

Total Download Size:    0.63 MiB
Total Installed Size:  29.29 MiB

:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
error: failed retrieving file 'ostree-2021.1-1-x86_64.pkg.tar.zst' from mirror.rackspace.com : The requested URL returned error: 404
error: failed retrieving file 'ostree-2021.1-1-x86_64.pkg.tar.zst' from mirrors.evowise.com : The requested URL returned error: 404
error: failed retrieving file 'ostree-2021.1-1-x86_64.pkg.tar.zst' from mirror.rackspace.com : The requested URL returned error: 404
error: failed retrieving file 'ostree-2021.1-1-x86_64.pkg.tar.zst' from mirror.rackspace.com : The requested URL returned error: 404
warning: failed to retrieve some files
error: failed to commit transaction (failed to retrieve some files)
Errors occurred, no packages were upgraded.

在 Linux 上下载和安装 flatpack 的正确方法是什么?

【问题讨论】:

    标签: linux archlinux xfce flatpak


    【解决方案1】:

    更新系统 pacman -Syu 再试一次

    购买我强烈推荐使用 AUR 包

    【讨论】:

      【解决方案2】:

      请注意,建议不要在-Sy-Syy 之后安装单独的包。如果您需要使用-y 更新您的镜像来安装软件包,您应该将其与完整的系统升级结合使用-u

      sudo pacman -Syu flatpak
      

      -Sy <package> 可能不会立即损坏,但最终会随着继续使用而损坏。如果 <package> 碰巧引入了新的库版本,那么任何依赖于这些库的程序 will break since they will still be built against the old libs

      【讨论】:

        【解决方案3】:

        先运行sudo pacman -Syy 解决了这个问题

        【讨论】:

          【解决方案4】:

          这有时会发生。您可以使用pacman -Syu flatpak 解决它。 如果它没有解决,那么您必须从 /etc/pacman/etc/pacman.d/mirrorlist 更改您的存储库服务器。

          【讨论】:

            猜你喜欢
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 2014-08-02
            • 1970-01-01
            • 2012-12-09
            • 1970-01-01
            • 2017-12-23
            • 2020-01-13
            相关资源
            最近更新 更多