LoginSignup
1
1

More than 3 years have passed since last update.

【GCE】Debian 9でシステムのタイムゾーンを変更する

Last updated at Posted at 2019-10-16

何が問題か

GCEでインスタンスを作成した後、タイムゾーンをUTCからJSTに変更するというのが通常。
しかし、GCPで配布されているDebian 9イメージにはdbusパッケージが含まれていないため、timedatectlコマンドが実行できない。

解決法

dbusパッケージをインストールしてからtimedatectlコマンドでタイムゾーンを変更する。

$ sudo apt install dbus
$ sudo timedatectl set-timezone Asia/Tokyo
$ sudo shutdown -r now
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1