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/