Ubuntu 16.04 hostnamectl Failed to create bus connection: No such file or directory error

Posted on 861 views

Saya mencoba mengganti hostname menggunakan hostnamectl, biasanya lancar lancar saja tidak ada kendala namun tadi ketemu masalah seperti ini :

# hostnamectl set-hostname apink.tkjonline.net
Failed to create bus connection: No such file or directory

Dari error tadi menyatakan bahwa server Ubuntu 16.04 minimalis punya saya tidak dilengkapi dbus, jadi cukup jalankan perintah berikut :

# apt-get install dbus
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
dbus-user-session | dbus-x11
The following NEW packages will be installed:
dbus
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 142 kB of archives.
After this operation, 549 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 dbus amd64 1.10.6-1ubuntu3.3 [142 kB]
Fetched 142 kB in 0s (282 kB/s)
Selecting previously unselected package dbus.
(Reading database ... 26108 files and directories currently installed.)
Preparing to unpack .../dbus_1.10.6-1ubuntu3.3_amd64.deb ...
Unpacking dbus (1.10.6-1ubuntu3.3) ...
Processing triggers for systemd (229-4ubuntu21.1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up dbus (1.10.6-1ubuntu3.3) ...
Processing triggers for systemd (229-4ubuntu21.1) ...

Jika sudah coba dijalankan kembali perintah hostnamectl yang tadi error:

# hostnamectl set-hostname apink.tkjonline.net

Alhamdulillah berjalan tanpa kendala hehe 😀

Artikel Terkait:

  • Failed to create bus connection: No such file or directory (8)
  • failed to create bus connection (2)
  • failed to create bus connection ubuntu (2)
  • hostnamectl failed to create bus connection (1)
  • hostnamectl failed to create bus connection: connection (1)

Gravatar Image
Seorang warga negara Indonesia biasa. Pengguna MAC dan develop server Ubuntu & CentOS. Contact : admin [at] nugi.biz

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.