Arch ARM Pacman 在“-Syyu”之后无法连接到服务器

Arch ARM Pacman 在“-Syyu”之后无法连接到服务器

我一直在 Arch Linux 论坛和我的设备架构的特定部分中进行搜索,但没有任何运气。

不幸的是,ARM 特定的 Arch 论坛已经死了……主要的 Arch 论坛不允许我发帖,因为他们告诉我去 ARM 论坛……所以我在那里找不到任何帮助。

我在 Samsung Chromebook 2 上使用 ARMv7 Arch 发行版

直到昨天一切都工作正常。Pacman正在按预期运行和更新一切。

我尝试[multilib]按照 Arch Wiki 说明添加存储库(pacman.conf手动编辑和添加详细信息)

此时我做了 pacman -Syyu

此后,pacman他的行为开始变得不稳定。连接到任何存储库数据库时我总是收到错误。我尝试从镜像列表中手动取消注释特定服务器,并[multilib]从中删除存储库pacman.conf

不走运,什么都没有改变。

所以我重新安装了pacman手动下载软件包wget

一切正常,pacman已成功重新安装并pacman.conf重置为默认值。

现在,尝试运行pacman -Syu更新系统时,所有服务器都会出现 404 错误。

在尝试注释/取消注释并手动将服务器包含在pacman.conf...中后,运气不佳。

所以我的下一步是按照 Arch Wiki 部分pacman在此处手动重新安装/修复: https://wiki.archlinux.org/title/pacman#Manually_reinstalling_pacman

我下载了pacman-static(以及所有依赖项),编译并成功安装,一切顺利。

现在,我尝试运行pacman-static,但系统输出命令未找到......这没有任何意义。

我不知道还要做什么来修复pacman或如何运行pacman-static

互联网工作正常,wget工作正常,浏览正常。

这是我当前的“pacman.conf”

cat /etc/pacman.conf
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir     = /
#DBPath      = /var/lib/pacman/
#CacheDir    = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
#GPGDir      = /etc/pacman.d/gnupg/
#HookDir     = /etc/pacman.d/hooks/
HoldPkg     = pacman glibc
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
Architecture = armv7h

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg   =
#IgnoreGroup =

#NoUpgrade   =
#NoExtract   =

# Misc options
#UseSyslog
#Color
#TotalDownload
CheckSpace
#VerbosePkgLists

# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel    = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required

# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Arch Linux ARM
# packagers with `pacman-key --populate archlinuxarm`.

#
# REPOSITORIES
#   - can be defined here or included from another file
#   - pacman will search repositories in the order defined here
#   - local/custom mirrors can be added here or in separate files
#   - repositories listed first will take precedence when packages
#     have identical names, regardless of version number
#   - URLs will have $repo replaced by the name of the current repo
#   - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
#       [repo-name]
#       Server = ServerName
#       Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#

# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.

[core]
Include = /etc/pacman.d/mirrorlist

[extra]
Include = /etc/pacman.d/mirrorlist

[community]
Include = /etc/pacman.d/mirrorlist

[alarm]
Include = /etc/pacman.d/mirrorlist

[aur]
Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs

无论我使用哪个服务器,我都会收到所有存储库的错误:

:: Synchronizing package databases...
error: failed retrieving file 'core.db' from mirrors.evowise.com : The requested URL returned error: 404
error: failed retrieving file 'core.db' from mirror.rackspace.com : The requested URL returned error: 404
error: failed retrieving file 'core.db' from mirror.rackspace.com : The requested URL returned error: 404
error: failed retrieving file 'core.db' from mirror.chaoticum.net : The requested URL returned error: 404
error: failed retrieving file 'core.db' from mirror.chaoticum.net : The requested URL returned error: 404
error: failed retrieving file 'core.db' from mirror.f4st.host : The requested URL returned error: 404
error: failed retrieving file 'core.db' from mirror.kku.ac.th : The requested URL returned error: 404
error: failed retrieving file 'core.db' from mirror.kku.ac.th : The requested URL returned error: 404
error: failed retrieving file 'core.db' from mirror2.totbb.net : The requested URL returned error: 404
error: failed to update core (failed to retrieve some files)

与此同时,我跑了:

pacman-key --init
pacman-key --populate archlinuxarm

重新安装后pacman以确保这些也已更新

请告诉我您需要哪些更多详细信息来帮助我调试和修复此问题pacman

非常感谢

答案1

解决方案:

强制我的pacman.conf配置仅显式检查这些镜像

[core]
Server = http://mirror.archlinuxarm.org/$arch/$repo
#Include = /etc/pacman.d/mirrorlist

[extra]
Server = http://mirror.archlinuxarm.org/$arch/$repo
#Include = /etc/pacman.d/mirrorlist

[community]
Server = http://mirror.archlinuxarm.org/$arch/$repo
#Include = /etc/pacman.d/mirrorlist

[alarm]
Server = http://mirror.archlinuxarm.org/$arch/$repo
#Include = /etc/pacman.d/mirrorlist

[aur]
Server = http://mirror.archlinuxarm.org/$arch/$repo
#Include = /etc/pacman.d/mirrorlist

相关内容