V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
shiweifu
V2EX  ›  Linux

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

  •  
  •   shiweifu ·
    shiweifu · 2012-04-20 17:26:34 +08:00 · 4276 次点击
    这是一个创建于 4600 天前的主题,其中的信息可能已经有所发展或是发生改变。
    今天装的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
    5 条回复    1970-01-01 08:00:00 +08:00
    daliu
        1
    daliu  
       2012-04-20 17:35:18 +08:00
    今日无事可做
    你式net安装?
    shiweifu
        2
    shiweifu  
    OP
       2012-04-20 17:42:56 +08:00
    @daliu 直接下的完整版,以前都是自己装xorg、xfce啥的,这次图方便装了个基于arch的发行版,archbang,装好进桌面,然后就发现无法升级。。悲剧啊
    shiweifu
        3
    shiweifu  
    OP
       2012-04-20 17:45:45 +08:00
    搞定了,把/var/lib/pacman里面的文件删了就能重新更新了。。
    9hills
        4
    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
        5
    shiweifu  
    OP
       2012-04-20 21:18:24 +08:00
    @9hills 谢谢
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   957 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 22:40 · PVG 06:40 · LAX 14:40 · JFK 17:40
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.