Jam*_*ert 19 package-management arch-linux packages updates
我想在运行 Arch Linux 的 Raspberry Pi 上安装一些软件,但我一直收到错误 404。
我做了一些研究,我发现我需要做的pacman -Syy和pacman -Syu...
当我在pacman -Syy启用所有镜像的情况下运行时,我得到:
# pacman -Syy
:: Synchronizing package databases...
error: failed retrieving file 'core.db' from mirror.aarnet.edu.au : The requested URL returned error: 404 Not Found
error: failed retrieving file 'core.db' from ftp.iinet.net.au : The requested URL returned error: 404 Not Found
error: failed retrieving file 'core.db' from mirror.internode.on.net : The requested URL returned error: 404 Not Found
error: failed retrieving file 'core.db' from mirror.optus.net : The requested URL returned error: 404 Not Found
error: failed retrieving file 'core.db' from mirror.rackcentral.com.au : The requested URL returned error: 404 Not Found
error: failed retrieving file 'core.db' from syd.mirror.rackspace.com : The requested URL returned error: 404 Not Found
error: failed retrieving file 'core.db' from ftp.swin.edu.au : The requested URL returned error: 404 Not Found
error: failed retrieving file 'core.db' from archlinux.mirror.uber.com.au : The requested URL returned error: 404 Not Found
error: failed retrieving file 'core.db' from mirror1.htu.tugraz.at : The requested URL returned error: 404 Not Found
error: failed retrieving file 'core.db' from mirrors.ispros.com.bd : The requested URL returned error: 404 Not Found
error: failed retrieving file 'core.db' from ftp.byfly.by : The requested URL returned error: 404 Not Found
error: failed retrieving file 'core.db' from mirror.datacenter.by : The requested URL returned error: 404 Not Found
error: failed retrieving file 'core.db' from archlinux.cu.be : The requested URL returned error: 404 Not Found
error: failed retrieving file 'core.db' from archlinux.mirror.kangaroot.net : The requested URL returned error: 404 Not Found
error: failed retrieving file 'core.db' from archlinux.c3sl.ufpr.br : The requested URL returned error: 404 Not Found
error: failed retrieving file 'core.db' from www.las.ic.unicamp.br : The requested URL returned error: 404 Not Found`
Run Code Online (Sandbox Code Playgroud)
我已经检查过,它对整个core.db文件、所有镜像以及extra.db、community.db和aur.db.
我能够ping通各种服务器,所以我有互联网。另外,我在家庭网络上通过 SSH 执行此操作。
编辑:我没有使用代理服务器。
如果有帮助,我可以使用rankmirrorswhich 下载镜像列表并取消对其中一些镜像的注释以供使用,我认为这是基于速度的。
尝试使用curl(它是核心的一部分,因此应该安装)使用以下命令下载 core.db 文件。这将有助于排除您的问题是否与pacman和/或其配置有关,或者您的问题是否与您的 Internet 连接有关。
curl -O http://mirror.aarnet.edu.au/pub/archlinux/core/os/x86_64/core.db
Run Code Online (Sandbox Code Playgroud)
如果 core.db 成功下载,请在文本编辑器(nano core.db甚至less core.db)中打开它。如果内容看起来类似于下面的这个 HTML(特别404 Not Found是在内容中的某处),那么它可能是你的 pacman 配置。我会下载最新的 Arch 安装 CD 并从中重新安装 pacman。
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /pub/archlinux/core/os/x86_64/core.db was not foun$
<hr>
<address>Apache/2.2.15 (Red Hat) Server at 127.0.0.1 Port 8080</address>
</body></html>
Run Code Online (Sandbox Code Playgroud)
如果 core.db 无法下载,则是您的 Internet 连接。发布您收到的任何错误消息,我们可以帮助您进一步排除故障。
另外,运行此命令命令
cat /etc/pacman.d/mirrorlist | grep aarnet.edu.au
Run Code Online (Sandbox Code Playgroud)
并验证输出与此匹配
Server = http://mirror.aarnet.edu.au/pub/archlinux/$repo/os/$arch
Run Code Online (Sandbox Code Playgroud)
如果没有,请下载最新的镜像列表并取消对镜像的注释。您可以使用此命令快速完成此操作(您仍然需要在文本编辑器中打开它并取消注释Server = ...行)。
sudo mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist~ && curl -o /etc/pacman.d/mirrorlist https://www.archlinux.org/mirrorlist/?country=AU
Run Code Online (Sandbox Code Playgroud)
如果执行此操作后pacman -Syy仍然失败,那么我认为您的 pacman 安装已完全损坏。按照Arch Wiki 上的说明重新安装 pacman。
小智 6
使用镜面反射器
sudo pacman -S reflector
Run Code Online (Sandbox Code Playgroud)
安装它并键入:
sudo reflector -l 5 --sort rate --save /etc/pacman.d/mirrorlist
Run Code Online (Sandbox Code Playgroud)
郑重声明,如果您不是 ARM 用户,您可能拥有 32 位 Arch Linux,但 i686 支持结束了。
$ pacman -Syu --debug
如果您在存储库 URL 中看到 i686 ,那么您应该切换到Arch Linux 32。基本上你可以使用它的镜像列表而不是官方的。
| 归档时间: |
|
| 查看次数: |
63476 次 |
| 最近记录: |