Hi!请登陆

解决perl: warning: Setting locale failed. Cannot set LC_CTYPE to default locale

2020-10-27 49 10/27

用apt-get安装ppp 出现错误如下:

mail:/etc# apt-get install pptp
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package pptp
mail:/etc# apt-get install ppp
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
ppp
0 upgraded, 1 newly installed, 0 to remove and 281 not upgraded.
Need to get 356kB of archives.
After this operation, 1069kB of additional disk space will be used.
Get:1 http://mirror.peer1.net stable/main ppp 2.4.5-4 [356kB]
Fetched 356kB in 1s (206kB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously deselected package ppp.

解决办法简单,只要执行:

dpkg-reconfigure locales

然后在弹出的页面选择对应的选项就可以了.

Tag:

相关推荐