LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1071|回复: 13

<网上查了好多方法,还是没有解决>emerge --sync 出现timeout错误

[复制链接]
发表于 2010-10-25 14:24:51 | 显示全部楼层 |阅读模式
错误信息:
(chroot) livecd / # emerge --sync
>>> Starting rsync with rsync://60.191.81.189/gentoo-portage...
>>> Checking server timestamp ...
timed out
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(543) [Receiver=3.0.7]
>>> Retrying...


>>> Starting retry 1 of 3 with rsync://60.191.81.189/gentoo-portage
>>> Checking server timestamp ...
timed out
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(543) [Receiver=3.0.7]
>>> Retrying...


>>> Starting retry 2 of 3 with rsync://60.191.81.189/gentoo-portage
>>> Checking server timestamp ...
timed out
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(543) [Receiver=3.0.7]
>>> Retrying...


>>> Starting retry 3 of 3 with rsync://60.191.81.189/gentoo-portage
>>> Checking server timestamp ...
timed out
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(543) [Receiver=3.0.7]
>>> Exceeded PORTAGE_RSYNC_RETRIES: 3

make.conf中用了
# for portage
#SYNC="rsync://mirrors.xmu.edu.cn/gentoo-portage"

SYNC="rsync://mirrors.163.com/gentoo-portage"

# for distfile
GENTOO_MIRRORS="http://mirrors.xmu.edu.cn/gentoo"

分别试用了 夏大、网易与搜狐的源,都是相同的错误。
ping 网络是正常的:
(chroot) livecd / # ping -c 3 www.baidu.com
PING www.a.shifen.com (119.75.217.56) 56(84) bytes of data.
64 bytes from 119.75.217.56: icmp_req=1 ttl=128 time=28.4 ms
64 bytes from 119.75.217.56: icmp_req=2 ttl=128 time=28.5 ms
64 bytes from 119.75.217.56: icmp_req=3 ttl=128 time=28.0 ms

--- www.a.shifen.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2008ms
rtt min/avg/max/mdev = 28.009/28.350/28.597/0.316 ms
===================================
是出了什么问题?
                                       -----------------------2010.10.26


/*************************************************************/
感谢各位的帮忙。
现在gentoo系统已经装成了,装成是用的“timemars”的方法,先“emerge -pfv gentoo-sources”得到相应的源码文件,将其放入“/usr/portage/distfiles”中,
一路按手册上的步骤,最后安装完成。
这时出现了一个小插曲,就是在安装时,忘了设root密码,重启后不能进入系统,分别用了
1.在kernel一行加入singel
2. init=/bin/bash
3. init=/bin/bash rw
都不起作用,最后 是通过chroot (http://blog.sina.com.cn/s/blog_4 ... tml)修改成功。

在chroot的过程中,发现自己当时不能emerge的原因是没有设置好resovl.conf,然后重新cp /etc/resovl.conf
到chroot的/etc/resovl.conf,在此感谢“kemad”。

以上就是我装gentoo时碰到的问题与解决过程。
发表于 2010-10-25 19:23:37 | 显示全部楼层
同步源只有厦大的有,网易和搜狐都不提供SYNC镜像。
回复 支持 反对

使用道具 举报

发表于 2010-10-25 19:26:26 | 显示全部楼层
看了下网易已经有sync源了,落伍了。。。
回复 支持 反对

使用道具 举报

发表于 2010-10-25 19:29:00 | 显示全部楼层
resovl.conf没有复制到新系统下吧?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-10-25 19:50:27 | 显示全部楼层
已经copy过来了。。

# Generated by dhcpcd from eth0
# /etc/resolv.conf.head can replace this line
search localdomain
nameserver 192.168.224.2
# /etc/resolv.conf.tail can replace this line

60.191.81.189 (网易的源)也是可以ping通的
(chroot) livecd / # ping -c 3 60.191.81.189
PING 60.191.81.189 (60.191.81.189) 56(84) bytes of data.
64 bytes from 60.191.81.189: icmp_req=1 ttl=128 time=11.8 ms
64 bytes from 60.191.81.189: icmp_req=2 ttl=128 time=12.4 ms
64 bytes from 60.191.81.189: icmp_req=3 ttl=128 time=11.2 ms
--- 60.191.81.189 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2012ms
rtt min/avg/max/mdev = 11.248/11.865/12.489/0.514 ms
回复 支持 反对

使用道具 举报

发表于 2010-10-25 20:32:37 | 显示全部楼层
rsync端口被封了?
回复 支持 反对

使用道具 举报

发表于 2010-10-25 20:54:51 | 显示全部楼层
只要能连上163的源,下面这个命令就可以更新
emerge-webrsync
它从163下载snapshot,然后解压,一样的。
回复 支持 反对

使用道具 举报

发表于 2010-10-26 00:51:19 | 显示全部楼层
夏大的distfile我这里也无法同步
so用网易的了
回复 支持 反对

使用道具 举报

发表于 2010-10-26 08:23:19 | 显示全部楼层
Post by druggo;2117241
rsync端口被封了?


我的也不行,我觉得是学校把端口封了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-10-26 09:50:35 | 显示全部楼层
现在到了
安装内核源码
# emerge gentoo-sources
这一步, 没办法emerge, 得不到gentoo-sources,有什么别的方法可以解决?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表