Saya kadang-kadang mendapatkan kesalahan lokal dan saya sudah mencoba menjalankan dpkg-reconfigure locales untuk memperbaiki masalah. Inilah hasilnya:
:~$ sudo dpkg-reconfigure locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
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_ALL to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
Generating locales (this might take a while)...
en_US.UTF-8... done
Generation complete.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "C"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "C"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Saya mencari / usr / bin / lokal tetapi tidak ada di sistem saya. Apakah saya perlu membuatnya? Apa yang saya letakkan di sana?
Saya juga menemukan pertanyaan terkait yang mengatakan bahwa penyebab masalahnya ada di file sshd_config. File memiliki entri berikut:
AcceptEnv LANG LC_*
Saya terutama khawatir bahwa hal itu dapat menyebabkan masalah bagi VPS saya, jika tidak, itu bukan masalah besar, saya akan dengan senang hati mengabaikan masalahnya. Apa yang harus saya lakukan? Terima kasih!
locale-gen fr
akan membangun semua fr locales (fr_BE, fr_CH dll ...) menyelesaikan masalah. Mungkin cobalocale-gen en