在我昏昏沉沉的早晨,我刚刚颠倒和混淆了多伦多的论点,用一个到不存在的/etc/localtime的链接替换了ln,而我真的想把/etc/localtime链接到多伦多。现在我住的地方没有时区文件。有没有人有副本或者知道我在哪里能买到?这只是关于如何将unix时间转换为多伦多时间的说明,但我对其他一些文件进行了分类,它们似乎不适合我手工编写的任务。
我知道呀。至少我从来没有把我的/
编辑:
在有人问起之前,我只是试了试sudo dpkg-reconfigure tzdata,兴高采烈地输入了“美国”和“多伦多”,结果却崩溃了,读到了,cp: cannot stat '/usr/share/zoneinfo/America/Toronto': no such file or directory。啊。
发布于 2009-11-01 01:20:37
http://www.246tnt.com/files/Toronto
发布于 2009-12-27 11:00:27
apt-get install --reinstall tzdata
发布于 2009-11-01 01:08:12
根据您正在使用的GNU/Linux发行版,您可以使用其包管理器重新下载整个tzdata包。我知道ArchLinux有一个时区数据包,Debian也有。
However, you can also manually download the whole package and extract the time zone file that you want.
https://stackoverflow.com/questions/1654942
复制相似问题