Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
Hi I always get this message whenever I open a console window anywhere on my box at both normal as well as root logins. Code: locale: Cannot set LC_ALL to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Enthusiast apoorv_khurasia's Avatar
    Join Date
    Feb 2005
    Posts
    624

    locale: Cannot set LC_ALL to default locale: No such file or directory


    Hi
    I always get this message whenever I open a console window anywhere on my box at both normal as well as root logins.
    Code:
    locale: Cannot set LC_ALL to default locale: No such file or directory
    Can anyone explain to me why this message come up and how do I get rid of it?
    Thanks in advance for any help that comes.
    "There is no sixth rule"
    --Rob Pike
    Registered Linux User: 400426 home page

  2. #2
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    grep /etc/profile and /etc/bashrc for lines that set LC_ALL. What does it say?

  3. #3
    Linux Enthusiast apoorv_khurasia's Avatar
    Join Date
    Feb 2005
    Posts
    624
    Is that what I pass as command?
    Code:
    grep --regexp=LC_ALL --file=/etc/profile
    Well it just hangs and returns nothing!!!
    "There is no sixth rule"
    --Rob Pike
    Registered Linux User: 400426 home page

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    Search them both:
    Code:
    grep 'LC_ALL" /etc/profile /etc/bashrc

  6. #5
    Linux Enthusiast apoorv_khurasia's Avatar
    Join Date
    Feb 2005
    Posts
    624
    Nothing returned only a prompt....
    "There is no sixth rule"
    --Rob Pike
    Registered Linux User: 400426 home page

  7. #6
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    I guess it's not being set there. Can you give me a few lines of context before the error message at boot?

  8. #7
    Linux Enthusiast apoorv_khurasia's Avatar
    Join Date
    Feb 2005
    Posts
    624
    Quote Originally Posted by lakerdonald
    I guess it's not being set there. Can you give me a few lines of context before the error message at boot?
    Ya I boot noramally at init level 3 and this message appears as soon as I login. No other services fail to load up in the startup and booting process and no errors other than this appear. Sorry I don't have much info but could you tell me what does this LC_ALL do???
    "There is no sixth rule"
    --Rob Pike
    Registered Linux User: 400426 home page

  9. #8
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    AFAIK, it is the default locale used by applications using gettext().
    And what I meant by "a few lines of context" was a few lines printed before the error message

  10. #9
    Linux Enthusiast apoorv_khurasia's Avatar
    Join Date
    Feb 2005
    Posts
    624
    Quote Originally Posted by lakerdonald
    AFAIK, it is the default locale used by applications using gettext().
    And what I meant by "a few lines of context" was a few lines printed before the error message
    Nops, this is the only message which appears. Nothing else.
    "There is no sixth rule"
    --Rob Pike
    Registered Linux User: 400426 home page

  11. #10
    Linux Enthusiast apoorv_khurasia's Avatar
    Join Date
    Feb 2005
    Posts
    624
    Breakthrough:
    While I tried tio start postgresql I got the following error:
    Code:
    Starting postgresql service: locale: Cannot set LC_ALL to default locale: No such file or directory
    Seems familiar
    "There is no sixth rule"
    --Rob Pike
    Registered Linux User: 400426 home page

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •