页次: 1
如图所示,请问怎么办?
离线
你的 pacman.conf 写得有问题(具体问题报错说了)。检查一下。
离线
你的 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
#XferCommand = /usr/bin/aria2c --allow-overwrite=true -c --file-allocation=none --log-level=error -m2 --max-connection-per-server=2 --max-file-not-found=5 --min-split-size=5M --no-conf --remote-time=true --summary-interval=60 -t5 -d / -o %o %u
#CleanMethod = KeepInstalled
#UseDelta = 0.7
Architecture = auto
# 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
# 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
# to install owerpill
[xyne-any]
#SigLevel = Required
#Server = http://xyne.archlinux.ca/repos/xyne/
#Server = https://mirrors.neusoft.edu.cn/archlinux/
#archlinux中文社区
[archlinuxcn]
#SigLevel = Optional TrustAll
#Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch
[archlinuxcn]
#SigLevel = Optional TrustedOnly
#Server = https://mirrors.cloud.tencent.com/archlinuxcn/$arch
[archlinuxcn]
#SigLevel = Optional TrustedOnly
#Server = https://cdn.repo.archlinuxcn.org/$arch
[archlinuxfr]
#Server = http://repo.archlinux.fr/$arch
[archlinuxcn]
#SigLevel = Optional TrustedOnly
#Server = http://repo.archlinuxcn.org/$arch
[archlinuxcn]
#Server = https://repo.archlinuxcn.org/$arch
[xyne-any]
#Server = http://xyne.archlinux.ca/repos/any/
离线
1. archlinuxcn 倉庫多寫了 4 個,xyne-any 倉庫多寫了 1 個,並且 Server 都沒寫對。
2. /etc/pacman.d/mirrorlist 檔案應該也需要修改一下。
##
## Arch Linux repository mirrorlist
## Generated on 2020-04-17
##
## China
Server = http://mirrors.163.com/archlinux/$repo/os/$arch
Server = http://mirrors.cqu.edu.cn/archlinux/$repo/os/$arch
Server = https://mirrors.cqu.edu.cn/archlinux/$repo/os/$arch
Server = http://mirror.lzu.edu.cn/archlinux/$repo/os/$arch
Server = http://mirrors.neusoft.edu.cn/archlinux/$repo/os/$arch
Server = https://mirrors.neusoft.edu.cn/archlinux/$repo/os/$arch
Server = http://mirror.redrock.team/archlinux/$repo/os/$arch
Server = https://mirror.redrock.team/archlinux/$repo/os/$arch
Server = https://mirrors.sjtug.sjtu.edu.cn/archlinux/$repo/os/$arch
Server = http://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch
Server = https://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch
Server = http://mirrors.ustc.edu.cn/archlinux/$repo/os/$arch
Server = https://mirrors.ustc.edu.cn/archlinux/$repo/os/$arch
Server = https://mirrors.xjtu.edu.cn/archlinux/$repo/os/$arch
Server = http://mirrors.zju.edu.cn/archlinux/$repo/os/$arch
##aliyun
Server = http://mirrors.aliyun.com/archlinux/$repo/os/$arch
## sohu
Server = http://mirrors.sohu.com/archlinux/$repo/os/$arch
##tencent
Server = https://mirrors.cloud.tencent.com/archlinux/$repo/os/$arch
## 163
Server = http://mirrors.163.com/archlinux/$repo/os/$arch
#archlinuxCN
Server = https://repo.archlinuxcn.org/$arch
#zejiangUN
Server = https://mirrors.zju.edu.cn/archlinuxcn/$arch
离线
你这配置,怎么把 archlinuxcn 写了这么多遍……然后还没配置 Server = xxx。
离线
1. /etc/pacman.conf: https://pastebin.com/jXZaVzJP
2. /etc/pacman.d/mirrorlist: https://pastebin.com/G0Mur1p2我按照你提供的檔案修改了一下,你自己再照著改罷。
[xyne-any]
SigLevel = Required
Server = http://xyne.archlinux.ca/repos/xyne/
调用外部下载程序时出错
离线
页次: 1