[求助]初用linux,ping得通,pacman出错
-
- 帖子: 19
- 注册时间: 2009-09-08 18:44
[求助]初用linux,ping得通,pacman出错
第一用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用默认的不行,删除了各源前面的“#”还是不行.....
安装完成到系统更新时出现问题。
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出错
配置文件呢?LZ都用了些什么源,帖出来瞧瞧。
- 注册太麻烦
- 帖子: 106
- 注册时间: 2009-09-06 22:52
- gza633
- 帖子: 799
- 注册时间: 2009-03-13 14:26
Re: [求助]初用linux,ping得通,pacman出错
看()里的E文提示
不是mirrorlist里的配置有错误 就是pacman.conf有错误
都贴出来瞧瞧
不是mirrorlist里的配置有错误 就是pacman.conf有错误
都贴出来瞧瞧
-
- 帖子: 19
- 注册时间: 2009-09-08 18:44
Re: [求助]初用linux,ping得通,pacman出错
#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
.....
....
....
...........
除了第一条之外全是默认的,没有自己加的....
#
# 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
.....
....
....
...........
除了第一条之外全是默认的,没有自己加的....
-
- 帖子: 19
- 注册时间: 2009-09-08 18:44
Re: [求助]初用linux,ping得通,pacman出错
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
#
# /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
-
- 帖子: 19
- 注册时间: 2009-09-08 18:44
Re: [求助]初用linux,ping得通,pacman出错
有劳各位前辈了。
-
- 帖子: 148
- 注册时间: 2005-08-01 20:45
- 来自: Shanghai&Beijing
Re: [求助]初用linux,ping得通,pacman出错
在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
- adagio
- 论坛版主
- 帖子: 22110
- 注册时间: 2008-02-17 23:47
- 来自: 美丽富饶的那啥星球
Re: [求助]初用linux,ping得通,pacman出错
你大爷的,置顶的贴全是白忙活
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……
---------------------------------------------------------------------------------
★ [图片版]新手当自强(续)FAQ
★ [新手进阶]挂载、fstab、调整linux分区
★ [图片版]E17桌面环境配置手把手
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……
---------------------------------------------------------------------------------
★ [图片版]新手当自强(续)FAQ
★ [新手进阶]挂载、fstab、调整linux分区
★ [图片版]E17桌面环境配置手把手
- ChloeRei
- 帖子: 1021
- 注册时间: 2007-11-23 9:49
Re: [求助]初用linux,ping得通,pacman出错
源列表空白(全部被注释了)
- 注册太麻烦
- 帖子: 106
- 注册时间: 2009-09-06 22:52
-
- 帖子: 19
- 注册时间: 2009-09-08 18:44
Re: [求助]初用linux,ping得通,pacman出错
mirrorlist中的adagio 写了:你大爷的,置顶的贴全是白忙活
# Xyne-any
#server = http://xyne.archlinux.ca/repos/sny
就是根据论坛的置顶帖加上去的...
同样没有效果...
去了“#”也一样...
快疯了....
- 白鳍豚
- 帖子: 2356
- 注册时间: 2009-01-19 23:03
Re: [求助]初用linux,ping得通,pacman出错
格式出错
Server非server
Server非server
- 白鳍豚
- 帖子: 2356
- 注册时间: 2009-01-19 23:03
Re: [求助]初用linux,ping得通,pacman出错
[xyne-any]
Server = http://xyne.archlinux.ca/repos/any
Xyne-any
#server = http://xyne.archlinux.ca/repos/sny
Server = http://xyne.archlinux.ca/repos/any
Xyne-any
#server = http://xyne.archlinux.ca/repos/sny