{"id":18573,"date":"2014-11-01T06:06:09","date_gmt":"2014-10-31T22:06:09","guid":{"rendered":"https:\/\/2blog.ilc.edu.tw\/25793\/2014\/11\/01\/%e8%a7%a3%e6%b1%ba-archlinux-%e5%a5%97%e4%bb%b6%e6%9b%b4%e6%96%b0%e6%99%82%e5%87%ba%e7%8f%be%e7%9a%84%e9%8c%af%e8%aa%a4\/"},"modified":"2021-03-18T17:24:09","modified_gmt":"2021-03-18T09:24:09","slug":"%e8%a7%a3%e6%b1%ba-archlinux-%e5%a5%97%e4%bb%b6%e6%9b%b4%e6%96%b0%e6%99%82%e5%87%ba%e7%8f%be%e7%9a%84%e9%8c%af%e8%aa%a4","status":"publish","type":"post","link":"https:\/\/2blog.ilc.edu.tw\/25793\/2014\/11\/01\/%e8%a7%a3%e6%b1%ba-archlinux-%e5%a5%97%e4%bb%b6%e6%9b%b4%e6%96%b0%e6%99%82%e5%87%ba%e7%8f%be%e7%9a%84%e9%8c%af%e8%aa%a4\/","title":{"rendered":"\u89e3\u6c7a ArchLinux \u5957\u4ef6\u66f4\u65b0\u6642\u51fa\u73fe\u7684\u932f\u8aa4"},"content":{"rendered":"<p>\u505a\u5957\u4ef6\u66f4\u65b0\u6642\u51fa\u73fe\u932f\u8aa4<br \/># <span style=\"color: #ff0000\">pacman -Syu<\/span><br \/><span style=\"color: #0000ff\">(28\/28) checking for file conflicts\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [##############################] 100%<\/span><br \/><span style=\"color: #0000ff\">error: failed to commit transaction (conflicting files)<\/span><br \/><span style=\"color: #0000ff\">\/sbin\/ exists in both &#8216;bash&#8217; and &#8216;filesystem&#8217;<\/span><br \/><span style=\"color: #0000ff\">\/lib\/ exists in both &#8216;libldap&#8217; and &#8216;filesystem&#8217;<\/span><br \/><span style=\"color: #0000ff\">\/lib\/ exists in both &#8216;krb5&#8217; and &#8216;filesystem&#8217;<\/span>[@more@]<\/p>\n<p>\u5728\u7db2\u8def\u4e0a\u641c\u5c0b\u4e86\u4e00\u4e0b\uff0c\u627e\u5230\u4e86\u4e0b\u9762\u9019\u4e00\u7bc7\uff1a<br \/><a href=\"http:\/\/unix.stackexchange.com\/questions\/79453\/pacman-syu-fails-bin-exists-in-filesystem\" target=\"_blank\" rel=\"noopener noreferrer\">arch linux &#8211; Pacman -Syu fails `\/bin exists in filesystem` &#8211; Unix &amp; Linux Stack Exchange<\/a><\/p>\n<p>\u5148\u4e0d\u66f4\u65b0 filesystem \u53ca bash \u5957\u4ef6<br \/># <span style=\"color: #ff0000\">pacman -Syu &#8211;ignore filesystem,bash<\/span><\/p>\n<p>\u66f4\u65b0 bash \u5957\u4ef6<br \/># <span style=\"color: #ff0000\">pacman -S bash<\/span><br \/><span style=\"color: #0000ff\">resolving dependencies&#8230;<\/span><br \/><span style=\"color: #0000ff\">looking for inter-conflicts&#8230;<\/span><\/p>\n<p><span style=\"color: #0000ff\">Packages (1): bash-4.3.030-1<\/span><\/p>\n<p><span style=\"color: #0000ff\">Total Installed Size:\u00a0\u00a0 6.38 MiB<\/span><br \/><span style=\"color: #0000ff\">Net Upgrade Size:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0.00 MiB<\/span><\/p>\n<p><span style=\"color: #0000ff\">:: Proceed with installation? [Y\/n] <span style=\"color: #ff0000\">y<\/span><\/span><br \/><span style=\"color: #0000ff\">(1\/1) checking keys in keyring\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [##############################] 100%<\/span><br \/><span style=\"color: #0000ff\">(1\/1) checking package integrity\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [##############################] 100%<\/span><br \/><span style=\"color: #0000ff\">(1\/1) loading package files\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [##############################] 100%<\/span><br \/><span style=\"color: #0000ff\">(1\/1) checking for file conflicts\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [##############################] 100%<\/span><br \/><span style=\"color: #0000ff\">(1\/1) checking available disk space\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [##############################] 100%<\/span><br \/><span style=\"color: #0000ff\">(1\/1) upgrading bash\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [##############################] 100%<\/span><br \/><span style=\"color: #0000ff\">warning: directory permissions differ on \/etc\/<\/span><br \/><span style=\"color: #0000ff\">filesystem: 775\u00a0 package: 755<\/span><\/p>\n<p>\u4f3c\u4e4e\u662f \/etc \u76ee\u9304\u6b0a\u9650\u6709\u554f\u984c\uff0c\u4e0d\u80fd\u66f4\u65b0<\/p>\n<p>\u6aa2\u67e5 \/etc \u76ee\u9304\u6b0a\u9650\uff0c\u76ee\u9304\u6b0a\u9650\u70ba 775<br \/># <span style=\"color: #ff0000\">ls -ld \/etc<\/span><br \/><span style=\"color: #0000ff\"><span style=\"color: #ff0000\">drwxrwxr-x<\/span> 61 1001 1001 4096 Oct 31 11:04 \/etc<\/span><\/p>\n<p>\u66f4\u6539 \/etc \u76ee\u9304\u6b0a\u9650\u70ba 755<br \/># <span style=\"color: #ff0000\">chmod 755 \/etc<\/span><\/p>\n<p>\/etc \u76ee\u9304\u6b0a\u9650\u5df2\u66f4\u6539\u70ba 755<br \/># <span style=\"color: #ff0000\">ls -ld \/etc<\/span><br \/><span style=\"color: #0000ff\"><span style=\"color: #ff0000\">drwxr-xr-x<\/span> 61 1001 1001 4096 Oct 31 11:04 \/etc<\/span><\/p>\n<p>\u518d\u66f4\u65b0\u4e00\u6b21 bash\uff0c\u5c31\u80fd\u6b63\u5e38\u66f4\u65b0\u4e86<br \/># <span style=\"color: #ff0000\">pacman -S bash<\/span><br \/><span style=\"color: #0000ff\">warning: bash-4.3.030-1 is up to date &#8212; reinstalling<\/span><br \/><span style=\"color: #0000ff\">resolving dependencies&#8230;<\/span><br \/><span style=\"color: #0000ff\">looking for inter-conflicts&#8230;<\/span><\/p>\n<p><span style=\"color: #0000ff\">Packages (1): bash-4.3.030-1<\/span><\/p>\n<p><span style=\"color: #0000ff\">Total Installed Size:\u00a0\u00a0 6.38 MiB<\/span><br \/><span style=\"color: #0000ff\">Net Upgrade Size:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0.00 MiB<\/span><\/p>\n<p><span style=\"color: #0000ff\">:: Proceed with installation? [Y\/n] <span style=\"color: #ff0000\">y<\/span><\/span><br \/><span style=\"color: #0000ff\">(1\/1) checking keys in keyring\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [##############################] 100%<\/span><br \/><span style=\"color: #0000ff\">(1\/1) checking package integrity\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [##############################] 100%<\/span><br \/><span style=\"color: #0000ff\">(1\/1) loading package files\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [##############################] 100%<\/span><br \/><span style=\"color: #0000ff\">(1\/1) checking for file conflicts\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [##############################] 100%<\/span><br \/><span style=\"color: #0000ff\">(1\/1) checking available disk space\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [##############################] 100%<\/span><br \/><span style=\"color: #0000ff\">(1\/1) reinstalling bash\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [##############################] 100%<\/span><\/p>\n<p>\u66f4\u65b0\u5269\u4e0b\u7684 filesystem<br \/># <span style=\"color: #ff0000\">pacman -Su<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u505a\u5957\u4ef6\u66f4\u65b0\u6642\u51fa\u73fe\u932f\u8aa4# pacman -Syu(28\/28) checking for file confli &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/2blog.ilc.edu.tw\/25793\/2014\/11\/01\/%e8%a7%a3%e6%b1%ba-archlinux-%e5%a5%97%e4%bb%b6%e6%9b%b4%e6%96%b0%e6%99%82%e5%87%ba%e7%8f%be%e7%9a%84%e9%8c%af%e8%aa%a4\/\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008\u89e3\u6c7a ArchLinux \u5957\u4ef6\u66f4\u65b0\u6642\u51fa\u73fe\u7684\u932f\u8aa4\u3009<\/span><\/a><\/p>\n","protected":false},"author":55,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[167,162],"tags":[],"class_list":["post-18573","post","type-post","status-publish","format-standard","hentry","category-c-84386","category-c-83744"],"meta_key":{"_pingme":["1"],"_encloseme":["1"],"lt_post_id":["528208"]},"_links":{"self":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/18573"}],"collection":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/users\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/comments?post=18573"}],"version-history":[{"count":1,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/18573\/revisions"}],"predecessor-version":[{"id":20202,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/18573\/revisions\/20202"}],"wp:attachment":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/media?parent=18573"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/categories?post=18573"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/tags?post=18573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}