用 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

This entry was posted in Computer, FreeBSD, Murmuring, Network, OS, Security, Software. Bookmark the permalink.

3 Responses 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 的檔啦

  3. Pingback: 利用 freebsd-update 升級 FreeBSD security patch 安全性 | 小惡魔 - 電腦技術 - 生活日記 - 美食介紹 - AppleBOY

Leave a Reply

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