{"id":5880,"date":"2021-09-16T12:17:02","date_gmt":"2021-09-16T03:17:02","guid":{"rendered":"https:\/\/www.xenos.jp\/~zen\/blog2\/?p=5880"},"modified":"2021-09-19T13:43:14","modified_gmt":"2021-09-19T04:43:14","slug":"post-5880","status":"publish","type":"post","link":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/2021\/09\/16\/post-5880\/","title":{"rendered":"FreeBSD\u306e\u30e1\u30b8\u30e3\u30fc\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3067pkg\u304c\u4f7f\u3048\u306a\u304f\u306a\u3063\u305f\u3002"},"content":{"rendered":"\n<p>FreeBSD 12.2 \u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3057\u305f\u5f8c\u3001pkg\u3092\u4f7f\u304a\u3046\u3068\u3057\u305f\u3068\u3053\u308d\u3001\u300clibarchive.so.6\u300d\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u3068\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>root@ray:~ # freebsd-version\n12.2-RELEASE-p10\nroot@ray:~ # pkg update\nld-elf.so.1: Shared object \"libarchive.so.6\" not found, required by \"pkg\"\nroot@ray:~ # pkg\nld-elf.so.1: Shared object \"libarchive.so.6\" not found, required by \"pkg\"\nroot@ray:~ # <\/code><\/pre>\n\n\n\n<p>\u5bfe\u5fdc\u3068\u3057\u3066\u3001`pkg-static install -f pkg ` \u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u66f4\u65b0\uff08\u5f37\u5236\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff09\u3057\u305f\u3002\u3053\u308c\u3067\u3001pkg\u304c\u3064\u304b\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u3067\u3001pkg update , pkg upgrade \u3067\u4ed6\u306e\u6700\u65b0\u306e\u72b6\u614b\u306b\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>root@ray:~ # pkg-static install -f pkg\npkg-static: Warning: Major OS version upgrade detected.  Running \"pkg bootstrap -f\" recommended\nUpdating FreeBSD repository catalogue...\npkg-static: Repository FreeBSD has a wrong packagesite, need to re-create database\nFetching meta.conf: 100%    163 B   0.2kB\/s    00:01    \nFetching packagesite.txz: 100%    6 MiB   6.6MB\/s    00:01    \nProcessing entries: 100%\nFreeBSD repository update completed. 30850 packages processed.\nAll repositories are up to date.\nThe following 1 package(s) will be affected (of 0 checked):\n\nInstalled packages to be REINSTALLED:\n\tpkg-1.16.3 (ABI changed: 'freebsd:11:x86:64' -&gt; 'freebsd:12:x86:64')\n\nNumber of packages to be reinstalled: 1\n\nThe process will require 16 MiB more space.\n7 MiB to be downloaded.\n\nProceed with this action? &#91;y\/N]: y\n&#91;1\/1] Fetching pkg-1.16.3.txz: 100%    7 MiB   7.6MB\/s    00:01    \nChecking integrity... done (0 conflicting)\n&#91;1\/1] Reinstalling pkg-1.16.3...\n&#91;1\/1] Extracting pkg-1.16.3: 100%\nroot@ray:~ # <\/code><\/pre>\n\n\n\n<p><strong>\u53c2\u8003<\/strong> <\/p>\n\n\n\n<p><a href=\"https:\/\/bugs.freebsd.org\/bugzilla\/show_bug.cgi?id=239498\">https:\/\/bugs.freebsd.org\/bugzilla\/show_bug.cgi?id=239498<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>FreeBSD 12.2 \u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3057\u305f\u5f8c\u3001pkg\u3092\u4f7f\u304a\u3046\u3068\u3057\u305f\u3068\u3053\u308d\u3001\u300clibarchive.so.6\u300d\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u3068\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f\u3002 \u5bfe\u5fdc\u3068\u3057\u3066\u3001`pkg-static install -f pkg ` \u3067\u30d1 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[50],"tags":[244],"class_list":["post-5880","post","type-post","status-publish","format-standard","hentry","category-freebsd","tag-freebsd12-2"],"_links":{"self":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/5880","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/comments?post=5880"}],"version-history":[{"count":2,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/5880\/revisions"}],"predecessor-version":[{"id":5904,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/5880\/revisions\/5904"}],"wp:attachment":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/media?parent=5880"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/categories?post=5880"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/tags?post=5880"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}