debian
Pesan error yang muncul di terminal

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
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based fronte

Solusinya, bila belum ada file /etc/locale.gen, buat baru lalu masukkan dibagian paling bawah

en_US.UTF-8 UTF-8

en us
lalu jalankan perintah dibawah ini dengan akses root

export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
/usr/sbin/locale-gen

output perintah diatas

Generating locales (this might take a while)...
  en_US.UTF-8...Killed
 done
Generation complete.

Demikian cara untuk mengatasi perl: warning: Setting locale failed di Debian 6/Debian 7/Debian 8.

Join the Conversation

1 Comment

Your email address will not be published. Required fields are marked *