无法在 Arch 上安装 flatpak Linux
Unable to install flatpak on Arch Linux
[尝试] 在 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 的正确方法是什么?
先用运行sudo pacman -Syy
解决了
请注意,不建议在 -Sy
或 -Syy
之后安装单独的软件包。如果你需要用 -y
更新你的镜像来安装一个包,你应该将它与完整的系统升级结合起来 -u
:
sudo pacman -Syu flatpak
您可能不会立即看到 -Sy <package>
的损坏,但最终会随着继续使用而损坏。如果 <package>
恰好引入了新的库版本,那么任何依赖于这些库的程序 will break since they will still be built against the old libs.
这有时会发生。你可以使用 pacman -Syu flatpak
来解决它。
如果没有解决,那么您必须从 /etc/pacman
或 /etc/pacman.d/mirrorlist
.
更改您的存储库服务器
更新系统
pacman -Syu
再试一次
购买我强烈推荐使用 AUR 套餐
[尝试] 在 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 的正确方法是什么?
先用运行sudo pacman -Syy
解决了
请注意,不建议在 -Sy
或 -Syy
之后安装单独的软件包。如果你需要用 -y
更新你的镜像来安装一个包,你应该将它与完整的系统升级结合起来 -u
:
sudo pacman -Syu flatpak
您可能不会立即看到 -Sy <package>
的损坏,但最终会随着继续使用而损坏。如果 <package>
恰好引入了新的库版本,那么任何依赖于这些库的程序 will break since they will still be built against the old libs.
这有时会发生。你可以使用 pacman -Syu flatpak
来解决它。
如果没有解决,那么您必须从 /etc/pacman
或 /etc/pacman.d/mirrorlist
.
更新系统
pacman -Syu
再试一次
购买我强烈推荐使用 AUR 套餐