FreeBSD on Raspberry PI,首次运行pkg update出现bootstrap error
su
输入密码:root
首次更新系统:
# pkg update
输入y后,出现如下错误
Certificate verification failed for /CN=pkg.freebsd.org
0020E11B77610000:error:0A000086:SSL routines:tls_post_process_server_certificate:certificate verify failed:/usr/src/crypto/openssl/ssl/statem/statem_clnt.c:1890:
Certificate verification failed for /CN=pkg.freebsd.org
0020E11B77610000:error:0A000086:SSL routines:tls_post_process_server_certificate:certificate verify failed:/usr/src/crypto/openssl/ssl/statem/statem_clnt.c:1890:
Certificate verification failed for /CN=pkg.freebsd.org
0020E11B77610000:error:0A000086:SSL routines:tls_post_process_server_certificate:certificate verify failed:/usr/src/crypto/openssl/ssl/statem/statem_clnt.c:1890:
Certificate verification failed for /CN=pkg.freebsd.org
0020E11B77610000:error:0A000086:SSL routines:tls_post_process_server_certificate:certificate verify failed:/usr/src/crypto/openssl/ssl/statem/statem_clnt.c:1890:
pkg: Error fetching https://pkg.FreeBSD.org/FreeBSD:14:aarch64/quarterly/Latest/pkg.txz: Authentication error
A pre-built version of pkg could not be found for your system.
Consider changing PACKAGESITE or installing it from ports: 'ports-mgmt/pkg'.
排除网络情况后,问题是系统的时间没有校准。
把系统时间更新,问题即解决。
如何调整时间,参见:https://www.cnblogs.com/profesor/p/17949931
参考:https://forums.freebsd.org/threads/pkg-bootstrap-error-in-aarch64-raspberry-pi.94074/