Home » Computer » 用 freebsd-update 將 FreeBSD 7.1-PRERELEASE 升級到 7.1-RELEASE

依照 http://update.freebsd.org/,7.1-PRERELEASE 並不在升級範圍內,所以會出現像這樣的訊息:

$ sudo freebsd-update fetch
Looking up update.FreeBSD.org mirrors... 2 mirrors found.
Fetching public key from update2.FreeBSD.org... failed.
Fetching public key from update1.FreeBSD.org... failed.
No mirrors remaining, giving up.

由於 freebsd-update 是 shell script (有很多 undocument variable 可以調整),依照「"freebsd-update fetch", fetching public key failed.」這篇的點子,有個邪惡的方法可以拐 freebsd-update,讓他認為系統是 7.1-BETA:

env UNAME_r=7.1-BETA freebsd-update upgrade -r 7.1

這個方法可以用看看... 當然,這個方法一定會有一堆問題,如果對 FreeBSD 不熟的人應該會吃鱉 XDDD

3 Replies to “用 freebsd-update 將 FreeBSD 7.1-PRERELEASE 升級到 7.1-RELEASE”

  1. Ken says:


    freebsd-update upgrade -r 7.1-PRERELEASE

  2. wens says:

    沒有 7.1-PRERELEASE 的檔啦

Leave a Reply

Your email address will not be published. Required fields are marked *