RSS

  • YouTube
  • LinkedIn
  • Google

How to fix LOCALE error on Debian Linux/Ubuntu

Share in your social media
  •  ;
  •  ;
  •  ;
  •  ;

Today I had to look at the logs to an FTP server that runs under the pure-ftp and I realized that the timetables were all in UTC .
As I needed to send part of the logs to a third party that makes use of it and are not familiar with systems, could end up taking place some misunderstanding. I decided then that should keep the logs of all the applications on Brazilian time zone.
According to the documentation of the pure-ftp it uses environment variables to determine which will be the schedule included in the logs

and the only setting is to use GMT or not and by default it uses In.

NOTE: This problem also happens to various programs Perl.

So the correct step is to check if the locale from the server (or session that I will use to start the FTP service) It's in pt_BR. Wasn't.

I used the basic recipe to modify the locale. (Below if you want to do the same).

  • Add the language input locale files from debian (must be the same for Ubuntu).

  • Open the environment settings /etc/environment and /etc/default/locale and include the entries below

  • And finally run the commands

Everything went Ok. When performed locale was so:

and when you try to restart the FTP service

Depois de várias tentativas de corrigir, consegui fazendo o seguinte:

Executei os comandos

Após isso, the FTP service started normally as the information below.


Share in your social media
  •  ;
  •  ;
  •  ;
  •  ;

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.