LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 891|回复: 6

pacman -Syu出错了。

[复制链接]
发表于 2008-4-18 17:55:50 | 显示全部楼层 |阅读模式
[root@jon opt]# pacman -Syu
:: 正在同步软件包数据库……
[#1 SIZE:24.5KiB/24.5KiB(100%) CN:0]
2008-04-18 17:48:03 NOTICE - Download complete: ./core.db.tar.gz

Download Results:
(OK):download completed.(ERR):error occurred.(INPR):download in-progress.
gid|stat|path/URI
===+====+======================================================================
  1|  OK|./core.db.tar.gz
[#1 SIZE:310.5KiB/310.5KiB(100%) CN:0]
2008-04-18 17:48:14 NOTICE - Download complete: ./extra.db.tar.gz

Download Results:
(OK):download completed.(ERR):error occurred.(INPR):download in-progress.
gid|stat|path/URI
===+====+======================================================================
  1|  OK|./extra.db.tar.gz
[#1 SIZE:334.0KiB/334.0KiB(100%) CN:0]
2008-04-18 17:48:31 NOTICE - Download complete: ./community.db.tar.gz

Download Results:
(OK):download completed.(ERR):error occurred.(INPR):download in-progress.
gid|stat|path/URI
===+====+======================================================================
  1|  OK|./community.db.tar.gz
错误:无法同步archlinuxfr:


为什么无法同步archlinuxfr  这个东西是什么?
发表于 2008-4-18 18:10:00 | 显示全部楼层
1, 你有修改过pacman的配置文件吗?
2, 有换过另一个源试吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-4-18 18:48:17 | 显示全部楼层
Post by zhong;1839714
1, 你有修改过pacman的配置文件吗?
2, 有换过另一个源试吗?


pacman.conf

[root@jon opt]# cat /etc/pacman.conf
#
# /etc/pacman.conf
#
# See the pacman manpage for option 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
HoldPkg     = pacman glibc
XferCommand = /usr/bin/aria2c -s 4 %u
#XferCommand = /usr/bin/axel -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u

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

# Testing is disabled by default.  To enable, uncomment the following
# two 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]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist

[extra]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist

[community]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist

# Unstable is disabled by default.  To enable, uncomment the following
# two lines.  You can add preferred servers immediately after the header,
# and they will be used before the default mirrors.
#[unstable]
#Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#Server = file:///home/custompkgs
[archlinuxfr]
#Server = ftp://mirror.pacific.net.au/linux/archlinux/$repo/os/i686
#Server = http://repo.archlinux.fr/i686



mirrorlist

[root@jon opt]# cat /etc/pacman.d/mirrorlist
Server = http://mirrors.lcuc.org.cn/archlinux/$repo/os/i686
Server = http://mirror.lupaworld.com/archlinux/$repo/os/i686
Server = ftp://mirror.pacific.net.au/linux/archlinux/$repo/os/i686
#Server = http://mirrors.easynews.com/linux/archlinux/$repo/os/i686
#Server = ftp://mirrors.pacific.net.au/linux/archlinux/$repo/os/i686
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-4-18 18:52:37 | 显示全部楼层
谢谢提醒,我已经知道了。3Q
回复 支持 反对

使用道具 举报

发表于 2008-4-27 20:35:10 | 显示全部楼层
Post by bjsm;1839723
谢谢提醒,我已经知道了。3Q


大哥,可不可以将原因贴出来。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-4-28 17:32:03 | 显示全部楼层
Post by zswlb9999;1843199
大哥,可不可以将原因贴出来。



看我的pacman.conf
pacman.conf

[root@jon opt]# cat /etc/pacman.conf
#
# /etc/pacman.conf
#
# See the pacman manpage for option 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
HoldPkg = pacman glibc
XferCommand = /usr/bin/aria2c -s 4 %u
#XferCommand = /usr/bin/axel -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u

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

# Testing is disabled by default. To enable, uncomment the following
# two 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]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist

[extra]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist

[community]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist

# Unstable is disabled by default. To enable, uncomment the following
# two lines. You can add preferred servers immediately after the header,
# and they will be used before the default mirrors.
#[unstable]
#Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository. See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#Server = file:///home/custompkgs
[archlinuxfr]
#Server = ftp://mirror.pacific.net.au/linux/archlinux/$repo/os/i686
#Server = http://repo.archlinux.fr/i686



mirrorlist

[root@jon opt]# cat /etc/pacman.d/mirrorlist
Server = http://mirrors.lcuc.org.cn/archlinux/$repo/os/i686
Server = http://mirror.lupaworld.com/archlinux/$repo/os/i686
Server = ftp://mirror.pacific.net.au/linux/archlinux/$repo/os/i686
#Server = http://mirrors.easynews.com/linux/archlinux/$repo/os/i686
#Server = ftp://mirrors.pacific.net.au/linux/archlinux/$repo/os/i686

注意看
[archlinuxfr]
#Server = ftp://mirror.pacific.net.au/linux/archlinux/$repo/os/i686
#Server = http://repo.archlinux.fr/i686
archlinuxfr前面的#注释去掉了,而Server前面的#没有去掉。所以错误。
回复 支持 反对

使用道具 举报

发表于 2008-4-28 21:52:09 | 显示全部楼层
注意看
[archlinuxfr]
#Server = ftp://mirror.pacific.net.au/linux/archlinux/$repo/os/i686
#Server = http://repo.archlinux.fr/i686
archlinuxfr前面的#注释去掉了,而Server前面的#没有去掉。所以错误。

------------
谢谢。
有问题,解决了又有方法,这就是一个好贴。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表