您尚未登录。

#1 2020-09-02 16:51:17

dogfox
会员
注册时间: 2016-04-03
帖子: 23

[求助]小半年都没升级了

如图所示,请问怎么办?
8a80d5ad51e0dccc9dcc718557014e231d6925.png

560b8486221fdba1e3bcbbbf598008f668e887.png

离线

#2 2020-09-02 17:07:56

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,432
个人网站

Re: [求助]小半年都没升级了

你的 pacman.conf 写得有问题(具体问题报错说了)。检查一下。

离线

#3 2020-09-08 15:09:17

dogfox
会员
注册时间: 2016-04-03
帖子: 23

Re: [求助]小半年都没升级了

依云 说:

你的 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/

离线

#4 2020-09-08 15:10:24

dogfox
会员
注册时间: 2016-04-03
帖子: 23

Re: [求助]小半年都没升级了

dctxmei 说:

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

离线

#5 2020-09-08 15:32:14

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,432
个人网站

Re: [求助]小半年都没升级了

你这配置,怎么把 archlinuxcn 写了这么多遍……然后还没配置 Server = xxx。

离线

#6 2020-09-08 16:11:59

dogfox
会员
注册时间: 2016-04-03
帖子: 23

Re: [求助]小半年都没升级了

dctxmei 说:

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/

调用外部下载程序时出错

1a5c173eebd6cd6db8c785b0dd2f037840d08a.png

离线

页脚