debconf:无法初始化前端:

debconf:无法初始化前端:

我正在尝试(但没有成功)更正我的系统的时区:

root@102c5d7bfc0d:/# dpkg-reconfigure tzdata
debconf: unable to initialize frontend: 
debconf: (Can't locate Debconf/FrontEnd/.pm in @INC (you may need to install the Debconf::FrontEnd:: module) (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at (eval 34) line 2.)
debconf: falling back to frontend: Noninteractive

Current default time zone: 'Etc/UTC'
Local time is now:      Sun Jun 15 10:15:52 UTC 2014.
Universal Time is now:  Sun Jun 15 10:15:52 UTC 2014.

我如何让 dpkg-reconfigure 以交互方式询问我的时区?

答案1

像这样更改你的 shell,然后重新运行命令:

sudo su -
dpkg-reconfigure tzdata

相关内容