[arch党求助]pacman无法更新。。求助

2012-04-20 17:26:34 +08:00
 shiweifu
今天装的archbang,结果悲剧了,装好之后无法升级。。
mirrorlist 是默认的全打开
装了好多次arch了,第一次遇到这种情况。。
不知到哪里配置的不对,请大家看看。


[root@archbang pacman.d]# pacman -Syu
:: 正在同步软件包数据库...
core 已经是最新版本
extra 已经是最新版本
community 已经是最新版本
:: 正在进行全面系统更新...
今日无事可做
---------------
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/
HoldPkg = pacman glibc
# If upgrades are available for these packages they will be asked for first
SyncFirst = pacman
#XferCommand = /usr/bin/curl -C - -f %u > %o
#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
#UseDelta
#TotalDownload
CheckSpace
#VerbosePkgLists
ILoveCandy
# PGP signature checking
# NOTE: None of this will work without running `pacman-key --init` first.
# The compiled in default is equivalent to the following line. This requires
# you to locally sign and trust packager keys using `pacman-key` for them to be
# considered valid.
#SigLevel = Optional TrustedOnly
# If you wish to check signatures but avoid local sign and trust issues, use
# the following line. This will treat any key imported into pacman's keyring as
# trusted.
#SigLevel = Optional TrustAll
# For now, off by default unless you read the above.
SigLevel = Never
#
# 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]
#SigLevel = PackageRequired
#Include = /etc/pacman.d/mirrorlist
[core]
#SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist
[extra]
#SigLevel = PackageOptional
Include = /etc/pacman.d/mirrorlist
#[community-testing]
#SigLevel = PackageRequired
#Include = /etc/pacman.d/mirrorlist
[community]
#SigLevel = PackageOptional
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
4290 次点击
所在节点    Linux
5 条回复
daliu
2012-04-20 17:35:18 +08:00
今日无事可做
你式net安装?
shiweifu
2012-04-20 17:42:56 +08:00
@daliu 直接下的完整版,以前都是自己装xorg、xfce啥的,这次图方便装了个基于arch的发行版,archbang,装好进桌面,然后就发现无法升级。。悲剧啊
shiweifu
2012-04-20 17:45:45 +08:00
搞定了,把/var/lib/pacman里面的文件删了就能重新更新了。。
9hills
2012-04-20 18:03:11 +08:00
archbang是去年11月的版本,从去年11月到现在有几次重大升级。。。小心点吧

ArchBang 安装好进系统后要按照此步骤进行升级,否则各种悲剧。。

ArchBang 2011.11 Upgrade Guide:
1. pacman -Syy
2. pacman -S pacman
3. mv /etc/pacman.conf.pacnew /etc/pacman.conf
4. pacman-key --init
5. pacman -S filesystem --force
6. rebuild cairo-ubuntu from AUR and install it.
7. pacman -S librsvg
8. pacman -Syu

其中第6步也可以改为
pacman -S --asdeps freetype2 libxft cairo fontconfig
因为ubuntu系列补丁基本都merge到主干,不需要再打补丁了
shiweifu
2012-04-20 21:18:24 +08:00
@9hills 谢谢

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/32754

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX