(技术贴!!好久不发技术贴!发一个……)
dpkg-reconfigure tzdata
一条命令搞定。
最近老是遇到这个问题,帮人装系统的时候遇到,自己又遇到,往往随便改改 UTC 时间了事。但最新一次装 RPWT 的机器时,终于受不了用了 ntp,结果好了, UTC 时间没法改了,于是把以前用的通通试一遍, base-config tzconfig tzselect……还有 google,通通不好使。最后,终于在一大堆的 doc 里翻到似乎是跟 tzdata 这个包有关系的,然后就 OK 了。稍微认得 apt 这东西的应该会想到使用上面的命令的。
PS: 这个应该是适用于 lenny 及以后的,据我所知,sarge 或者 etch 是可以用 tzconfig 的,真是点点点。
World is not perfect, so is the life, but we should make our life as perfect as possible.
星期四, 七月 10
星期四, 九月 6
星期四, 八月 30
订阅:
博文 (Atom)