You are not logged in.
Hey guys,
I am new of archlinux using and my pacman has an issue which makes me can not install package through it.
I use strace to trace the 'pacman -Sy'
and I have found that it block at HTTP GET and get in an infinitive loop.
like this:
getsockname(25, {sa_family=AF_NETLINK, pid=1406, groups=00000000}, [12]) = 0
time(NULL) = 1300602645
sendto(25, "\24\0\0\0\26\0\1\3\25\237\205M\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20
recvmsg(25, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"0\0\0\0\24\0\2\0\25\237\205M~\5\0\0\2\10\200\376\1\0\0\0\10\0\1\0\177\0\0\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 108
recvmsg(25, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"@\0\0\0\24\0\2\0\25\237\205M~\5\0\0\n\200\200\376\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 128
recvmsg(25, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0\25\237\205M~\5\0\0\0\0\0\0\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20
close(25) = 0
open("/etc/hosts", O_RDONLY|O_CLOEXEC) = 25
fstat64(25, {st_mode=S_IFREG|0644, st_size=179, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7701000
read(25, "#\n# /etc/hosts: static lookup ta"..., 4096) = 179
read(25, "", 4096) = 0
close(25) = 0
munmap(0xb7701000, 4096) = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 25
connect(25, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.1.1")}, 16) = 0
gettimeofday({1300602645, 714271}, NULL) = 0
poll([{fd=25, events=POLLOUT}], 1, 0) = 1 ([{fd=25, revents=POLLOUT}])
send(25, "\247\246\1\0\0\1\0\0\0\0\0\0\7mirrors\003163\3com\0\0\1\0"..., 33, MSG_NOSIGNAL) = 33
poll([{fd=25, events=POLLIN|POLLOUT}], 1, 5000) = 1 ([{fd=25, revents=POLLOUT}])
send(25, "n\245\1\0\0\1\0\0\0\0\0\0\7mirrors\003163\3com\0\0\34\0"..., 33, MSG_NOSIGNAL) = 33
gettimeofday({1300602645, 720552}, NULL) = 0
poll([{fd=25, events=POLLIN}], 1, 4993) = 1 ([{fd=25, revents=POLLIN}])
ioctl(25, FIONREAD, [65]) = 0
recvfrom(25, "\247\246\201\200\0\1\0\2\0\0\0\0\7mirrors\003163\3com\0\0\1\0"..., 2048, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.1.1")}, [16]) = 65
gettimeofday({1300602645, 753781}, NULL) = 0
poll([{fd=25, events=POLLIN}], 1, 4960) = 1 ([{fd=25, revents=POLLIN}])
ioctl(25, FIONREAD, [88]) = 0
recvfrom(25, "n\245\201\200\0\1\0\0\0\1\0\0\7mirrors\003163\3com\0\0\34\0"..., 1983, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.1.1")}, [16]) = 88
close(25) = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 25
connect(25, {sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("123.58.173.89")}, 16) = 0
getsockname(25, {sa_family=AF_INET, sin_port=htons(38375), sin_addr=inet_addr("10.0.2.15")}, [16]) = 0
connect(25, {sa_family=AF_UNSPEC, sa_data="\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}, 16) = 0
connect(25, {sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("123.58.173.106")}, 16) = 0
getsockname(25, {sa_family=AF_INET, sin_port=htons(34055), sin_addr=inet_addr("10.0.2.15")}, [16]) = 0
close(25) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 25
connect(25, {sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("123.58.173.89")}, 16) = 0
open("/etc/services", O_RDONLY|O_CLOEXEC) = 26
fstat64(26, {st_mode=S_IFREG|0644, st_size=849031, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7701000
read(26, "# See also: services(5), http://"..., 4096) = 4096
read(26, " Unassigned\nrje 5/"..., 4096) = 4096
read(26, "/tcp Unassigned\n# "..., 4096) = 4096
read(26, "as 62/udp # ACA S"..., 4096) = 4096
close(26) = 0
munmap(0xb7701000, 4096) = 0
gettimeofday({1300602645, 835039}, NULL) = 0
gettimeofday({1300602645, 835086}, NULL) = 0
select(26, NULL, [25], NULL, {9, 999953}) = 1 (out [25], left {9, 999947})
send(25, "GET /archlinux/extra/os/i686/ext"..., 55, MSG_NOSIGNAL) = 55
gettimeofday({1300602645, 835459}, NULL) = 0
gettimeofday({1300602645, 835505}, NULL) = 0
select(26, NULL, [25], NULL, {9, 999954}) = 1 (out [25], left {9, 999950})
send(25, "Host: mirrors.163.com\r\n", 23, MSG_NOSIGNAL) = 23
gettimeofday({1300602645, 835702}, NULL) = 0
gettimeofday({1300602645, 835746}, NULL) = 0
select(26, NULL, [25], NULL, {9, 999956}) = 1 (out [25], left {9, 999951})
send(25, "User-Agent: pacman/3.4.3 (Linux "..., 53, MSG_NOSIGNAL) = 53
gettimeofday({1300602645, 836226}, NULL) = 0
gettimeofday({1300602645, 836271}, NULL) = 0
select(26, NULL, [25], NULL, {9, 999955}) = 1 (out [25], left {9, 999951})
send(25, "\r\n", 2, MSG_NOSIGNAL) = 2
setsockopt(25, SOL_TCP, TCP_NODELAY, [1], 4) = 0
gettimeofday({1300602645, 837118}, NULL) = 0
gettimeofday({1300602645, 837207}, NULL) = 0
-------------------------
How can I solve this problem? I don't want to reinstall system...
Last edited by leyley (2011-03-20 06:35:53)
Offline
Please use code tags when pasting output/code.
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
The output of:
pacman -Sy --debug
might be more useful here.
Offline
Found the problem... No resoponse from any HTTP repo... If I use ftp, it is workable but ftp is too slow...
Output:
HTTP resquest sent, awaiting response.
How do I solve it?
Offline
Make sure your mirrors are up-to-date and online. Check the reflector package, there is even a wiki page for it.
never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::
Offline