[求助]初用linux,ping得通,pacman出错

其他Linux/Unix/BSD/OSX等发行版讨论
M.T.
帖子: 19
注册时间: 2009-09-08 18:44

[求助]初用linux,ping得通,pacman出错

#1

帖子 M.T. » 2009-09-08 19:15

第一用linux,下的archlinux刻盘安装。根据wiki的中文教程。
安装完成到系统更新时出现问题。
ping http://www.google.cn
ping http://www.baidu.com
都没有问题,延迟也正常

#pacman -Sy
::Synchronizing package databases..
error:faild to update core (no servers configured for repository)
error:faild to update extra (no servers configured for repository)
error:faild to update community (no servers configured for repository)
error:faild to synchronize any datebases


查找资料多时,无法解决,请各位前辈帮忙。
注:mirrorlist用默认的不行,删除了各源前面的“#”还是不行.....
头像
guiwen1158
帖子: 1078
注册时间: 2008-05-11 11:10
来自: 深圳
联系:

Re: [求助]初用linux,ping得通,pacman出错

#2

帖子 guiwen1158 » 2009-09-08 21:07

配置文件呢?LZ都用了些什么源,帖出来瞧瞧。
头像
注册太麻烦
帖子: 106
注册时间: 2009-09-06 22:52

Re: [求助]初用linux,ping得通,pacman出错

#3

帖子 注册太麻烦 » 2009-09-08 21:22

应该是pacman.conf设置有问题,贴出来看看
人生如梦
头像
gza633
帖子: 799
注册时间: 2009-03-13 14:26

Re: [求助]初用linux,ping得通,pacman出错

#4

帖子 gza633 » 2009-09-08 21:24

看()里的E文提示

不是mirrorlist里的配置有错误 就是pacman.conf有错误

都贴出来瞧瞧
M.T.
帖子: 19
注册时间: 2009-09-08 18:44

Re: [求助]初用linux,ping得通,pacman出错

#5

帖子 M.T. » 2009-09-09 9:46

#nano /etc/pacman.d/mirrorlist

#
# Arch Linux respository mirrorlist
# Generated on 2009--6-16
#
# Xyne-any
#server = http://xyne.archlinux.ca/repos/sny

# Australia(不会在linux里面复制文件,用另外一台本本敲上来的,都是一装上就有都默认源,就不全敲了。)
#server = ftp://mirror.aarnet.edu.au/pub/archlinux/$repo/os/i686
#server = ......
#server = .......
......

# Austria
#server = ftp://gd.tuwien.ac.at/opsys/linux/archl ... po/os/i686
#......
.....

# Belgium
#.....
.....

# Canada
.....

# Chile
.....

# Czech Republic
....

# Denmark
.....

# Estonia
.....

# Finland
.....

# France
.....

# Germany
......

# Great Britain
.....

# Greece
......

# Hungary
.....

# Indinesia
.....

# Ireland
.....

# Israel
.....

# Italy
.....

# Jpan
.....

# Latvia
.....

# Lithuania
.....

# Netherlands
.....

# New Caledonia
.....

# Norway
.....

# Poland
.....
....
....

...........


除了第一条之外全是默认的,没有自己加的....
M.T.
帖子: 19
注册时间: 2009-09-08 18:44

Re: [求助]初用linux,ping得通,pacman出错

#6

帖子 M.T. » 2009-09-09 9:55

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
HoldPkg = pacman glibc
# If upgrades are available for these packages they will be asked for first
SyncFirst = pacman
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#XferCommand = /usr/bin/curl %u > %o
#CleanMethod = KeepInstalled

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg =
#IgnoreGroup =

#NoUpgrade =
#NoExtract =

# Misc options (all disabled by default)
#NoPassiveFtp
#UseSyslog
#ShowSize
#UseDelta
#TotalDownload

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

# An example of a custom package repository. See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#Server = file:///home/custompkgs
M.T.
帖子: 19
注册时间: 2009-09-08 18:44

Re: [求助]初用linux,ping得通,pacman出错

#7

帖子 M.T. » 2009-09-09 9:56

有劳各位前辈了。
rhwood
帖子: 148
注册时间: 2005-08-01 20:45
来自: Shanghai&Beijing

Re: [求助]初用linux,ping得通,pacman出错

#8

帖子 rhwood » 2009-09-09 10:28

在mirrorlist加入

代码: 全选

Server = http://mirrors.163.com/archlinux/archlinux/$repo/os/i686
Server = ftp://cle.linux.org.tw/pub2/Archlinux/$repo/os/i686
头像
tenzu
论坛版主
帖子: 36924
注册时间: 2008-11-21 20:26

Re: [求助]初用linux,ping得通,pacman出错

#9

帖子 tenzu » 2009-09-09 11:26

mirrorlist里选上几个美国的试试?
头像
adagio
论坛版主
帖子: 22110
注册时间: 2008-02-17 23:47
来自: 美丽富饶的那啥星球

Re: [求助]初用linux,ping得通,pacman出错

#10

帖子 adagio » 2009-09-09 11:28

你大爷的,置顶的贴全是白忙活 :em20
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……

---------------------------------------------------------------------------------
[图片版]新手当自强(续)FAQ
[新手进阶]挂载、fstab、调整linux分区
[图片版]E17桌面环境配置手把手
头像
ChloeRei
帖子: 1021
注册时间: 2007-11-23 9:49

Re: [求助]初用linux,ping得通,pacman出错

#11

帖子 ChloeRei » 2009-09-09 12:03

源列表空白(全部被注释了)
头像
注册太麻烦
帖子: 106
注册时间: 2009-09-06 22:52

Re: [求助]初用linux,ping得通,pacman出错

#12

帖子 注册太麻烦 » 2009-09-09 12:09

M.T. 写了:注:mirrorlist用默认的不行,删除了各源前面的“#”还是不行.....
人生如梦
M.T.
帖子: 19
注册时间: 2009-09-08 18:44

Re: [求助]初用linux,ping得通,pacman出错

#13

帖子 M.T. » 2009-09-09 13:10

adagio 写了:你大爷的,置顶的贴全是白忙活 :em20
mirrorlist中的
# Xyne-any
#server = http://xyne.archlinux.ca/repos/sny

就是根据论坛的置顶帖加上去的...
同样没有效果...
去了“#”也一样...

快疯了....
头像
白鳍豚
帖子: 2356
注册时间: 2009-01-19 23:03

Re: [求助]初用linux,ping得通,pacman出错

#14

帖子 白鳍豚 » 2009-09-09 13:57

格式出错
Server非server
头像
白鳍豚
帖子: 2356
注册时间: 2009-01-19 23:03

Re: [求助]初用linux,ping得通,pacman出错

#15

帖子 白鳍豚 » 2009-09-09 13:59

回复