问题:系统默认ports源太慢,更新成国内源时出错
portsnap fetch -s portsnap.cn.freebsd.org
提示错误:snapshot appears to have been created more than one day into the future(is the system clock correct?)
系统时区切换就不在说明,老版本通过sysinstall/新版本用bsdconfig设置所在时区,本问记录的是时区正确但系统时间没有同步window时间
记录要点1:更新时间
ntpdate time.windows.com #同步windows时间
完成后输入
date
查看,系统时间已经同步!
记录要点2:更新ports源
vi /etc/portsnap.conf #编辑文件
SERVERNAME=portsnap.cn.FreeBSD.org #更改服务器为国内镜像
portsnap fetch -s portsnap.cn.freebsd.org #安装ports
portsnap fetch extract #下载ports快照
portsnap update #更新
vi /etc/make.conf #编辑文件,添加下面代码 MASTER_SITE_BACKUP?=http://mirrors.163.com/FreeBSD/distfiles/${DIST_SUBDIR}/ MASTER_SITE_OVERRIDE?=${MASTER_SITE_BACKUP}
参考文章:
http://www.osyunwei.com/archives/3020.html
http://www.cnblogs.com/shadowicool/archive/2008/04/22/1165292.html