{"id":1267,"date":"2012-06-11T13:11:37","date_gmt":"2012-06-11T13:11:37","guid":{"rendered":"http:\/\/truelogic.org\/wordpress\/?p=1267"},"modified":"2012-06-11T13:11:38","modified_gmt":"2012-06-11T13:11:38","slug":"upgrading-from-freebsd-unix-8-0-to-9-0-with-integrity-error-fix-handled","status":"publish","type":"post","link":"https:\/\/truelogic.org\/wordpress\/2012\/06\/11\/upgrading-from-freebsd-unix-8-0-to-9-0-with-integrity-error-fix-handled\/","title":{"rendered":"Upgrading from FreeBSD Unix 8.0 to 9.0 with &#8216;integrity error&#8217; fix handled"},"content":{"rendered":"<p><a href=\"https:\/\/truelogic.org\/wordpress\/2012\/06\/11\/upgrading-from-freebsd-unix-8-0-to-9-0-with-integrity-error-fix-handled\/freebsd\/\" rel=\"attachment wp-att-1269\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-1269\" title=\"freebsd\" src=\"https:\/\/truelogic.org\/wordpress\/wp-content\/uploads\/2012\/06\/freebsd.jpeg\" alt=\"\" width=\"219\" height=\"231\" \/><\/a>There is a fast and easy way to upgrade your FreeBSD installation to 9.0 latest release candidate. This article assumes you are using 8.0 RELEASE but its quite applicable to older versions also.<\/p>\n<p><strong>Make sure your existing ports are up to date<\/strong><\/p>\n<p><em>sudo portsnap fetch update<\/em><\/p>\n<p><em>sudo portmaster -Da<\/em><\/p>\n<p><strong>Upgrade FreeBSD to 9.0<\/strong><\/p>\n<p><em>sudo freebsd-update upgrade -r 9.0-RELEASE<\/em><\/p>\n<p>If all goes well then FreeBSD will start downloading the metapackages and files. If you are unlucky enough to see the error message:<\/p>\n<pre dir=\"ltr\">The update metadata is correctly signed, but\r\nfailed an integrity check.\r\nCowardly refusing to proceed any further.<\/pre>\n<p>then the solution is to fix the error in freebsd-update package:<\/p>\n<pre>sed -i '' -e 's\/=_\/=%@_\/' \/usr\/sbin\/freebsd-update<\/pre>\n<p>This is recommended in the official release patch list and it is explained as:<\/p>\n<pre>...a minor change must be made to the freebsd-update code in order\r\nfor it to accept file names appearing in FreeBSD 9.0 which contain the '%'\r\nand '@' characters; without this change, freebsd-update will error out\r\nwith the message \"The update metadata is correctly signed, but failed an\r\nintegrity check\".<\/pre>\n<p>After executing the above, run the freebsd-upgrade command again and everything will work.<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>There is a fast and easy way to upgrade your FreeBSD installation to 9.0 latest release candidate. This article assumes you are using 8.0 RELEASE <a class=\"mh-excerpt-more\" href=\"https:\/\/truelogic.org\/wordpress\/2012\/06\/11\/upgrading-from-freebsd-unix-8-0-to-9-0-with-integrity-error-fix-handled\/\" title=\"Upgrading from FreeBSD Unix 8.0 to 9.0 with &#8216;integrity error&#8217; fix handled\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-1267","post","type-post","status-publish","format-standard","hentry","category-freebsd"],"_links":{"self":[{"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/posts\/1267","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/comments?post=1267"}],"version-history":[{"count":8,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/posts\/1267\/revisions"}],"predecessor-version":[{"id":1276,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/posts\/1267\/revisions\/1276"}],"wp:attachment":[{"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/media?parent=1267"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/categories?post=1267"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/tags?post=1267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}