{"id":1220,"date":"2019-05-08T13:54:50","date_gmt":"2019-05-08T05:54:50","guid":{"rendered":"https:\/\/blog.jsjs.org\/?p=1220"},"modified":"2019-05-08T13:54:50","modified_gmt":"2019-05-08T05:54:50","slug":"%e8%a7%a3%e5%86%b3-failed-to-create-bus-connection-no-such-file-or-directory-%e9%94%99%e8%af%af","status":"publish","type":"post","link":"https:\/\/blog.jsjs.org\/?p=1220","title":{"rendered":"\u89e3\u51b3 failed to create bus connection no such file or directory \u9519\u8bef"},"content":{"rendered":"\n<p>\u4eca\u5929\u5728\u4fee\u6539 hostname \u4f7f\u7528 <code>sudo hostnamectl set-hostname ds<\/code> \u547d\u4ee4\u65f6\u9047\u5230\u95ee\u9898\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Failed to create bus connection: No such file or directory<\/code><\/pre>\n\n\n\n<p>\u67e5\u4e86\u4e00\u901a\u4e4b\u540e\u53d1\u73b0\u7f3a\u5c11 dbus<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install dbus<\/code><\/pre>\n\n\n\n<p>\u5b89\u88c5 dbus \u7136\u540e\u518d\u4fee\u6539\u5373\u53ef\uff0c\u4f7f\u7528 <code>hostnamectl<\/code> \u65b9\u5f0f\u6765\u4fee\u6539 hostname \u4e0d\u9700\u8981\u91cd\u542f\uff0c\u76f4\u63a5\u63a8\u51fa\u767b\u5f55\uff0c\u7136\u540e\u5c31\u53ef\u4ee5\u5b9e\u73b0\u4e86\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>D-Bus \u662f\u4e00\u79cd\u9ad8\u7ea7\u7684\u8fdb\u7a0b\u95f4\u901a\u4fe1\u673a\u5236\uff0c\u5b83\u7531 freedesktop.org \u9879\u76ee\u63d0\u4f9b\uff0c\u4f7f\u7528 GPL \u8bb8\u53ef\u8bc1\u53d1\u884c\u3002D-Bus\n\u6700\u4e3b\u8981\u7684\u7528\u9014\u662f\u5728 Linux \u684c\u9762\u73af\u5883\u4e3a\u8fdb\u7a0b\u63d0\u4f9b\u901a\u4fe1\uff0c\u540c\u65f6\u80fd\u5c06 Linux \u684c\u9762\u73af\u5883\u548c Linux \u5185\u6838\u4e8b\u4ef6\u4f5c\u4e3a\u6d88\u606f\u4f20\u9012\u5230\u8fdb\u7a0b\u3002D-Bus\n\u7684\u4e3b\u8981\u6982\u7387\u4e3a\u603b\u7ebf\uff0c\u6ce8\u518c\u540e\u7684\u8fdb\u7a0b\u53ef\u901a\u8fc7\u603b\u7ebf\u63a5\u6536\u6216\u4f20\u9012\u6d88\u606f\uff0c\u8fdb\u7a0b\u4e5f\u53ef\u6ce8\u518c\u540e\u7b49\u5f85\u5185\u6838\u4e8b\u4ef6\u54cd\u5e94\uff0c\u4f8b\u5982\u7b49\u5f85\u7f51\u7edc\u72b6\u6001\u7684\u8f6c\u53d8\u6216\u8005\u8ba1\u7b97\u673a\u53d1\u51fa\u5173\u673a\u6307\u4ee4\u3002\u76ee\u524d\uff0cD-Bus\n \u5df2\u88ab\u5927\u591a\u6570 Linux \u53d1\u884c\u7248\u6240\u91c7\u7528\uff0c\u5f00\u53d1\u8005\u53ef\u4f7f\u7528 D-Bus \u5b9e\u73b0\u5404\u79cd\u590d\u6742\u7684\u8fdb\u7a0b\u95f4\u901a\u4fe1\u4efb\u52a1\u3002<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u5728\u4fee\u6539 hostname \u4f7f\u7528 sudo hostnamectl set-hostname ds \u547d\u4ee4\u65f6\u9047\u5230\u95ee\u9898\uff1a \u67e5\u4e86\u4e00\u901a\u4e4b\u540e\u53d1\u73b0\u7f3a\u5c11 dbus \u5b89\u88c5 dbus \u7136\u540e\u518d\u4fee\u6539\u5373\u53ef\uff0c\u4f7f\u7528 hostnamectl \u65b9\u5f0f\u6765\u4fee\u6539 hostname \u4e0d\u9700\u8981\u91cd\u542f\uff0c\u76f4\u63a5\u63a8\u51fa\u767b\u5f55\uff0c\u7136\u540e\u5c31\u53ef\u4ee5\u5b9e\u73b0\u4e86\u3002 D-Bus \u662f\u4e00\u79cd\u9ad8\u7ea7\u7684\u8fdb\u7a0b\u95f4\u901a\u4fe1\u673a\u5236\uff0c\u5b83\u7531 freedesktop.org [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1220","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.jsjs.org\/index.php?rest_route=\/wp\/v2\/posts\/1220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.jsjs.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.jsjs.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jsjs.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jsjs.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1220"}],"version-history":[{"count":0,"href":"https:\/\/blog.jsjs.org\/index.php?rest_route=\/wp\/v2\/posts\/1220\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.jsjs.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jsjs.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jsjs.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}