bjtulug / bjtu-mirror-issues

Handle BJTU mirror issues.
8 stars 0 forks source link

希望新增 FreeBSD pkg/ports/portsnap/update 源 #10

Closed ykla closed 4 years ago

ykla commented 4 years ago

FreeBSD 是一个类 UNIX发行版,目前华为镜像站只镜像了系统下载源。希望与 FreeBSD 官方合作,新增 FreeBSD pkg/ports/portsnap/update 源。目前国内尚无全部可用的源。

USTC PKG镜像脚本:https://github.com/ustclug/ustcmirror-images/blob/master/freebsd-pkg/sync.sh

USTC PORTS镜像脚本:https://github.com/ustclug/ustcmirror-images/blob/master/freebsd-ports/sync-ports.sh

LFTP方式(UPDATE 和 PORTSNAP):

https://github.com/ykla/freebsd-mirrors

chestnutprog commented 4 years ago

使用同步脚本需要对现在系统作较多调整,我先临时添加了几个反代请您测试一下 https://mirror.bjtu.edu.cn/freebsd-portsnap https://mirror.bjtu.edu.cn/freebsd-pkg https://mirror.bjtu.edu.cn/freebsd-update

ykla commented 4 years ago

测试环境 FreeBSD 11.4 RELEASE pkg和portsnap源可以使用。portsnap源会有报错提示: s/_http,_tcp.mirror.bjt bad flag in substitute command f pkg portsnap update源无法使用。 update 另外还缺少ports源:http://distcache.freebsd.org/ports-distfiles/

chestnutprog commented 4 years ago

这个报错应该是DNS没有SRV记录,学校始终没给域名的权限,如果对使用有影响的话可能需要另外买域名了

update源的accesslog我查了一下,全部是HTTP 200,可否提供一些更详细的日志看看问题在什么地方

ports源似乎与pkg源在一起,试试 https://mirror.bjtu.edu.cn/freebsd-pkg/ports-distfiles/

ykla commented 4 years ago

portsnap 实际上无法使用:

root@test:~ # portsnap --debug fetch extract
Looking up mirror.bjtu.edu.cn/freebsd-portsnap mirrors... sed: 1: "s/_http._tcp.mirror.bjt ...": bad flag in substitute command: '/'
none found.
Fetching snapshot tag from mirror.bjtu.edu.cn/freebsd-portsnap... 
latest.ssl                                      0% of  256  B    0  latest.ssl                                             256  B  309 kBps    00s
done.
Fetching snapshot metadata... 
08bccdb53e006bebd1fe33fb1f8fb4ece999bb9a767ed8  0% of  835  B    0  08bccdb53e006bebd1fe33fb1f8fb4ece999bb9a767ed8         835  B 1546 kBps    00s
done.
Updating from Mon Aug  3 08:10:54 CST 2020 to Mon Aug  3 20:43:04 CST 2020.

Processing: 370aa708167225ef426ecf4b9147f59c5fe13ef7a621f3d385328fda2f5970d7 90c8a8119cbee7db83eeea0340e430dd79cf141d2ca193d4b5bfd8db1abProcessing: cc1d986f01bbf508459fcbb2a6ce382a3aeb0e48227d671c0a5528486941f1d3 b8e48a6ff366b7995780a33fd2ee712acccb4bade5c1ff2b1717d5575e3Processing: b616c90f9fe96d6bbc94ce16bc008dd79838154cb6be897fb3d028fa1300062e 39388158d5549fb2570ded1991e7801e50bf32dddd126bafc24b5a53af1Processing: 40531693e161bfce91386151bd3eece7d431a00ab120cb189241fcfb81851183 8c2aad258e2b23546f426fb958f848d79c507c76ad15bcfe3862a4029ca74750 ...
Fetching 4 metadata patches...
/usr/libexec/phttpget mirror.bjtu.edu.cn/freebsd-portsnap tp/370aa708167225ef426ecf4b9147f59c5fe13ef7a621f3d385328fda2f5970d7-90c8a8119cbee7db83eeea0340e430dd79cf141d2ca193d4b5bfd8db1ab3f94a.gz tp/cc1d986f01bbf508459fcbb2a6ce382a3aeb0e48227d671c0a5528486941f1d3-b8e48a6ff366b7995780a33fd2ee712acccb4bade5c1ff2b1717d5575e3e73fc.gz tp/b616c90f9fe96d6bbc94ce16bc008dd79838154cb6be897fb3d028fa1300062e-39388158d5549fb2570ded1991e7801e50bf32dddd126bafc24b5a53af1f1aab.gz tp/40531693e161bfce91386151bd3eece7d431a00ab120cb189241fcfb81851183-8c2aad258e2b23546f426fb958f848d79c507c76ad15bcfe3862a4029ca74750.gz
phttpget: host = mirror.bjtu.edu.cn/freebsd-portsnap, port = http: hostname nor servname provided, or not known
 done.
Applying metadata patches... done.
Fetching 4 metadata files... 
/usr/libexec/phttpget mirror.bjtu.edu.cn/freebsd-portsnap f/90c8a8119cbee7db83eeea0340e430dd79cf141d2ca193d4b5bfd8db1ab3f94a.gz f/b8e48a6ff366b7995780a33fd2ee712acccb4bade5c1ff2b1717d5575e3e73fc.gz f/39388158d5549fb2570ded1991e7801e50bf32dddd126bafc24b5a53af1f1aab.gz f/8c2aad258e2b23546f426fb958f848d79c507c76ad15bcfe3862a4029ca74750.gz
phttpget: host = mirror.bjtu.edu.cn/freebsd-portsnap, port = http: hostname nor servname provided, or not known
Verifying 90c8a8119cbee7db83eeea0340e430dd79cf141d2ca193d4b5bfd8db1ab3f94a... /usr/sbin/portsnap: cannot open 90c8a8119cbee7db83eeea0340e430dd79cf141d2ca193d4b5bfd8db1ab3f94a.gz: No such file or directory
metadata is corrupt.
root@test:~ # rm -rf /var/db/portsnap/*
root@test:~ # portsnap --debug fetch extract
Looking up mirror.bjtu.edu.cn/freebsd-portsnap mirrors... sed: 1: "s/_http._tcp.mirror.bjt ...": bad flag in substitute command: '/'
none found.
pub.ssl                                         0% of  451  B    0  pub.ssl                                                451  B 1314 kBps    00s
done.
Fetching snapshot tag from mirror.bjtu.edu.cn/freebsd-portsnap... 
snapshot.ssl                                    0% of  256  B    0  snapshot.ssl                                           256  B  728 kBps    00s
done.
Fetching snapshot metadata... 
645d87b2258e0f59f115a3f0fa95ff7c11e06c6880ed84  0% of  835  B    0  645d87b2258e0f59f115a3f0fa95ff7c11e06c6880ed84         835  B 1248 kBps    00s
done.
Fetching snapshot generated at Mon Aug  3 08:10:54 CST 2020:
645d87b2258e0f59f115a3f0fa95ff7c11e06c6880ed84  0% of   85 MB    0  645d87b2258e0f59f115a3f0fa95ff7c11e06c6880ed84  0% of   85 MB 1099 k645d87b2258e0f59f115a3f0fa95ff7c11e06c6880ed84  2% of   85 MB 2181 k645d87b2258e0f59f115a3f0fa95ff7c11e06c6880ed84  5% of   85 MB 2268 k645d87b2258e0f59f115a3f0fa95ff7c11e06c6880ed84  8% of   85 MB 2373 k645d87b2258e0f59f115a3f0fa95ff7c11e06c6880ed84 10% of   85 MB 2313 k645d87b2258e0f59f115a3f0fa95ff7c11e06c6880ed84 13% of   85 MB 2233 k645d87b2258e0f59f115a3f0fa95ff7c11e06c6880ed84 15% of   85 MB 2280 k645d87b2258e0f59f115a3f0fa95ff7c11e06c6880ed84 18% of   85 MB 2402 k645d87b2258e0f59f115a3f0fa95ff7c11e06c6880ed84 21% of   85 MB 2430 k645d87b2258e0f59f115a3f0fa95ff7c11e06c6880ed84 27% of   85 MB 5066 k645d87b2258e0f59f115a3f0fa95ff7c11e06c6880ed84 34% of   85 MB 6282 k645d87b2258e0f59f115a3f0fa95ff7c11e06c6880ed84 41% of   85 MB 6609 k645d87b2258e0f59f115a3f0fa95ff7c11e06c6880ed84 49% of   85 MB 6571 k645d87b2258e0f59f115a3f0fa95ff7c11e06c6880ed84 56% of   85 MB 6266 k645d87b2258e0f59f115a3f0fa95ff7c11e06c6880ed84 63% of   85 MB 6220 k645d87b2258e0f59f115a3f0fa95ff7c11e06c6880ed84 70% of   85 MB 6135 k645d87b2258e0f59f115a3f0fa95ff7c11e06c6880ed84 77% of   85 MB 6234 k645d87b2258e0f59f115a3f0fa95ff7c11e06c6880ed84 84% of   85 MB 6083 k645d87b2258e0f59f115a3f0fa95ff7c11e06c6880ed84 92% of   85 MB 6634 kB645d87b2258e0f59f115a3f0fa95ff7c11e06c6880ed84 99% of   85 MB 6885 kB645d87b2258e0f59f115a3f0fa95ff7c11e06c6880ed84          85 MB 4564 kBps    20s
Extracting snapshot... done.
Verifying snapshot integrity... done.
Fetching snapshot tag from mirror.bjtu.edu.cn/freebsd-portsnap... 
latest.ssl                                      0% of  256  B    0  Blatest.ssl                                             256  B 1309 kBps    00s
done.
Fetching snapshot metadata... 
08bccdb53e006bebd1fe33fb1f8fb4ece999bb9a767ed8  0% of  835  B    0  B08bccdb53e006bebd1fe33fb1f8fb4ece999bb9a767ed8         835  B 4248 kBps    00s
done.
Updating from Mon Aug  3 08:10:54 CST 2020 to Mon Aug  3 20:43:04 CST 2020.

Processing: 370aa708167225ef426ecf4b9147f59c5fe13ef7a621f3d385328fda2f5970d7 90c8a8119cbee7db83eeea0340e430dd79cf141d2ca193d4b5bfd8db1ab3fProcessing: cc1d986f01bbf508459fcbb2a6ce382a3aeb0e48227d671c0a5528486941f1d3 b8e48a6ff366b7995780a33fd2ee712acccb4bade5c1ff2b1717d5575e3e7Processing: b616c90f9fe96d6bbc94ce16bc008dd79838154cb6be897fb3d028fa1300062e 39388158d5549fb2570ded1991e7801e50bf32dddd126bafc24b5a53af1f1Processing: 40531693e161bfce91386151bd3eece7d431a00ab120cb189241fcfb81851183 8c2aad258e2b23546f426fb958f848d79c507c76ad15bcfe3862a4029ca74750 ...
Fetching 4 metadata patches...
/usr/libexec/phttpget mirror.bjtu.edu.cn/freebsd-portsnap tp/370aa708167225ef426ecf4b9147f59c5fe13ef7a621f3d385328fda2f5970d7-90c8a8119cbee7db83eeea0340e430dd79cf141d2ca193d4b5bfd8db1ab3f94a.gz tp/cc1d986f01bbf508459fcbb2a6ce382a3aeb0e48227d671c0a5528486941f1d3-b8e48a6ff366b7995780a33fd2ee712acccb4bade5c1ff2b1717d5575e3e73fc.gz tp/b616c90f9fe96d6bbc94ce16bc008dd79838154cb6be897fb3d028fa1300062e-39388158d5549fb2570ded1991e7801e50bf32dddd126bafc24b5a53af1f1aab.gz tp/40531693e161bfce91386151bd3eece7d431a00ab120cb189241fcfb81851183-8c2aad258e2b23546f426fb958f848d79c507c76ad15bcfe3862a4029ca74750.gz
phttpget: host = mirror.bjtu.edu.cn/freebsd-portsnap, port = http: hostname nor servname provided, or not known
 done.
Applying metadata patches... done.
Fetching 4 metadata files... 
/usr/libexec/phttpget mirror.bjtu.edu.cn/freebsd-portsnap f/90c8a8119cbee7db83eeea0340e430dd79cf141d2ca193d4b5bfd8db1ab3f94a.gz f/b8e48a6ff366b7995780a33fd2ee712acccb4bade5c1ff2b1717d5575e3e73fc.gz f/39388158d5549fb2570ded1991e7801e50bf32dddd126bafc24b5a53af1f1aab.gz f/8c2aad258e2b23546f426fb958f848d79c507c76ad15bcfe3862a4029ca74750.gz
phttpget: host = mirror.bjtu.edu.cn/freebsd-portsnap, port = http: hostname nor servname provided, or not known
Verifying 90c8a8119cbee7db83eeea0340e430dd79cf141d2ca193d4b5bfd8db1ab3f94a... /usr/sbin/portsnap: cannot open 90c8a8119cbee7db83eeea0340e430dd79cf141d2ca193d4b5bfd8db1ab3f94a.gz: No such file or directory
metadata is corrupt.
root@test:~ #

freebsd-update 的详细报错:

root@test:~ # freebsd-update --debug fetch
src component not installed, skipped
Looking up mirror.bjtu.edu.cn/freebsd-update mirrors... sed: 1: "s/_http._tcp.mirror.bjt ...": bad flag in substitute command: '/'
none found.
Fetching metadata signature for 11.4-RELEASE from mirror.bjtu.edu.cn/freebsd-update... 
latest.ssl                                      0% of  512  B    0  Blatest.ssl                                             512  B  680 kBps    00s
done.
Fetching metadata index... 
d8946fc74ba6cb6697e91f3dbe587a82e8bf4444be37ec  0% of  225  B    0  Bd8946fc74ba6cb6697e91f3dbe587a82e8bf4444be37ec         225  B  496 kBps    00s
done.
Fetching 2 metadata files... 
/usr/libexec/phttpget mirror.bjtu.edu.cn/freebsd-update 11.4-RELEASE/amd64/m/01106cb157dd31989a0d5f7f30c7e741b964a7e0537bf50aeb698ada5c00eb25.gz 11.4-RELEASE/amd64/m/75ff4d5915cd7fc8248653dbf4f1239be2e719b0f2035e2ddc37ec536b4c7c25.gz
phttpget: host = mirror.bjtu.edu.cn/freebsd-update, port = http: hostname nor servname provided, or not known
failed.
root@test:~ # 
chestnutprog commented 4 years ago

看起来确实和域名有关系

麻烦把mirror_type改成http看看能否work

ykla commented 4 years ago

SERVERNAME=http://mirror.bjtu.edu.cn/freebsd-portsnap这样设置似乎不行:

root@test:~ # portsnap --debug fetch extract
Looking up http://mirror.bjtu.edu.cn/freebsd-portsnap mirrors... sed: 1: "s/_http._tcp.http://mir ...": bad flag in substitute command: 'm'
none found.
Fetching public key from http://mirror.bjtu.edu.cn/freebsd-portsnap... fetch: http://http://mirror.bjtu.edu.cn/freebsd-portsnap/pub.ssl: Internal Server Error
failed.
No mirrors remaining, giving up.
root@test:~ # 

ServerName http://mirror.bjtu.edu.cn/freebsd-update同样地:

root@test:~ # freebsd-update --debug fetch
src component not installed, skipped
Looking up http://mirror.bjtu.edu.cn/freebsd-update mirrors... sed: 1: "s/_http._tcp.http://mir ...": bad flag in substitute command: 'm'
none found.
Fetching metadata signature for 11.4-RELEASE from http://mirror.bjtu.edu.cn/freebsd-update... 
fetch: http://http://mirror.bjtu.edu.cn/freebsd-update/11.4-RELEASE/amd64/latest.ssl: Internal Server Error
failed.
No mirrors remaining, giving up.

This may be because upgrading from this platform (amd64)
or release (11.4-RELEASE) is unsupported by freebsd-update. Only
platforms with Tier 1 support can be upgraded by freebsd-update.
See https://www.freebsd.org/platforms/index.html for more info.

If unsupported, FreeBSD must be upgraded by source.
root@test:~ # 
chestnutprog commented 4 years ago

看起来portsnap必须要SRV记录才能工作,抱歉现在无法修改域名的DNS记录,我稍后再和学校协商一下看看怎么解决 这可能就是为什么ustc没有提供portsnap和update源?

ykla commented 4 years ago

不是很清楚,ustc是说这两个源没有很好的方法镜像下来,不倾向于使用lftp方式镜像。

chestnutprog commented 4 years ago

麻烦测试一下 freebsd-portsnap.mirror.bjtulug.org 和 freebsd-update.mirror.bjtulug.org

ykla commented 4 years ago

portsnap:

root@test:~ # portsnap --debug fetch extract
Looking up freebsd-portsnap.mirror.bjtulug.org mirrors... 1 mirrors found.
Fetching public key from freebsd-portsnap.mirror.bjtulug.org... Certificate verification failed for /CN=bjtulug.org
34374359544:error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed:/usr/src/crypto/openssl/ssl/s3_clnt.c:1269:
fetch: http://freebsd-portsnap.mirror.bjtulug.org/pub.ssl: Authentication error
failed.
No mirrors remaining, giving up.
root@test:~ # 

update:

root@test:~ # freebsd-update --debug fetch
src component not installed, skipped
Looking up freebsd-update.mirror.bjtulug.org mirrors... 1 mirrors found.
Fetching metadata signature for 11.4-RELEASE from freebsd-update.mirror.bjtulug.org... 
Certificate verification failed for /CN=bjtulug.org
34374359544:error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed:/usr/src/crypto/openssl/ssl/s3_clnt.c:1269:
fetch: http://freebsd-update.mirror.bjtulug.org/11.4-RELEASE/amd64/latest.ssl: Authentication error
failed.
No mirrors remaining, giving up.

This may be because upgrading from this platform (amd64)
or release (11.4-RELEASE) is unsupported by freebsd-update. Only
platforms with Tier 1 support can be upgraded by freebsd-update.
See https://www.freebsd.org/platforms/index.html for more info.

If unsupported, FreeBSD must be upgraded by source.
root@test:~ # 

已经安装security/ca_root_nss 和openssl。

chestnutprog commented 4 years ago

已经关闭了https跳转,再试试呢

ykla commented 4 years ago

portsnap 正常使用:

root@test:~ # portsnap --debug fetch extract
Looking up freebsd-portsnap.mirror.bjtulug.org mirrors... 1 mirrors found.
Fetching snapshot tag from freebsd-portsnap.mirror.bjtulug.org... 
snapshot.ssl                                    0% of  256  B    0  Bsnapshot.ssl                                           256  B  440 kBps    00s
done.
Fetching snapshot metadata... 
8df98a7b1332448e38658d38c049bf5b2d7a95a89c0e7f  0% of  835  B    0  B8df98a7b1332448e38658d38c049bf5b2d7a95a89c0e7f         835  B 1126 kBps    00s
done.
Fetching snapshot generated at Wed Aug  5 08:22:15 CST 2020:
8df98a7b1332448e38658d38c049bf5b2d7a95a89c0e7f  0% of   85 MB    0  B8df98a7b1332448e38658d38c049bf5b2d7a95a89c0e7f  0% of   85 MB   83 kB8df98a7b1332448e38658d38c049bf5b2d7a95a89c0e7f  0% of   85 MB  581 kB8df98a7b1332448e38658d38c049bf5b2d7a95a89c0e7f  4% of   85 MB 3664 kB8df98a7b1332448e38658d38c049bf5b2d7a95a89c0e7f 10% of   85 MB 5267 kB8df98a7b1332448e38658d38c049bf5b2d7a95a89c0e7f 15% of   85 MB 4966 kB8df98a7b1332448e38658d38c049bf5b2d7a95a89c0e7f 22% of   85 MB 5703 kB8df98a7b1332448e38658d38c049bf5b2d7a95a89c0e7f 28% of   85 MB 5616 kB8df98a7b1332448e38658d38c049bf5b2d7a95a89c0e7f 34% of   85 MB 4928 kB8df98a7b1332448e38658d38c049bf5b2d7a95a89c0e7f 40% of   85 MB 5245 kB8df98a7b1332448e38658d38c049bf5b2d7a95a89c0e7f 45% of   85 MB 4589 kB8df98a7b1332448e38658d38c049bf5b2d7a95a89c0e7f 51% of   85 MB 5180 kB8df98a7b1332448e38658d38c049bf5b2d7a95a89c0e7f 56% of   85 MB 4500 kB8df98a7b1332448e38658d38c049bf5b2d7a95a89c0e7f 61% of   85 MB 4117 kB8df98a7b1332448e38658d38c049bf5b2d7a95a89c0e7f 66% of   85 MB 5084 kB8df98a7b1332448e38658d38c049bf5b2d7a95a89c0e7f 69% of   85 MB  698 kB8df98a7b1332448e38658d38c049bf5b2d7a95a89c0e7f 70% of   85 MB 5511 kB8df98a7b1332448e38658d38c049bf5b2d7a95a89c0e7f 76% of   85 MB 5130 kB8df98a7b1332448e38658d38c049bf5b2d7a95a89c0e7f 82% of   85 MB 5269 kB8df98a7b1332448e38658d38c049bf5b2d7a95a89c0e7f 88% of   85 MB 5138 kB8df98a7b1332448e38658d38c049bf5b2d7a95a89c0e7f 94% of   85 MB 5639 kB8df98a7b1332448e38658d38c049bf5b2d7a95a89c0e7f          85 MB 4204 kBps    21s
Extracting snapshot... done.
Verifying snapshot integrity... done.
Fetching snapshot tag from freebsd-portsnap.mirror.bjtulug.org... 
latest.ssl                                      0% of  256  B    0  Blatest.ssl                                             256  B  652 kBps    00s
done.
Fetching snapshot metadata... 
7665850b224874348d99d66b3af73ce248f09ee091ed81  0% of  835  B    0  B7665850b224874348d99d66b3af73ce248f09ee091ed81         835  B 6777  B7665850b224874348d99d66b3af73ce248f09ee091ed81         835  B 6769  Bps    01s
done.
Updating from Wed Aug  5 08:22:15 CST 2020 to Wed Aug  5 10:31:04 CST 2020.

Processing: fafaf37c5e9a0cfdec11ef1d9f744cc7ad0bddfb1f5630ef8704956b2bae8388 d83e9b4af1d30ae3303e5a272dacb4ecfd15e0d40939dc6f64e42067ae3eeProcessing: f8e3f50dcce97c339c5a2a44b5658b3ff0077509c28628fea47d8314f13ac9d7 a2226adf57eef10a621e1ce744f3efd17870319efbfb0a3c131264770af59Processing: a719db69083ea1fe2a8e879d7a536db2244d3f46da18b06546040a7435bd309a 4b48289e80612f53bfb825a81d7013b675e3876e919aa83a329ffa8e36d19Processing: 6581bcdab97fe9082f3ba173a59b5dac1706fb54cee7a7389237c1a3c1395124 23a2f6afb3ab1311473e370b7e7fbfd72b335198b27a188d5a07e19f19f06917 ...
Fetching 4 metadata patches...
/usr/libexec/phttpget freebsd-portsnap.mirror.bjtulug.org tp/fafaf37c5e9a0cfdec11ef1d9f744cc7ad0bddfb1f5630ef8704956b2bae8388-d83e9b4af1d30ae3303e5a272dacb4ecfd15e0d40939dc6f64e42067ae3eee3c.gz tp/f8e3f50dcce97c339c5a2a44b5658b3ff0077509c28628fea47d8314f13ac9d7-a2226adf57eef10a621e1ce744f3efd17870319efbfb0a3c131264770af59368.gz tp/a719db69083ea1fe2a8e879d7a536db2244d3f46da18b06546040a7435bd309a-4b48289e80612f53bfb825a81d7013b675e3876e919aa83a329ffa8e36d195e2.gz tp/6581bcdab97fe9082f3ba173a59b5dac1706fb54cee7a7389237c1a3c1395124-23a2f6afb3ab1311473e370b7e7fbfd72b335198b27a188d5a07e19f19f06917.gz
http://freebsd-portsnap.mirror.bjtulug.org/tp/fafaf37c5e9a0cfdec11ef1d9f744cc7ad0bddfb1f5630ef8704956b2bae8388-d83e9b4af1d30ae3303e5a272dacb4ecfd15e0d40939dc6f64e42067ae3eee3c.gz: 200 OK
http://freebsd-portsnap.mirror.bjtulug.org/tp/f8e3f50dcce97c339c5a2a44b5658b3ff0077509c28628fea47d8314f13ac9d7-a2226adf57eef10a621e1ce744f3efd17870319efbfb0a3c131264770af59368.gz: 200 OK
http://freebsd-portsnap.mirror.bjtulug.org/tp/a719db69083ea1fe2a8e879d7a536db2244d3f46da18b06546040a7435bd309a-4b48289e80612f53bfb825a81d7013b675e3876e919aa83a329ffa8e36d195e2.gz: 200 OK
http://freebsd-portsnap.mirror.bjtulug.org/tp/6581bcdab97fe9082f3ba173a59b5dac1706fb54cee7a7389237c1a3c1395124-23a2f6afb3ab1311473e370b7e7fbfd72b335198b27a188d5a07e19f19f06917.gz: 200 OK
 done.
Applying metadata patches... done.
Fetching 0 metadata files... 
done.
Extracting index... Generating list of wanted patches...
Processing: f8ae783f9e6f8dfdec2b2d08f227799b64277ad796ec9377bd3659548f50db18 add8166d0e09aa0dd8b4321d78f78f5514fd869596151a9048f5a738fa37bProcessing: c28876f35b9f9fc2e8600266b57aefb28bd67049c1337a3f7aa1ee952575ea06 4783314e714958c37209d692a8ced02d8080fc037774d4d6898e3c9a0b47dProcessing: 4707884c3e5422a5d7ab21d2dfa7e31022ebc9a2bee1c9f474428e767e66fe64 d0c39c0d4204be345f46beee818c18ac68bbfc04f2af184c4a51554193742Processing: 11f2779fd718a944b77dcdc4173f679eb291bd12e311aab3afbadffddaf70d44 c8cde2cdf9d4e9d8d2467e627ff7c68faef1f3f43a7718a71210e04637245Processing: 4e818958c28715043ae6fc526722f503170080fa06d6ad7ae78f7c242985d3ab 0384bcfb11ea7e2720d4bf63a80c89685dfac03751667d5c2720f8b7692f7Processing: 77e1dde6f261e0c854c0765e68b1d59c355d22b42586e0d384c72b683d212eca b9acca14090211b8a1c19e4423108e023491470b29f5293016198f6e764be324 ...
 done.
Fetching 6 patches...

/usr/libexec/phttpget freebsd-portsnap.mirror.bjtulug.org bp/f8ae783f9e6f8dfdec2b2d08f227799b64277ad796ec9377bd3659548f50db18-add8166d0e09aa0dd8b4321d78f78f5514fd869596151a9048f5a738fa37baca bp/c28876f35b9f9fc2e8600266b57aefb28bd67049c1337a3f7aa1ee952575ea06-4783314e714958c37209d692a8ced02d8080fc037774d4d6898e3c9a0b47dfa4 bp/4707884c3e5422a5d7ab21d2dfa7e31022ebc9a2bee1c9f474428e767e66fe64-d0c39c0d4204be345f46beee818c18ac68bbfc04f2af184c4a51554193742345 bp/11f2779fd718a944b77dcdc4173f679eb291bd12e311aab3afbadffddaf70d44-c8cde2cdf9d4e9d8d2467e627ff7c68faef1f3f43a7718a71210e04637245ceb bp/4e818958c28715043ae6fc526722f503170080fa06d6ad7ae78f7c242985d3ab-0384bcfb11ea7e2720d4bf63a80c89685dfac03751667d5c2720f8b7692f76bc bp/77e1dde6f261e0c854c0765e68b1d59c355d22b42586e0d384c72b683d212eca-b9acca14090211b8a1c19e4423108e023491470b29f5293016198f6e764be324
(0/6) 0.00% http://freebsd-portsnap.mirror.bjtulug.org/bp/f8ae783f9e6f8dfdec2b2d08f227799b64277ad796ec9377bd3659548f50db18-add8166d0e09aa0dd8b4321d78f78f5514fd869596151a9048f5a738fa37baca: 200 OK
http://freebsd-portsnap.mirror.bjtulug.org/bp/c28876f35b9f9fc2e8600266b57aefb28bd67049c1337a3f7aa1ee952575ea06-4783314e714958c37209d692a8ced02d8080fc037774d4d6898e3c9a0b47dfa4: 200 OK
http://freebsd-portsnap.mirror.bjtulug.org/bp/4707884c3e5422a5d7ab21d2dfa7e31022ebc9a2bee1c9f474428e767e66fe64-d0c39c0d4204be345f46beee818c18ac68bbfc04f2af184c4a51554193742345: 200 OK
http://freebsd-portsnap.mirror.bjtulug.org/bp/11f2779fd718a944b77dcdc4173f679eb291bd12e311aab3afbadffddaf70d44-c8cde2cdf9d4e9d8d2467e627ff7c68faef1f3f43a7718a71210e04637245ceb: 200 OK
http://freebsd-portsnap.mirror.bjtulug.org/bp/4e818958c28715043ae6fc526722f503170080fa06d6ad7ae78f7c242985d3ab-0384bcfb11ea7e2720d4bf63a80c89685dfac03751667d5c2720f8b7692f76bc: 200 OK
http://freebsd-portsnap.mirror.bjtulug.org/bp/77e1dde6f261e0c854c0765e68b1d59c355d22b42586e0d384c72b683d212eca-b9acca14090211b8a1c19e4423108e023491470b29f5293016198f6e764be324: 200 OK
(0/6) 0.00%  done.                   
done.
Applying patches... 
  Processing f8ae783f9e6f8dfdec2b2d08f227799b64277ad796ec9377bd3659548f50db18-add8166d0e09aa0dd8b4321d78f78f5514fd869596151a9048f5a738fa37baca...
  Processing c28876f35b9f9fc2e8600266b57aefb28bd67049c1337a3f7aa1ee952575ea06-4783314e714958c37209d692a8ced02d8080fc037774d4d6898e3c9a0b47dfa4...
  Processing 4707884c3e5422a5d7ab21d2dfa7e31022ebc9a2bee1c9f474428e767e66fe64-d0c39c0d4204be345f46beee818c18ac68bbfc04f2af184c4a51554193742345...
  Processing 11f2779fd718a944b77dcdc4173f679eb291bd12e311aab3afbadffddaf70d44-c8cde2cdf9d4e9d8d2467e627ff7c68faef1f3f43a7718a71210e04637245ceb...
  Processing 4e818958c28715043ae6fc526722f503170080fa06d6ad7ae78f7c242985d3ab-0384bcfb11ea7e2720d4bf63a80c89685dfac03751667d5c2720f8b7692f76bc...
  Processing 77e1dde6f261e0c854c0765e68b1d59c355d22b42586e0d384c72b683d212eca-b9acca14090211b8a1c19e4423108e023491470b29f5293016198f6e764be324...
done.
Fetching 0 new ports or files... 
done.
/usr/ports/.arcconfig
/usr/ports/.gitattributes
/usr/ports/.gitauthors
/usr/ports/.gitignore
/usr/ports/.gitmessage
/usr/ports/CHANGES
/usr/ports/CONTRIBUTING.md
/usr/ports/COPYRIGHT
/usr/ports/GIDs
/usr/ports/Keywords/desktop-file-utils.ucl
/usr/ports/Keywords/fc.ucl
……
/usr/ports/x11/yeahconsole/
/usr/ports/x11/yelp/
/usr/ports/x11/zenity/
Building new INDEX files... done.

update正常使用:

root@test:~ # freebsd-update --debug fetch
src component not installed, skipped
Looking up freebsd-update.mirror.bjtulug.org mirrors... 1 mirrors found.
Fetching metadata signature for 11.4-RELEASE from freebsd-update.mirror.bjtulug.org... 
latest.ssl                                      0% of  512  B    0  Blatest.ssl                                             512  B 2006 kBps    00s
done.
Fetching metadata index... 
d8946fc74ba6cb6697e91f3dbe587a82e8bf4444be37ec  0% of  225  B    0  Bd8946fc74ba6cb6697e91f3dbe587a82e8bf4444be37ec         225  B 1602 kBps    00s
done.
Fetching 2 metadata files... 
/usr/libexec/phttpget freebsd-update.mirror.bjtulug.org 11.4-RELEASE/amd64/m/01106cb157dd31989a0d5f7f30c7e741b964a7e0537bf50aeb698ada5c00eb25.gz 11.4-RELEASE/amd64/m/75ff4d5915cd7fc8248653dbf4f1239be2e719b0f2035e2ddc37ec536b4c7c25.gz
http://freebsd-update.mirror.bjtulug.org/11.4-RELEASE/amd64/m/01106cb157dd31989a0d5f7f30c7e741b964a7e0537bf50aeb698ada5c00eb25.gz: 200 OK
http://freebsd-update.mirror.bjtulug.org/11.4-RELEASE/amd64/m/75ff4d5915cd7fc8248653dbf4f1239be2e719b0f2035e2ddc37ec536b4c7c25.gz: 200 OK
done.
Inspecting system... done.
Preparing to download files... done.
Fetching 33 patches...
/usr/libexec/phttpget freebsd-update.mirror.bjtulug.org 11.4-RELEASE/amd64/bp/00ab702e2e41db7e24da6be994d73abc26e48db4ef9fd9309becd8e4807e2113-1833d81ee08f25341bc5d02f82a8ccf71c4e96c0fcdd21a31a00cbfdeaa9c216 11.4-RELEASE/amd64/bp/0e54c39b131c122c5df2817de9e9cd67623517f0a46ca669a3be7ab552d7b538-2205348f766435eaab5229e9eb244370c1bcbf94ee8379c0cde3fb6a74d760d1 11.4-RELEASE/amd64/bp/102aae6f78c10ce85d4e42e54599194e6cc5b03b65b3079d24ddc1e95a569e01-eb71d90b615e2c7f5c377a3da266d589950ab8db9ce9a70a8d3823f3b43895e3 11.4-RELEASE/amd64/bp/1908a56f87828fa7e7818e3d792316638f1223c6a8a72a99b12dcf989adc4fea-0eab219576c963e426850c40e5f73376b498b54a42f5e865355d154c52419f69 11.4-RELEASE/amd64/bp/2bba85b93625441e4760a4a1e4e8ac40580b19ce77492a186fb0e91c21c2bc9d-d2139cdf30bbdb4e4520ce414443ac8740ffe2932954ee50e1e12a87cd445088 11.4-RELEASE/amd64/bp/39e1cff541d94352606d94aa5a9a99f0993a33a9bd3b148ad3576f4be344c855-de2403f8b3341a35071e58cbcd95e683d47292c09f3354aad262e59c16dbe8f2 11.4-RELEASE/amd64/bp/3c746f60768adbadab1696ce87c391905fa8b4cd4238bb97c96a316505228bb4-26d5c82c6dabc595160b346bdad249a2e38281cb28ad6748f970dbdb1474eb67 11.4-RELEASE/amd64/bp/60740b37ac1baca3a777586f700b96b71f47443ba887eede8a0a43ba40f7a8df-f86518b14d8ec09c6a91e60eb01f13ec1248724080e65ec35c320777f6d294ca 11.4-RELEASE/amd64/bp/6397dccf2ea5913c5771c17f73d4bca5abb02d613f4592c355d8e0eff85333e6-f47747ca1a2734bb028564f9a0ddbd09e6a864f5de26017caa36db67bd11d156 11.4-RELEASE/amd64/bp/6dbce558eade84a4c497173594910d201d1ce8d4bd04dc016af5a6e2d91dc8da-febe9de6554e634d2c058ccf81dac88b8db4c9fd6727b4482cf78fc6ef411a45 11.4-RELEASE/amd64/bp/6eb81721dc65aca9f4345ba4e638ac3229512cfcf559c657a13d52ea2d2e6e71-b1127f9384f2d0f8c39701f7cdad21262e4e6a71f27dd5f59f8f73073aa6c936 11.4-RELEASE/amd64/bp/714ba9b54927edccb962d0c3242ecb19920f94de3b05f104a99923470725f3c6-3104645045f7892d8860e71af18aed0359c560b76befd9d9a25be696ab496d4d 11.4-RELEASE/amd64/bp/721dd20bf53a4c5d5fe4215e797274461594edabcc978db1d3559149f1b1549d-c37fdf4f614aef44a5a616cd7d36dd82d4caf83f9052ddbe42b726ba3fe93288 11.4-RELEASE/amd64/bp/7b4bc52153acb9a1b9d52aec4f64b6cb2ed8045630ceca7ec0871299d8ac3277-2c12f93763599790d0f559f7a1264d64842f446810ce0f3d91abc6c34e4b47d4 11.4-RELEASE/amd64/bp/87d1a180de78548da14b32592e1b75670abe2e7d395ad43e9ad9e2c615557653-9ad3a691d78b74404d489c82fd8fd598502556b47905995b304ee1ba8600632f 11.4-RELEASE/amd64/bp/8cd8fe1eac32c562bbacdc6313497c5f226c119248bef447c0a0068f6a510383-ebc026ff1ce299523a0de75e78d146928c9ed634919434c83481317ca0e9c21b 11.4-RELEASE/amd64/bp/8d9811dedd8fac8aabc26134efcc8e60d6bd4848ccc02ca20f00c818d5209f00-41f240267e15569e707c85d32b04f004d5f9fc3d0a1a24c505ba434f4d80ef05 11.4-RELEASE/amd64/bp/8fe028e0a9fadd1e636e9e62cfd1efe8962d5ca383e200e672cffc49b5e6d49a-16d1495f136494371d2ca83f9174def0ec55d0a6551ed5f54e5d06337f76674d 11.4-RELEASE/amd64/bp/926d3375b8fc9b130ecaecf71bf08b79fb86868bce10a49cc0ad2cef0c02820b-79e37006717ca23285b79fb8c11289738e9e0178c90531092e2a184f4c5c6137 11.4-RELEASE/amd64/bp/942c79275d7a0b7386e61fd3aaab4b5fb2bbd5d984d884d90f97d8f452de07d5-50623dea954f26902f77e8c692827b5b87fc6f2ab877d1e5ba9e596a18fbc30f 11.4-RELEASE/amd64/bp/9b45e8552e9639839964c198a0475b5d893390385358e74daa55f20e0425d65a-23062a5aa68713ecd62496ba59f1609292dc30f7b09c33a73f2d1fbdd348ed78 11.4-RELEASE/amd64/bp/9b558704d2329ed283eba8c27d965cc8bf9f7536652b0cabb5a7564e1b9ae623-6c9a6ea573ba8c693d73bf81982e7c486255c330157a7c11a729ef5b5896e696 11.4-RELEASE/amd64/bp/9d628c1232dd5bc11bd28ad98ceb619a52ef1cab448df860f44c0a7b884cf9b5-9772e7fef0cfaabeee368f4b753aba88e25eedd0237d26492f15c338eeda7cf8 11.4-RELEASE/amd64/bp/9d7a9a0e13ac1f6ae3bd17468a3f0d39723f0db37b2e0a5f707b862e1c209efa-beda09dc0e2a6029d11bd45cbd32620f2f93b3a543eb3f32696862514fcac1b2 11.4-RELEASE/amd64/bp/9f479b4479a9415e236c7541cbc5c55825d28f9c6fe95f9616a21758543304b8-f2dfe4e36e78b0dc1544d82ed0f4e5686f995bfcbeabaad799dfc73b7dda9f8a 11.4-RELEASE/amd64/bp/b03e5fce899a2a64c832bc5422538d55415cea0e5fffb2af9c3c209958eba9ae-cf141835f852265b61fa6fc4fe674bc12e5c60b25d056086859ba479cf5a8011 11.4-RELEASE/amd64/bp/b3ed74a882955cf90d8bdcdc2aee9193d220a989bf9d2583e3d8c2f283a67fe2-15e71227a15908f8399944b710b731cce280927babff475dce62f97ece377440 11.4-RELEASE/amd64/bp/c13b8e9186e9c0a6a19ce7cf0846a292a2d8160df40bb0c29c880712a437609e-0c8a531406bb409adc600bafb3b0bc341a6ce88bab2419738b9a9697a5cdc300 11.4-RELEASE/amd64/bp/cfc28108e86f8000b46764b8ef1df8f558f304ed7226cba6201857cf97646524-6f17b6f9b9f8e779f47b3725fd0334ec64f302cb9fb250453c3792e4925fc31f 11.4-RELEASE/amd64/bp/e1c62bfd4598b3c0123f7668e15758eefb8575feeb3808a2d400643732ecef00-b96db31218b3645a90ca6c33f5ce7e26d10d585ca9b371c009c1c3f02491588b 11.4-RELEASE/amd64/bp/eaeed83bcb3b26c8f0943f9f8572da7e4f4c4572be21b52ee8fef16a70e118b0-0b1fd21b08ef53641273176e9de7dcbe1089300d76927e3b0f2376a6185c64b8 11.4-RELEASE/amd64/bp/f01b2a83d5efe8ad9a8d591f8b1a749ac1e32486d2483a44d9a9c852f2343d64-b5db37fbd07319a03d624c5c2c070957ff8ba128d6888dd1d645677ea0d91dec 11.4-RELEASE/amd64/bp/f8a40464b30767564612332e932d524c659ef8fa4147a9454fa93ed37d14292d-b69041924d696ee6bf4e176f859ae0fb48a422a5fa68733f1bdf11a4b8397f37
http://freebsd-update.mirror.bjtulug.org/11.4-RELEASE/amd64/bp/00ab702e2e41db7e24da6be994d73abc26e48db4ef9fd9309becd8e4807e2113-1833d81ee08f25341bc5d02f82a8ccf71c4e96c0fcdd21a31a00cbfdeaa9c216: 200 OK
http://freebsd-update.mirror.bjtulug.org/11.4-RELEASE/amd64/bp/0e54c39b131c122c5df2817de9e9cd67623517f0a46ca669a3be7ab552d7b538-2205348f766435eaab5229e9eb244370c1bcbf94ee8379c0cde3fb6a74d760d1: 200 OK
http://freebsd-update.mirror.bjtulug.org/11.4-RELEASE/amd64/bp/102aae6f78c10ce85d4e42e54599194e6cc5b03b65b3079d24ddc1e95a569e01-eb71d90b615e2c7f5c377a3da266d589950ab8db9ce9a70a8d3823f3b43895e3: 200 OK
http://freebsd-update.mirror.bjtulug.org/11.4-RELEASE/amd64/bp/1908a56f87828fa7e7818e3d792316638f1223c6a8a72a99b12dcf989adc4fea-0eab219576c963e426850c40e5f73376b498b54a42f5e865355d154c52419f69: 200 OK
http://freebsd-update.mirror.bjtulug.org/11.4-RELEASE/amd64/bp/2bba85b93625441e4760a4a1e4e8ac40580b19ce77492a186fb0e91c21c2bc9d-d2139cdf30bbdb4e4520ce414443ac8740ffe2932954ee50e1e12a87cd445088: 200 OK
http://freebsd-update.mirror.bjtulug.org/11.4-RELEASE/amd64/bp/39e1cff541d94352606d94aa5a9a99f0993a33a9bd3b148ad3576f4be344c855-de2403f8b3341a35071e58cbcd95e683d47292c09f3354aad262e59c16dbe8f2: 200 OK
http://freebsd-update.mirror.bjtulug.org/11.4-RELEASE/amd64/bp/3c746f60768adbadab1696ce87c391905fa8b4cd4238bb97c96a316505228bb4-26d5c82c6dabc595160b346bdad249a2e38281cb28ad6748f970dbdb1474eb67: 200 OK
http://freebsd-update.mirror.bjtulug.org/11.4-RELEASE/amd64/bp/60740b37ac1baca3a777586f700b96b71f47443ba887eede8a0a43ba40f7a8df-f86518b14d8ec09c6a91e60eb01f13ec1248724080e65ec35c320777f6d294ca: 200 OK
http://freebsd-update.mirror.bjtulug.org/11.4-RELEASE/amd64/bp/6397dccf2ea5913c5771c17f73d4bca5abb02d613f4592c355d8e0eff85333e6-f47747ca1a2734bb028564f9a0ddbd09e6a864f5de26017caa36db67bd11d156: 200 OK
http://freebsd-update.mirror.bjtulug.org/11.4-RELEASE/amd64/bp/6dbce558eade84a4c497173594910d201d1ce8d4bd04dc016af5a6e2d91dc8da-febe9de6554e634d2c058ccf81dac88b8db4c9fd6727b4482cf78fc6ef411a45: 200 OK
http://freebsd-update.mirror.bjtulug.org/11.4-RELEASE/amd64/bp/6eb81721dc65aca9f4345ba4e638ac3229512cfcf559c657a13d52ea2d2e6e71-b1127f9384f2d0f8c39701f7cdad21262e4e6a71f27dd5f59f8f73073aa6c936: 200 OK
http://freebsd-update.mirror.bjtulug.org/11.4-RELEASE/amd64/bp/714ba9b54927edccb962d0c3242ecb19920f94de3b05f104a99923470725f3c6-3104645045f7892d8860e71af18aed0359c560b76befd9d9a25be696ab496d4d: 200 OK
http://freebsd-update.mirror.bjtulug.org/11.4-RELEASE/amd64/bp/721dd20bf53a4c5d5fe4215e797274461594edabcc978db1d3559149f1b1549d-c37fdf4f614aef44a5a616cd7d36dd82d4caf83f9052ddbe42b726ba3fe93288: 200 OK
http://freebsd-update.mirror.bjtulug.org/11.4-RELEASE/amd64/bp/7b4bc52153acb9a1b9d52aec4f64b6cb2ed8045630ceca7ec0871299d8ac3277-2c12f93763599790d0f559f7a1264d64842f446810ce0f3d91abc6c34e4b47d4: 200 OK
http://freebsd-update.mirror.bjtulug.org/11.4-RELEASE/amd64/bp/87d1a180de78548da14b32592e1b75670abe2e7d395ad43e9ad9e2c615557653-9ad3a691d78b74404d489c82fd8fd598502556b47905995b304ee1ba8600632f: 200 OK
http://freebsd-update.mirror.bjtulug.org/11.4-RELEASE/amd64/bp/8cd8fe1eac32c562bbacdc6313497c5f226c119248bef447c0a0068f6a510383-ebc026ff1ce299523a0de75e78d146928c9ed634919434c83481317ca0e9c21b: 200 OK
http://freebsd-update.mirror.bjtulug.org/11.4-RELEASE/amd64/bp/8d9811dedd8fac8aabc26134efcc8e60d6bd4848ccc02ca20f00c818d5209f00-41f240267e15569e707c85d32b04f004d5f9fc3d0a1a24c505ba434f4d80ef05: 200 OK
http://freebsd-update.mirror.bjtulug.org/11.4-RELEASE/amd64/bp/8fe028e0a9fadd1e636e9e62cfd1efe8962d5ca383e200e672cffc49b5e6d49a-16d1495f136494371d2ca83f9174def0ec55d0a6551ed5f54e5d06337f76674d: 200 OK
http://freebsd-update.mirror.bjtulug.org/11.4-RELEASE/amd64/bp/926d3375b8fc9b130ecaecf71bf08b79fb86868bce10a49cc0ad2cef0c02820b-79e37006717ca23285b79fb8c11289738e9e0178c90531092e2a184f4c5c6137: 200 OK
http://freebsd-update.mirror.bjtulug.org/11.4-RELEASE/amd64/bp/942c79275d7a0b7386e61fd3aaab4b5fb2bbd5d984d884d90f97d8f452de07d5-50623dea954f26902f77e8c692827b5b87fc6f2ab877d1e5ba9e596a18fbc30f: 200 OK
http://freebsd-update.mirror.bjtulug.org/11.4-RELEASE/amd64/bp/9b45e8552e9639839964c198a0475b5d893390385358e74daa55f20e0425d65a-23062a5aa68713ecd62496ba59f1609292dc30f7b09c33a73f2d1fbdd348ed78: 200 OK
http://freebsd-update.mirror.bjtulug.org/11.4-RELEASE/amd64/bp/9b558704d2329ed283eba8c27d965cc8bf9f7536652b0cabb5a7564e1b9ae623-6c9a6ea573ba8c693d73bf81982e7c486255c330157a7c11a729ef5b5896e696: 200 OK
http://freebsd-update.mirror.bjtulug.org/11.4-RELEASE/amd64/bp/9d628c1232dd5bc11bd28ad98ceb619a52ef1cab448df860f44c0a7b884cf9b5-9772e7fef0cfaabeee368f4b753aba88e25eedd0237d26492f15c338eeda7cf8: 200 OK
http://freebsd-update.mirror.bjtulug.org/11.4-RELEASE/amd64/bp/9d7a9a0e13ac1f6ae3bd17468a3f0d39723f0db37b2e0a5f707b862e1c209efa-beda09dc0e2a6029d11bd45cbd32620f2f93b3a543eb3f32696862514fcac1b2: 200 OK
http://freebsd-update.mirror.bjtulug.org/11.4-RELEASE/amd64/bp/9f479b4479a9415e236c7541cbc5c55825d28f9c6fe95f9616a21758543304b8-f2dfe4e36e78b0dc1544d82ed0f4e5686f995bfcbeabaad799dfc73b7dda9f8a: 200 OK
http://freebsd-update.mirror.bjtulug.org/11.4-RELEASE/amd64/bp/b03e5fce899a2a64c832bc5422538d55415cea0e5fffb2af9c3c209958eba9ae-cf141835f852265b61fa6fc4fe674bc12e5c60b25d056086859ba479cf5a8011: 200 OK
http://freebsd-update.mirror.bjtulug.org/11.4-RELEASE/amd64/bp/b3ed74a882955cf90d8bdcdc2aee9193d220a989bf9d2583e3d8c2f283a67fe2-15e71227a15908f8399944b710b731cce280927babff475dce62f97ece377440: 200 OK
http://freebsd-update.mirror.bjtulug.org/11.4-RELEASE/amd64/bp/c13b8e9186e9c0a6a19ce7cf0846a292a2d8160df40bb0c29c880712a437609e-0c8a531406bb409adc600bafb3b0bc341a6ce88bab2419738b9a9697a5cdc300: 200 OK
http://freebsd-update.mirror.bjtulug.org/11.4-RELEASE/amd64/bp/cfc28108e86f8000b46764b8ef1df8f558f304ed7226cba6201857cf97646524-6f17b6f9b9f8e779f47b3725fd0334ec64f302cb9fb250453c3792e4925fc31f: 200 OK
http://freebsd-update.mirror.bjtulug.org/11.4-RELEASE/amd64/bp/e1c62bfd4598b3c0123f7668e15758eefb8575feeb3808a2d400643732ecef00-b96db31218b3645a90ca6c33f5ce7e26d10d585ca9b371c009c1c3f02491588b: 200 OK
http://freebsd-update.mirror.bjtulug.org/11.4-RELEASE/amd64/bp/eaeed83bcb3b26c8f0943f9f8572da7e4f4c4572be21b52ee8fef16a70e118b0-0b1fd21b08ef53641273176e9de7dcbe1089300d76927e3b0f2376a6185c64b8: 200 OK
http://freebsd-update.mirror.bjtulug.org/11.4-RELEASE/amd64/bp/f01b2a83d5efe8ad9a8d591f8b1a749ac1e32486d2483a44d9a9c852f2343d64-b5db37fbd07319a03d624c5c2c070957ff8ba128d6888dd1d645677ea0d91dec: 200 OK
http://freebsd-update.mirror.bjtulug.org/11.4-RELEASE/amd64/bp/f8a40464b30767564612332e932d524c659ef8fa4147a9454fa93ed37d14292d-b69041924d696ee6bf4e176f859ae0fb48a422a5fa68733f1bdf11a4b8397f37: 200 OK
 done.
Applying patches... 
The following files will be updated as part of updating to
11.4-RELEASE-p1:
/bin/freebsd-version
/boot/kernel/kernel
/boot/kernel/mps.ko
/lib/libc.so.7
/libexec/ld-elf.so.1
/libexec/ld-elf32.so.1
/rescue/[
/rescue/atmconfig
/rescue/badsect
/rescue/bectl
/rescue/bsdlabel
/rescue/bunzip2
/rescue/bzcat
/rescue/bzip2
/rescue/camcontrol
/rescue/cat
/rescue/ccdconfig
/rescue/chflags
/rescue/chgrp

使用ports有错误发生:

root@test:~ # cd /usr/ports/
root@test:/usr/ports # whereis x11
x11:
root@test:/usr/ports # whereis xorg
xorg: /usr/ports/x11/xorg
root@test:/usr/ports # cd x11/xorg
root@test:/usr/ports/x11/xorg # make BATCH=yes fetch-recursive
===> Fetching all distfiles for xorg-7.7_3 and dependencies
/!\ WARNING /!\

You have security/openssl installed but do not have
DEFAULT_VERSIONS+=ssl=openssl set in your make.conf

===>   xorg-7.7_3 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by xorg-7.7_3 for building
/!\ WARNING /!\

You have security/openssl installed but do not have
DEFAULT_VERSIONS+=ssl=openssl set in your make.conf

按照提示在make.conf中添加DEFAULT_VERSIONS+=ssl=openssl 后正常使用:

root@test:/usr/ports/x11/xorg # make BATCH=yes fetch-recursive
===> Fetching all distfiles for xorg-7.7_3 and dependencies
===>   xorg-7.7_3 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by xorg-7.7_3 for building
===>  License BSD2CLAUSE accepted by the user
=> freebsd-pkg-1.14.6_GH0.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch https://mirror.bjtu.edu.cn/freebsd-pkg/ports-distfiles/freebsd-pkg-1.14.6_GH0.tar.gz
freebsd-pkg-1.14.6_GH0.tar.gz                   0% of 3326 kB    0  Bfreebsd-pkg-1.14.6_GH0.tar.gz                   8% of 3326 kB  411 kBfreebsd-pkg-1.14.6_GH0.tar.gz                         3326 kB 2170 kBps    01s
===> Fetching all distfiles required by pkg-1.14.6 for building
===>   mesa-dri-19.0.8_9 depends on file: /usr/local/sbin/pkg - found
=> mesa-19.0.8.tar.xz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch https://mirror.bjtu.edu.cn/freebsd-pkg/ports-distfiles/mesa-19.0.8.tar.xz
mesa-19.0.8.tar.xz                              0% of   11 MB    0  Bmesa-19.0.8.tar.xz                              8% of   11 MB 1038 kBmesa-19.0.8.tar.xz                             42% of   11 MB 3876 kBmesa-19.0.8.tar.xz                             70% of   11 MB 3323 kBmesa-19.0.8.tar.xz                                      11 MB 3077 kBps    03s
===> Fetching all distfiles required by mesa-dri-19.0.8_9 for building
===>  License MIT accepted by the user
===>   wayland-protocols-1.20 depends on file: /usr/local/sbin/pkg - found
=> wayland-protocols-1.20.tar.xz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch https://mirror.bjtu.edu.cn/freebsd-pkg/ports-distfiles/wayland-protocols-1.20.tar.xz
……

看起来似乎ports也不应该强制使用https。

chestnutprog commented 4 years ago

嗯嗯 能用就好

ykla commented 4 years ago

能否将mirror.bjtu.edu.cn/freebsd-pkg 和其ports都移动到mirror.bjtulug.org域名下,因为FreeBSD默认是没有安装root域名证书的。直接pkg会导致错误:

root@test:~ # pkg
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y
Bootstrapping pkg from pkg+https://mirror.bjtu.edu.cn/freebsd-pkg/FreeBSD:12:amd64/latest, please wait...
Certificate verification failed for /C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert Global Root CA
34372366336:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:/usr/src/crypto/openssl/ssl/statem/statem_clnt.c:1915:
Certificate verification failed for /C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert Global Root CA
34372366336:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:/usr/src/crypto/openssl/ssl/statem/statem_clnt.c:1915:
Certificate verification failed for /C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert Global Root CA
34372366336:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:/usr/src/crypto/openssl/ssl/statem/statem_clnt.c:1915:
pkg: Error fetching https://mirror.bjtu.edu.cn/freebsd-pkg/FreeBSD:12:amd64/latest/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'.
root@test:~ # 
ykla commented 4 years ago

此外换源方法可以发在这里吗?