gentoo更新报错

  • Running emerge --sync

Syncing repository 'gentoo' into '/var/db/repos/gentoo'...

  • Using keys from /usr/share/openpgp-keys/gentoo-release.asc
  • Refreshing keys via WKD ... [ ok ]

Starting rsync with rsync://[2a00:1828:a00d:ffff::6]/gentoo-portage...
Checking server timestamp ...
rsync: [Receiver] safe_read failed to read 1 bytes: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at io.c(276) [Receiver=3.2.3]
Retrying...

gentoo更新的时候总是报错一个v6地址连不上,后来搜了下发现配置文件在/usr目录下,给替换成国内源就好了

vim /usr/share/portage/config/repos.conf
# 将sync-uri地址换成
sync-uri = rsync://rsync.cn.gentoo.org/gentoo-portage/
posted on 2023-11-14 23:45  ww2000e  阅读(76)  评论(0编辑  收藏  举报