当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 12 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : [已解决]pacman 出问题,不能更新也不能安装软件
帖子发表于 : 2009-05-28 21:39 

注册: 2007-12-13 23:34
帖子: 523
送出感谢: 0 次
接收感谢: 0 次
从2009.02的iso安装的系统,装完可以pacman -Syu,但是更新之后使用pacman就会出现No address record,再也不能更新也不能安装软件了,下了五月最新的iso文件,装完第一次pacman -Syu就会出现no address record

PS:baidu google 都可以ping得通,重装前的系统也出现这样的问题,并且firefox不能浏览外网,但是opera可以。

这个应该怎么解决呢?

今天终于解决这个问题了,看了arch官方论坛 glibc upgrade to 2-10.1-2 breaks dns for some programs 这个帖子,在resolv.conf开头添加options single-request 后就可以更新和安装软件了。

Try "options single-request" in /etc/resolv.conf, this should revert to the old glibc 2.8 behaviour.
In fact, it's a problem with your router or DNS server, not a bug in glibc.


最后由 dongfanglu 编辑于 2009-06-14 22:20,总共编辑了 1 次

页首
 用户资料  
 
2 楼 
 文章标题 : Re: pacman 出问题,不能更新也不能安装软件
帖子发表于 : 2009-05-29 8:18 
头像

注册: 2007-10-19 16:26
帖子: 137
送出感谢: 0 次
接收感谢: 0 次
检查/etc/pacman.d/mirrorlist


_________________
菜鸟的贴你就不顶了吗?!!!
DELL D620
Core2 Duo T5500
1G DDR II 667
i945GM GMA950

AMD 64x2 5200+
GA-MA78GM-S2HP
2G DDR2 800
ATI Radeon HD 3200


页首
 用户资料  
 
3 楼 
 文章标题 : Re: pacman 出问题,不能更新也不能安装软件
帖子发表于 : 2009-05-29 13:36 

注册: 2007-12-13 23:34
帖子: 523
送出感谢: 0 次
接收感谢: 0 次
mirrorlist 很正常


页首
 用户资料  
 
4 楼 
 文章标题 : Re: pacman 出问题,不能更新也不能安装软件
帖子发表于 : 2009-05-29 14:19 
头像

注册: 2007-09-29 3:09
帖子: 5773
送出感谢: 0 次
接收感谢: 3
贴你的源地址吧


_________________
HUNT Unfortunately No Talent...


页首
 用户资料  
 
5 楼 
 文章标题 : Re: pacman 出问题,不能更新也不能安装软件
帖子发表于 : 2009-05-29 15:06 

注册: 2007-12-13 23:34
帖子: 523
送出感谢: 0 次
接收感谢: 0 次
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

[archlinuxfr]
Server = http://repo.archlinux.fr/i686

# KDEmod 4 - latest stable packages
#[kdemod-core]
#Server = http://mirror.rit.edu/kdemod/core/i686

# KDEmod 4 - for any stable extra applications
#[kdemod-extragear]
#Server = http://mirror.rit.edu/kdemod/extragear/i686

#[kdemod-core]
#Server = http://chakra-project.org/repo/core/i686

#[kdemod-extragear]
#Server = http://chakra-project.org/repo/extragear/i686

#[kdemod-playground]
#Server = http://chakra-project.org/repo/playground/i686


#教育网
[kdemod-core]
Server = http://166.111.68.130/archlinux/kdemod/core/i686

[kdemod-extragear]
Server = http://166.111.68.130/archlinux/kdemod/extragear/i686

[kdemod-playground]
Server = http://166.111.68.130/archlinux/kdemod/playground/i686

[kdemod-unstable]
Server = http://166.111.68.130/archlinux/kdemod/unstable/i686

#[kde-svn]
#Server = http://pkg.eth-os.org/kde/svn/i686
#[kde-extra]
#Server = http://pkg.eth-os.org/kde/extra/i686

mirrorlist

#
# Arch Linux repository mirrorlist
# Generated on 2009-04-05
#
Server = http://ftp.sjtu.edu.cn/pub/mirror2/www. ... po/os/i686
Server = http://mirror.lupaworld.com/archlinux/$repo/os/i686
#北京交通大学,教育网
#http://mirror.bjtu.edu.cn/ArchLinux/$repo/os/i686
#兰州大学,教育网
#http://mirror.lzjtu.edu.cn/archlinux/$repo/os/i686
#网易,公网测试中
#http://mirrors.163.com/archlinux/archlinux/$repo/os/i686
#Gooth,电信、教育网
#http://public.gooth.cn/archlinux/$repo/os/i686
# Australia
#Server = ftp://mirror.aarnet.edu.au/pub/archlinux/$repo/os/i686
#Server = http://mirror.aarnet.edu.au/pub/archlinux/$repo/os/i686
#Server = http://ftp.iinet.net.au/pub/archlinux/$repo/os/i686
#Server = ftp://ftp.iinet.net.au/pub/archlinux/$repo/os/i686
#Server = http://mirror.internode.on.net/pub/arch ... po/os/i686
#Server = ftp://mirror.internode.on.net/pub/archl ... po/os/i686
#Server = ftp://mirror.pacific.net.au/linux/archl ... po/os/i686
#Server = http://mirror.pacific.net.au/linux/arch ... po/os/i686

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

# Belgium
#Server = ftp://ftp.belnet.be/packages/archlinux/$repo/os/i686
#Server = http://ftp.belnet.be/mirror/archlinux.org/$repo/os/i686

# Brazil
#Server = ftp://archlinux.c3sl.ufpr.br/archlinux/$repo/os/i686
#Server = http://archlinux.c3sl.ufpr.br/$repo/os/i686
#Server = ftp://ftp.las.ic.unicamp.br/pub/archlinux/$repo/os/i686
#Server = http://www.las.ic.unicamp.br/pub/archli ... po/os/i686

# Bulgaria
#Server = http://archlinux.igor.onlinedirect.bg/$repo/os/i686

# Canada
#Server = ftp://mirror.csclub.uwaterloo.ca/archli ... po/os/i686
#Server = http://mirror.csclub.uwaterloo.ca/archl ... po/os/i686
#Server = http://mirrors.portafixe.com/archlinux/$repo/os/i686
#Server = ftp://mirrors.portafixe.com/archlinux/$repo/os/i686

# Chile
#Server = ftp://mirror.archlinux.cl/$repo/os/i686

# Czech Republic
#Server = ftp://ftp.sh.cvut.cz/MIRRORS/arch/$repo/os/i686
#Server = http://ftp.sh.cvut.cz/MIRRORS/arch/$repo/os/i686

# Denmark
#Server = ftp://ftp.klid.dk/archlinux/$repo/os/i686

# Estonia
#Server = ftp://ftp.estpak.ee/pub/archlinux/$repo/os/i686
#Server = http://ftp.estpak.ee/pub/archlinux/$repo/os/i686

# France
#Server = http://mir.archlinux.fr/$repo/os/i686
#Server = ftp://mir2.archlinuxfr.org/archlinux/$repo/os/i686
#Server = http://mir2.archlinuxfr.org/archlinux/$repo/os/i686
#Server = ftp://mir1.archlinuxfr.org/archlinux/$repo/os/i686
#Server = http://mir1.archlinuxfr.org/archlinux/$repo/os/i686
#Server = ftp://distrib-coffee.ipsl.jussieu.fr/pu ... po/os/i686
#Server = http://distrib-coffee.ipsl.jussieu.fr/p ... po/os/i686
#Server = ftp://ftp.free.fr/mirrors/ftp.archlinux ... po/os/i686
#Server = ftp://ftp.rez-gif.supelec.fr/Linux/arch ... po/os/i686

# Germany
#Server = ftp://ftp.archlinuxppc.org/i686/$repo/os/i686
#Server = http://ftp5.gwdg.de/pub/linux/archlinux/$repo/os/i686
#Server = ftp://ftp5.gwdg.de/pub/linux/archlinux/$repo/os/i686
#Server = ftp://ftp.hosteurope.de/mirror/ftp.arch ... po/os/i686
#Server = http://ftp.hosteurope.de/mirror/ftp.arc ... po/os/i686
#Server = ftp://ftp-stud.hs-esslingen.de/pub/Mirr ... po/os/i686
#Server = http://ftp-stud.hs-esslingen.de/pub/Mir ... po/os/i686
#Server = ftp://mirrors.igprolin-online.org/archl ... po/os/i686
#Server = ftp://ftp.spline.inf.fu-berlin.de/mirro ... po/os/i686
#Server = http://ftp.spline.inf.fu-berlin.de/mirr ... po/os/i686
#Server = ftp://ftp.tu-chemnitz.de/pub/linux/arch ... po/os/i686
#Server = http://ftp.tu-chemnitz.de/pub/linux/arc ... po/os/i686
#Server = ftp://ftp.uni-bayreuth.de/pub/linux/arc ... po/os/i686
#Server = http://ftp.uni-bayreuth.de/linux/archli ... po/os/i686
#Server = ftp://ftp.uni-kl.de/pub/linux/archlinux/$repo/os/i686
#Server = http://ftp.uni-kl.de/pub/linux/archlinux/$repo/os/i686
#Server = ftp://ftp.wh-stuttgart.net/archlinux/$repo/os/i686

# Great Britain
#Server = ftp://mirror.lividpenguin.com/pub/archl ... po/os/i686
#Server = http://mirror.lividpenguin.com/pub/arch ... po/os/i686
#Server = http://www.mirrorservice.org/sites/ftp. ... po/os/i686
#Server = ftp://mirrors.uk2.net/pub/archlinux/$repo/os/i686
#Server = http://archlinux.mirrors.uk2.net/$repo/os/i686

# Greece
#Server = ftp://ftp.ntua.gr/pub/linux/archlinux/$repo/os/i686
#Server = http://ftp.ntua.gr/pub/linux/archlinux/$repo/os/i686

# Hungary
#Server = ftp://ftp.mfa.kfki.hu/pub/mirrors/ftp.a ... po/os/i686

# Indonesia
#Server = http://archlinux.cbn.net.id/$repo/os/i686
#Server = ftp://archlinux.cbn.net.id/pub/archlinux/$repo/os/i686
#Server = ftp://mirror.unej.ac.id/archlinux/$repo/os/i686
#Server = http://mirror.unej.ac.id/archlinux/$repo/os/i686

# Ireland
#Server = http://ftp.heanet.ie/mirrors/ftp.archli ... po/os/i686
#Server = ftp://ftp.heanet.ie/mirrors/ftp.archlin ... po/os/i686

# Israel
#Server = http://mirror.isoc.org.il/pub/archlinux/$repo/os/i686

# Italy
#Server = http://mi.mirror.garr.it/mirrors/archli ... po/os/i686
#Server = ftp://mi.mirror.garr.it/mirrors/archlinux/$repo/os/i686

# Lithuania
#Server = ftp://atviras.lt/archmirror/$repo/os/i686
#Server = http://atviras.lt/archmirror/$repo/os/i686

# Netherlands
#Server = http://ftp.nluug.nl/pub/metalab/distrib ... po/os/i686
#Server = ftp://ftp.nluug.nl/pub/metalab/distribu ... po/os/i686
#Server = http://ftp.surfnet.nl/pub/os/Linux/dist ... po/os/i686
#Server = ftp://ftp.surfnet.nl/pub/os/Linux/distr ... po/os/i686

# Norway
#Server = ftp://mirror.archlinux.no/$repo/os/i686
#Server = http://mirror.archlinux.no/$repo/os/i686
#Server = http://jane.tihlde.org/pub/archlinux/$repo/os/i686
#Server = ftp://jane.tihlde.org/pub/archlinux/$repo/os/i686

# Poland
#Server = ftp://mirror.icis.pcz.pl/archlinux/$repo/os/i686
#Server = ftp://ftp.piotrkosoft.net/pub/mirrors/f ... po/os/i686
#Server = http://piotrkosoft.net/pub/mirrors/ftp. ... po/os/i686
#Server = http://unix.net.pl/archlinux.org/$repo/os/i686

# Portugal
#Server = http://cesium.di.uminho.pt/pub/archlinux/$repo/os/i686
#Server = ftp://cesium.di.uminho.pt/pub/archlinux/$repo/os/i686
#Server = http://darkstar.ist.utl.pt/archlinux/$repo/os/i686
#Server = http://ftp.nux.ipb.pt/pub/dists/archlinux/$repo/os/i686
#Server = ftp://ftp.nux.ipb.pt/pub/dists/archlinux/$repo/os/i686

# Romania
#Server = http://ftp.iasi.roedu.net/mirrors/archl ... po/os/i686
#Server = ftp://ftp.iasi.roedu.net/mirrors/archli ... po/os/i686

# Russia
#Server = http://archlinux.freeside.ru/$repo/os/i686
#Server = ftp://mirror.yandex.ru/archlinux/$repo/os/i686
#Server = http://mirror.yandex.ru/archlinux/$repo/os/i686

# Sweden
#Server = ftp://ftp.ds.hj.se/pub/os/linux/archlinux/$repo/os/i686
#Server = http://ftp.ds.hj.se/pub/os/linux/archli ... po/os/i686
#Server = http://ftp.gigabit.nu/$repo/os/i686
#Server = ftp://ftp.gigabit.nu/$repo/os/i686

# Switzerland
#Server = http://archlinux.puzzle.ch/$repo/os/i686
#Server = ftp://archlinux.puzzle.ch/$repo/os/i686

# Turkey
#Server = ftp://ftp.linux.org.tr/pub/archlinux/$repo/os/i686

# Ukraine
#Server = http://archlinux.hell.org.ua/archlinux/$repo/os/i686
#Server = ftp://archlinux.hell.org.ua/archlinux/$repo/os/i686
#Server = ftp://ftp.linux.kiev.ua/pub/Linux/ArchL ... po/os/i686
#Server = http://ftp.linux.kiev.ua/pub/Linux/Arch ... po/os/i686

# United States
#Server = http://mirror.archlinux.com.ve/$repo/os/i686
#Server = http://archlinux.unixheads.org/$repo/os/i686
#Server = ftp://mirror.cs.vt.edu/pub/ArchLinux/$repo/os/i686
#Server = http://mirror.cs.vt.edu/pub/ArchLinux/$repo/os/i686
#Server = ftp://mirrors.easynews.com/linux/archli ... po/os/i686
#Server = http://mirrors.easynews.com/linux/archl ... po/os/i686
#Server = http://mirrors.gigenet.com/archlinux/$repo/os/i686
#Server = http://www.gtlib.gatech.edu/pub/linux/d ... po/os/i686
#Server = ftp://ftp.gtlib.gatech.edu/pub/linux/di ... po/os/i686
#Server = http://mirrors.hosef.org/archlinux/$repo/os/i686
#Server = ftp://mirrors.hosef.org/archlinux/$repo/os/i686
#Server = http://distro.ibiblio.org/pub/linux/dis ... po/os/i686
#Server = ftp://ibiblio.org/pub/linux/distributio ... po/os/i686
#Server = ftp://locke.suu.edu/linux/dist/archlinux/$repo/os/i686
#Server = ftp://mirror.rit.edu/archlinux/$repo/os/i686
#Server = http://mirror.rit.edu/archlinux/$repo/os/i686
#Server = http://schlunix.org/archlinux/$repo/os/i686
#Server = http://archlinux.umflint.edu/$repo/os/i686
#Server = http://mirror.umoss.org/archlinux/$repo/os/i686

# Venezuela
#Server = http://mirror2.archlinux.com.ve/$repo/os/i686

# Vietnam
#Server = ftp://ftp.indochinalinux.com/archlinux/$repo/os/i686
#Server = ftp://202.78.230.5/archlinux/$repo/os/i686
#Server = ftp://mirror-fpt-telecom.fpt.net/archli ... po/os/i686
#Server = http://mirror-fpt-telecom.fpt.net/archl ... po/os/i686

楼上帮忙看看


页首
 用户资料  
 
6 楼 
 文章标题 : Re: pacman 出问题,不能更新也不能安装软件
帖子发表于 : 2009-05-29 15:21 

注册: 2007-12-13 23:34
帖子: 523
送出感谢: 0 次
接收感谢: 0 次
刚才用shaman安装了软件,没想到它自己自动更新,现在pacman又不能用了,pacman -Syu的错误提示如下:
[zzd@KArch etc]$ sudo pacman -Syu
密码:
:: 正在同步软件包数据库...
错误:无法从 ftp.sjtu.edu.cn : No address record 获取文件 'core.db.tar.gz'
错误:无法从 mirror.lupaworld.com : No address record 获取文件 'core.db.tar.gz'
错误:无法升级 core (No address record)
错误:无法从 ftp.sjtu.edu.cn : No address record 获取文件 'extra.db.tar.gz'
错误:无法从 mirror.lupaworld.com : No address record 获取文件 'extra.db.tar.gz'
错误:无法升级 extra (No address record)
错误:无法从 ftp.sjtu.edu.cn : No address record 获取文件 'community.db.tar.gz'
错误:无法从 mirror.lupaworld.com : No address record 获取文件 'community.db.tar.gz'
错误:无法升级 community (No address record)
错误:无法从 repo.archlinux.fr : No address record 获取文件 'archlinuxfr.db.tar.gz'
错误:无法升级 archlinuxfr (No address record)
kdemod-core 已经是最新版本
kdemod-extragear 已经是最新版本
kdemod-playground 已经是最新版本
kdemod-unstable 已经是最新版本
:: 正在进行全面系统更新...


页首
 用户资料  
 
7 楼 
 文章标题 : Re: pacman 出问题,不能更新也不能安装软件
帖子发表于 : 2009-05-29 15:28 
头像

注册: 2007-09-29 3:09
帖子: 5773
送出感谢: 0 次
接收感谢: 3
国内那两个是源的问题
自己用浏览器打开就知道了...=.=
fr那个我也不知道为什么不行,浏览器打开确实有archlinuxfr.db.tar.gz的,不过我没用过这个源


_________________
HUNT Unfortunately No Talent...


页首
 用户资料  
 
8 楼 
 文章标题 : Re: pacman 出问题,不能更新也不能安装软件
帖子发表于 : 2009-05-29 15:38 

注册: 2007-12-13 23:34
帖子: 523
送出感谢: 0 次
接收感谢: 0 次
源是没有问题的,因为更新前可以用,更新后才出现问题,而且我用opera可以打开,但是很奇怪firefox却不能打开,很苦恼


页首
 用户资料  
 
9 楼 
 文章标题 : Re: pacman 出问题,不能更新也不能安装软件
帖子发表于 : 2009-05-30 16:11 
头像

注册: 2007-04-28 15:14
帖子: 1143
系统: NixOS+虚拟机各种系统
送出感谢: 0 次
接收感谢: 3
更新后你的mirrorlist全部被注释掉了哦!只剩国内两个,如果国内两个也连不上,就完全无法更新了。
把mirrorlist里面几个有用的取消注释吧。


_________________
黑色的不是眼睛,而是眼圈
关注和实现科技领域未来3年内有大规模普及潜力、能改善穷人生活品质的技术/应用。
皓龙双路 + NixOS + openbox + qemu/spice 爱编 + 藏噶+蒙文输入法+3d打印管理+激光雕刻


页首
 用户资料  
 
10 楼 
 文章标题 : Re: pacman 出问题,不能更新也不能安装软件
帖子发表于 : 2009-05-30 16:52 

注册: 2007-12-13 23:34
帖子: 523
送出感谢: 0 次
接收感谢: 0 次
jobinson99 写道:
更新后你的mirrorlist全部被注释掉了哦!只剩国内两个,如果国内两个也连不上,就完全无法更新了。
把mirrorlist里面几个有用的取消注释吧。

国内的源是正常的,可以用。更新前我的mirrorlist就只有两个国内源,其他都被我注释掉了,更新后mirrorlist没有变化的。
我从网上查了很多资料,第一次认为是系统问题,重装,更新后又出现pacman 提示no address record,后来以为是ipv6 的问题,禁用了ipv6,发现firefox可以用了,但是pacman的问题依旧;现在认为可能是glibc升级造成的,不知道怎么解决了。


页首
 用户资料  
 
11 楼 
 文章标题 : Re: pacman 出问题,不能更新也不能安装软件
帖子发表于 : 2009-05-30 18:31 
头像

注册: 2007-09-29 3:09
帖子: 5773
送出感谢: 0 次
接收感谢: 3
国内两个源我点击了进去都是404 not found
正常?


_________________
HUNT Unfortunately No Talent...


页首
 用户资料  
 
12 楼 
 文章标题 : Re: pacman 出问题,不能更新也不能安装软件
帖子发表于 : 2009-05-31 1:25 

注册: 2007-12-13 23:34
帖子: 523
送出感谢: 0 次
接收感谢: 0 次
我这里正常啊,用opera firefox都可以打开的,我的是教育网


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 12 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 3 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译