linux
linux

LC_ALL = (unset) or when you try to install anything with apt-get and get error

Hello every one ,

Today i got some strange 1 in the life time error – and i want to share it and resolve it .

My server is an VPS linux server (Ubuntu 12.04)  – Parallels Virtuoozzoo .

Every time I try to install anything with apt-get,restart service and use commands – I get the following error.

For example:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_PAPER = "he_IL.UTF-8",
	LC_ADDRESS = "he_IL.UTF-8",
	LC_MONETARY = "he_IL.UTF-8",
	LC_NUMERIC = "he_IL.UTF-8",
	LC_TELEPHONE = "he_IL.UTF-8",
	LC_IDENTIFICATION = "he_IL.UTF-8",
	LC_MEASUREMENT = "he_IL.UTF-8",
	LC_TIME = "he_IL.UTF-8",
	LC_NAME = "he_IL.UTF-8",
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

The picture on one more server of my :


One more example :

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = "en_GB:en",
	LC_ALL = (unset),
	LANG = "en_GB"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

 

Solution to that problem:

I runt couple of commands :

[email protected]:# dpkg-reconfigure locales

and

[email protected]:# sudo localwe-gen en_US.UTF-8

 

You are done 🙂 – no need to reboot the system .

For Debian systems it may work , but i know only this :

export LANGUAGE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_TYPE=en_US.UTF-8

 

 

P.S

You may also use :

LC_ALL="en_GB.utf8"
sudo apt-get install --reinstall language-pack-en

Good Luck .

Sergey Babkevych

36 COMMENTS

  1. Sweet blog! I found it while searching on Yahoo News. Do you have any tips on how to get listed in Yahoo News? I’ve been trying for a while but I never seem to get there! Many thanks

  2. I’m not sure why but this blog is loading extremely slow for me. Is anyone else having this issue or is it a problem on my end? I’ll check back later on and see if the problem still exists.

  3. We stumbled over here different web address and thought I might as well check things out. I like what I see so i am just following you. Look forward to looking at your web page for a second time.

  4. not that much of a internet reader to be honest but your blogs really nice, keep it up! I’ll go ahead and bookmark your website to come back later. All the best

  5. Hi, I think your website might be having browser compatibility issues. When I look at your blog site in Opera, it looks fine but when opening in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up! Other then that, great blog!

  6. Woah! I’m really digging the template/theme of this blog. It’s simple, yet effective. A lot of times it’s very hard to get that “perfect balance” between usability and appearance. I must say you’ve done a very good job with this. In addition, the blog loads very quick for me on Internet explorer. Exceptional Blog!

  7. Howdy! This post couldn’t be written any better! Reading this post reminds me of my old room mate! He always kept talking about this. I will forward this post to him. Fairly certain he will have a good read. Many thanks for sharing!

  8. With every little thing that seems to be developing within this subject matter, many of your viewpoints happen to be very refreshing. Having said that, I appologize, because I do not subscribe to your entire suggestion, all be it radical none the less. It seems to everyone that your opinions are not totally rationalized and in actuality you are generally yourself not fully confident of your point. In any event I did enjoy looking at it.

  9. I’m really enjoying the design and layout of your website. It’s a very easy on the eyes which makes it much more enjoyable for me to come here and visit more often. Did you hire out a designer to create your theme? Fantastic work!

  10. Hey there, I think your blog might be having browser compatibility issues. When I look at your blog in Ie, it looks fine but when opening in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up! Other then that, amazing blog!

  11. Hi great blog! Does running a blog such as this take a large amount of work? I’ve no expertise in programming however I was hoping to start my own blog in the near future. Anyway, if you have any ideas or tips for new blog owners please share. I understand this is off topic nevertheless I just wanted to ask. Thanks a lot!

  12. Please let me know if you’re looking for a author for your site. You have some really great posts and I believe I would be a good asset. If you ever want to take some of the load off, I’d absolutely love to write some content for your blog in exchange for a link back to mine. Please blast me an e-mail if interested. Many thanks!

  13. Hey! I know this is somewhat off topic but I was wondering if you knew where I could find a captcha plugin for my comment form? I’m using the same blog platform as yours and I’m having difficulty finding one? Thanks a lot!

    • Hi , one of the best is Wordfence Security – but still this plugin will not help you 100% . you will need to make changes to .htaccess , file perm. and more…

      Good luck

Comments are closed.