Set locale on Debian
Timezone, language, standard message formats.
2021-11-01 Raspbian buster, Ubuntu 20.04
The example selects Melbourne, Australia.
graham:~ sudo dpkg-reconfigure tzdata
- This offers all available timezones. Select Australia then Melbourne.
- This offers all available locales. Select for including on host: C.UTF-8 (if offered), en_AU.UTF-8, en_US.UTF-8.
- Select system default locale: en_AU.UTF-8.
Logout and login again.
graham:~ timedatectl Local time: Sat 2022-09-03 18:30:36 AEST Universal time: Sat 2022-09-03 08:30:36 UTC RTC time: Sat 2022-09-03 08:30:36 Time zone: Australia/Melbourne (AEST, +1000) System clock synchronized: yes NTP service: active RTC in local TZ: no- Verify correct timezone reported.
- Verify locale details set correctly