尝试安装 VirtualBox,但 pacman 找不到virtualbox-host-模块-arch包中,pacman 尝试的每一个镜像都会得到 404:
resolving dependencies...
:: There are 2 providers available for VIRTUALBOX-HOST-MODULES:
:: Repository community
1) virtualbox-host-dkms 2) virtualbox-host-modules-arch
Enter a number (default=1): 2
looking for conflicting packages...
Packages (2) virtualbox-host-modules-arch-5.2.2-7 virtualbox-5.2.2-2
Total Download Size: 0.20 MiB
Total Installed Size: 102.95 MiB
:: Proceed with installation? [Y/n]
:: Retrieving packages...
error: failed retrieving file 'virtualbox-host-modules-arch-5.2.2-7-x86_64.pkg.tar.xz' from arch.mirror.square-r00t.net : The requested URL returned error: 404
error: failed retrieving file 'virtualbox-host-modules-arch-5.2.2-7-x86_64.pkg.tar.xz' from arch.mirror.square-r00t.net : The requested URL returned error: 404
error: failed retrieving file 'virtualbox-host-modules-arch-5.2.2-7-x86_64.pkg.tar.xz' from arch.mirror.square-r00t.net : Protocol "rsync" not supported or disabled in libcurl
error: failed retrieving file 'virtualbox-host-modules-arch-5.2.2-7-x86_64.pkg.tar.xz' from archlinux.prometeolibero.eu : The requested URL returned error: 404
error: failed retrieving file 'virtualbox-host-modules-arch-5.2.2-7-x86_64.pkg.tar.xz' from archlinux.prometeolibero.eu : The requested URL returned error: 404
error: failed retrieving file 'virtualbox-host-modules-arch-5.2.2-7-x86_64.pkg.tar.xz' from arch.mirror.square-r00t.net : The requested URL returned error: 404
error: failed retrieving file 'virtualbox-host-modules-arch-5.2.2-7-x86_64.pkg.tar.xz' from arch.mirror.square-r00t.net : The requested URL returned error: 404
error: failed retrieving file 'virtualbox-host-modules-arch-5.2.2-7-x86_64.pkg.tar.xz' from arch.mirror.square-r00t.net : Protocol "rsync" not supported or disabled in libcurl
error: failed retrieving file 'virtualbox-host-modules-arch-5.2.2-7-x86_64.pkg.tar.xz' from archlinux.prometeolibero.eu : The requested URL returned error: 404
error: failed retrieving file 'virtualbox-host-modules-arch-5.2.2-7-x86_64.pkg.tar.xz' from archlinux.prometeolibero.eu : The requested URL returned error: 404
这是因为 repo 中的 virtualbox-host-modules-arch 包实际上是版本 5.2.2-10 吗?如果是这样,我该如何将其用作依赖项?
答案1
这是因为 repo 中的 virtualbox-host-modules-arch 包实际上是版本 5.2.2-10 吗?
是的。
如果是这样,我该如何使用它作为依赖项?
告诉 pacman 刷新存储库信息的本地副本。
这可以使用 来完成pacman -Sy
,但它强烈建议使用以下方式执行完整的系统升级pacman -Syu
反而。