Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@lamby
Created October 24, 2016 07:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lamby/a6903d2c1ca171f4dac63da61b9fc259 to your computer and use it in GitHub Desktop.
Save lamby/a6903d2c1ca171f4dac63da61b9fc259 to your computer and use it in GitHub Desktop.
$ sudo dpkg-reconfigure tzdata
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
Configuring tzdata
------------------
Please select the geographic area in which you live. Subsequent configuration questions will narrow this down by presenting a list of cities, representing the time zones in which they are
located.
1. Africa 3. Antarctica 5. Arctic Ocean 7. Atlantic Ocean 9. Indian Ocean 11. System V timezones 13. None of the above
2. America 4. Australia 6. Asia 8. Europe 10. Pacific Ocean 12. US
Geographic area: 13
Please select the city or region corresponding to your time zone.
1. GMT 4. GMT+10 7. GMT+2 10. GMT+5 13. GMT+8 16. GMT-1 19. GMT-12 22. GMT-2 25. GMT-5 28. GMT-8 31. Greenwich 34. Universal
2. GMT+0 5. GMT+11 8. GMT+3 11. GMT+6 14. GMT+9 17. GMT-10 20. GMT-13 23. GMT-3 26. GMT-6 29. GMT-9 32. UCT 35. Zulu
3. GMT+1 6. GMT+12 9. GMT+4 12. GMT+7 15. GMT-0 18. GMT-11 21. GMT-14 24. GMT-4 27. GMT-7 30. GMT0 33. UTC
Time zone: 33
Current default time zone: 'Etc/UTC'
Local time is now: Mon Oct 24 05:49:09 UCT 2016.
Universal Time is now: Mon Oct 24 05:49:09 UTC 2016.
$ echo Etc/GMT-14 | sudo tee /etc/timezone
Etc/GMT-14
$ echo "tzdata tzdata/Areas select Etc" | sudo debconf-set-selections
$ echo "tzdata tzdata/Zones/Etc select GMT-14" | sudo debconf-set-selections
$ debconf-get-selections | grep tzdata
debconf: DbDriver "passwords" warning: could not open /var/cache/debconf/passwords.dat: Permission denied
tzdata tzdata/Zones/ select
tzdata tzdata/Zones/Antarctica select
tzdata tzdata/Zones/Arctic select
tzdata tzdata/Zones/America select
tzdata tzdata/Zones/Atlantic select
tzdata tzdata/Zones/Etc select GMT-14
tzdata tzdata/Zones/SystemV select
tzdata tzdata/Zones/Asia select
tzdata tzdata/Zones/Australia select
tzdata tzdata/Zones/Indian select
tzdata tzdata/Zones/Africa select
tzdata tzdata/Zones/US select
tzdata tzdata/Zones/Pacific select
tzdata tzdata/Areas select Etc
tzdata tzdata/Zones/Europe select
$ sudo dpkg-reconfigure -f noninteractive tzdata
Current default time zone: 'Etc/UTC'
Local time is now: Mon Oct 24 05:49:36 UCT 2016.
Universal Time is now: Mon Oct 24 05:49:36 UTC 2016.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment