For two days, I can't use pacman to sync my system, could anyone tell me what's wrong? I can use gftp alike to connect ftp.archlinux.org without any problem:
[root@A /]# pacman -Syu
:: Synchronizing package databases...
getservbyname: No such file or directory
error: cannot connect to ftp.archlinux.org
getservbyname: Illegal seek
error: cannot connect to ftp.oit.unc.edu
Thanks in advance.
Have you upgraded your glibc package lately? Pacman is statically compiled, and if the glibc library changes, pacman usually needs to change (ie, be rebuilt) too.
Try rebuilding pacman from ABS and see if that fixes it.
Oh, I installed glibc-2.3.3- t1 from test repository, maybe the cause. Thank you very much, I will try to compile pacman again when I get home.
Problem is solved by recompilation, thanks so much.