简体   繁体   English

无法在 Arch Linux 上安装 flatpak

[英]Unable to install flatpak on Arch Linux

[Trying to] Installing flatpak on Arch linux fails: [尝试] 在 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.

What's the correct way to download and install flatpack on Linux?在 Linux 上下载和安装 flatpack 的正确方法是什么?

Solved it with running sudo pacman -Syy first首先运行sudo pacman -Syy解决了它

Note that it is not advisable to install an individual package after -Sy or -Syy .请注意,不建议在-Sy或 -Syy 之后安装单独的-Syy If you need to update your mirrors with -y to install a package, you should combine it with a full system upgrade -u :如果您需要使用-y更新镜像以安装 package,则应将其与完整的系统升级-u结合使用:

sudo pacman -Syu flatpak

You might not see immediate breakage with -Sy <package> , but eventually something will break with continued use.您可能不会看到使用-Sy <package>立即损坏,但最终会随着继续使用而损坏。 If <package> happens to pull in new lib versions, then any program that depends on those libs will break since they will still be built against the old libs .如果<package>碰巧引入了新的 lib 版本,那么任何依赖于这些 lib 的程序都会中断,因为它们仍将针对旧的 lib 构建

This is sometimes happen.这有时会发生。 you can solve it using pacman -Syu flatpak .您可以使用pacman -Syu flatpak解决它。 If it didn't solve then you have to change your repository server either from /etc/pacman or /etc/pacman.d/mirrorlist .如果它没有解决,那么您必须从/etc/pacman/etc/pacman.d/mirrorlist更改您的存储库服务器。

Update the system with pacman -Syu and try again使用pacman -Syu更新系统并重试

buy I highly recommend going with AUR packages购买我强烈推荐使用 AUR 包

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM