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 😀
Pencarian Terkait: Failed to create bus connection: No such file or directory