[FreeBSD] portsnap 錯誤

最近更新常常出現下面的錯誤訊息:

Looking up portsnap.tw.FreeBSD.org mirrors... none found.
Fetching public key from portsnap.tw.FreeBSD.org... done.
Fetching snapshot tag from portsnap.tw.FreeBSD.org... done.
Fetching snapshot metadata... fetch: http://portsnap.tw.FreeBSD.org/t/cbd6adc2e4cea3d29c1bbc668cf0204bfe1d6131ac53a862d1111745a47d1cc2: No route to host
sha256: cbd6adc2e4cea3d29c1bbc668cf0204bfe1d6131ac53a862d1111745a47d1cc2: No such file or directory
[: !=: unexpected operator
mv: rename cbd6adc2e4cea3d29c1bbc668cf0204bfe1d6131ac53a862d1111745a47d1cc2 to tINDEX.new: No such file or directory
done.
grep: tINDEX.new: No such file or directory
look: tINDEX.new: No such file or directory

Portsnap metadata appears bogus.
Cowardly refusing to proceed any further.
No snapshot available.  Try running
# portsnap fetch


解決方式如下:

#rm -Rf /var/db/portsnap/
#mkdir /var/db/portsnap
#portsnap fetch update && portversion -l "<"

發表迴響