您尚未登录。

#1 2023-12-03 14:25:09

ffffhhh
会员
注册时间: 2023-12-02
帖子: 3

更新失败 ?update failed! error: failed to synchronize all databases

请教如何解决?

[archuser@archlinux ~]$ sudo pacman -Syu
[sudo] password for archuser:
:: Synchronizing package databases...
core is up to date
extra                                      8.2 MiB   118 KiB/s 01:11 [######################################] 100%
community is up to date
multilib is up to date
archlinuxcn                                3.4 MiB   720 KiB/s 00:05 [######################################] 100%
archlinuxfr.db failed to download
error: failed retrieving file 'archlinuxfr.db' from repo.archlinux.fr : The requested URL returned error: 404
error: failed to synchronize all databases (failed to retrieve some files)

离线

#2 2023-12-03 15:28:48

Bryan2333
会员
注册时间: 2023-01-19
帖子: 104

Re: 更新失败 ?update failed! error: failed to synchronize all databases

archlinuxfr这个软件源已经没有了,你要把/etc/pacman.conf里面的相关内容删掉。另外community和extra合并了,你可以把community删掉。

删除后再更新系统。

在线

#3 2023-12-14 15:08:20

ffffhhh
会员
注册时间: 2023-12-02
帖子: 3

Re: 更新失败 ?update failed! error: failed to synchronize all databases

已删archlinuxfr后更新如下 :
[archuser@archlinux ~]$ sudo pacman -Syu
:: Synchronizing package databases...
error: failed to synchronize all databases (no servers configured for repository)


该如何解决?

离线

#4 2023-12-14 18:35:22

Bryan2333
会员
注册时间: 2023-01-19
帖子: 104

Re: 更新失败 ?update failed! error: failed to synchronize all databases

??没有配置服务器。

你不妨把你的pacman.conf用一个pastebin沾上来,看看是什么问题。

在线

#5 2023-12-16 15:26:54

ffffhhh
会员
注册时间: 2023-12-02
帖子: 3

Re: 更新失败 ?update failed! error: failed to synchronize all databases

#
# /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 = auto

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

#NoUpgrade   =
#NoExtract   =

# Misc options
#UseSyslog
#Color
#NoProgressBar
CheckSpace
#VerbosePkgLists
#ParallelDownloads = 5

# 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
# packagers with `pacman-key --populate archlinux`.

#
# 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.

#[testing]
#Include = /etc/pacman.d/mirrorlist

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

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

#[community-testing]
#Include = /etc/pacman.d/mirrorlist

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

# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.

#[multilib-testing]
#Include = /etc/pacman.d/mirrorlist

[multilib]
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
[archlinuxcn]
SigLevel = Optional TrustAll
#Server   = https://repo.archlinuxcn.org/$arch
#Server   = https://mirrors.163.com/archlinux-cn/$arch
#Server   = https://repo.huaweicloud.com/archlinux/$repo/os/$arch
Server   = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch
Server   = https://mirrors.ustc.edu.cn/archlinuxcn/$arch
[archlinuxfr]
#SigLevel = Never
#Server = https://repo.archlinux.fr/$arch

离线

#6 2023-12-16 15:40:37

Bryan2333
会员
注册时间: 2023-01-19
帖子: 104

Re: 更新失败 ?update failed! error: failed to synchronize all databases

你要把 [archlinuxfr] 注释掉,或者直接把那一块删掉才可以。

在线

页脚