Skip to content

Fixing locale message in Ubuntu when logging in or SCPing

I’ve encountered this error occasionally when loggin in:

-bash: warning: setlocale: LC_ALL: cannot change locale (nl_NL.UTF-8)

This breaks things like scp or bzr via sftp. To fix it, I followed this advice:

cd /var/lib/locales/supported.d
cat /usr/share/i18n/SUPPORTED|grep -i nl > nl
dpkg-reconfigure locales

It’s not really pretty though; it shouldn’t give an error at all when a locale is missing. I mean, this way, I have to generate every possible locale to support logins from all over the world…

    52 Comments ( Add comment / trackback )

    1. (permalink)
      Comment by IRaceMyCase
      On February 24, 2012 at 10:30

      Hey halvegare,

      You could also run the following command:

      locale-gen nl_NL.UTF-8

      And you should be on your way.

    2. (permalink)
      Comment by halfgaar
      On March 2, 2012 at 21:23

      Thanks for the tip; I’ll try it next time I see this error.

    3. (permalink)
      Comment by halfgaar
      On December 7, 2013 at 11:09

      I found here that putting the following in /etc/environment perhaps also works:


      That would make logging in from every locale in the world possible, I guess.

    4. (permalink)
      Comment by Noah Spurrier
      On June 2, 2014 at 07:46

      You should only set “LANG=en_US.UTF-8″. Leave out the “LC_ALL=en_US.UTF-8″. The original error can be confusing because LC_ALL is used in two different contexts. The LC_ALL environment variable you are setting in /etc/environment does not refer to the same thing as the LC_ALL in the error message. Also, setting both LC_ALL and LANG would be redundant as the LC_ALL environment variable overrides LANG anyway. Almost always use LANG where people tell you to use LC_ALL. Only use LC_ALL in special cases where there is no other option. Using it at a global level will hide other problems and introduce new ones.

    5. On Oct 10, 2015 at 13:04

      borse prada autunno inverno 2015

      La Presse dresse, sciemment ou non, un portrait unilatral franchement trompeur du vritable calvaire que vivent ces couples, ces gens, ces femmes au prise avec un diagnostic l’infertilit (parce qu’il s’agit rellement d’un diagnostic. Comme la polio.…

    6. (permalink) Trackback from fondazione prada
      On Oct 10, 2015 at 13:04

      fondazione prada

      “I’m good. I really appreciate it,” said Ford when asked how he was doing after he was injured in a plane crash in March.

    7. (permalink) Trackback from prada spaccio
      On Oct 10, 2015 at 13:05

      prada spaccio

      “I loved him with every bit of my heart and my heart is now broken. He was kind, caring, funny, affectionate, beautiful and talented. He was stabbed in the heart and they tried for six hours to save him but he needed to go.

    8. (permalink) Trackback from prada saffiano wallet
      On Oct 10, 2015 at 13:05

      prada saffiano wallet

      Obviously it’s ideal if you get your transfer business done early on in the window but Arsenal and Chelsea both have great managers who will do what they need to do when the time is right. They have been around long enough to know what they need and t…

    9. On Oct 10, 2015 at 13:06

      prada job opportunities

      Hosted at Phoenix’s revered Musical Instrument Museum (MIM), two hundred guests sauntered in to the candy land themed event, in order to support the children and enjoy the day. Children of the Phoenix Children’s Hospital modeled the latest in fashion…

    10. (permalink) Trackback from bottega veneta dress
      On Oct 10, 2015 at 13:06

      bottega veneta dress

      Thus, with the custom DotNetNuke development, you can build e commerce website, matrimonial website, enterprise portals, intranets extranets, dating website, B2B and B2C applications, and so on.Hiring an efficient Office Cleaning Company

    11. (permalink) Trackback from scarpe prada saldi
      On Oct 10, 2015 at 13:06

      scarpe prada saldi

      The 71 year old victim was out shopping with friend on January 5 this year and had her bag strap wrapped around her fingers when Barker, who was wearing a hooded top, sneaked up behind her.

    12. (permalink) Trackback from prada official
      On Oct 10, 2015 at 13:07

      prada official

      I want his freedom so we can go out to these sites, and he can show me around and tell me what he did out there. I have to prepare for trial, Burns said.

    13. (permalink) Trackback from hermes venezia
      On Oct 10, 2015 at 13:07

      hermes venezia

      “So Tommy was like, ‘Great job,’ and gave some wonderful notes on how to do it again. Somewhere in the back of my head, I thought, ‘They can’t tell I’m nervous.’ But after he finished giving his notes, he slid a glass of water across the table t…

    14. (permalink) Trackback from borse outlet prada
      On Oct 10, 2015 at 13:08

      borse outlet prada

      Prior to joining NBC News, Kotb worked at WWL TV, the CBS affiliate in New Orleans, La. news broadcast (1992 98). She was a weekend anchor and reporter for WINK TV in Fort Myers, Fla. (1989 91). Prior to that, Kotb was a morning anchor and general assi…

    15. On Oct 10, 2015 at 13:08

      terre d hermes eau de parfum

      With such a wide range of big and small plates and vegetarian and meat dishes on their sophisticated but not pretentious nouveau American menu, the two adults and eight year old in our group opted to share several plates. (Felice has no children’s men…

    16. On Oct 10, 2015 at 13:08

      michael kors portafoglio

      “I think it’s still the very early stages of what Etsy can become as a public company,” said Tom Forte, senior vice president at Brean Capital who also studies e commerce. “The jury is still out. It’s not unusual for an e commerce stock to have a…

    17. (permalink) Trackback from michael kors suit
      On Oct 10, 2015 at 13:08

      michael kors suit

      In Tehran, Iranian President Hassan Rouhani said a new chapter had begun in his nation relations with the world. and its partners have long disputed. lawmakers and Iranian hardliners. Obama most pressing task will be holding off efforts by Congress to…

    18. On Oct 10, 2015 at 13:09

      gucci spring summer 2011

      In order to meet the construction deadlines of the The Royal Opera of Versailles, Gabriel had all his various craftsmen work at the same time. For example, the workers would work on the woodwork in workshops, whilst the building shell was being finishe…

    19. On Oct 10, 2015 at 13:09

      hotel longchamp elysees

      PF I would never stop dreaming!

    20. On Oct 10, 2015 at 13:09

      michael kors sale handbags

      The Palace of Versailles especially rose to fame when an angry mob barged into the palace and captured the queen. King Louis XVI had married Marie Antoinette, who was of an Austrian descent. This was the time when the tensions between Austria and Franc…

    21. On Oct 10, 2015 at 13:09

      michael kors black watch

      If pain is in your right leg, then use the left hand to pull the right knee towards the left shoulder.hip young things are buying one

    22. (permalink) Trackback from michael kors python
      On Oct 10, 2015 at 13:10

      michael kors python

      basic communication with their grandparents.

    23. (permalink) Trackback from
      On Oct 10, 2015 at 13:10

      Just as Lawrence hit the carpet and waved to fans, she collapsed in a heap of her red dress, laughing at herself.

    24. On Oct 10, 2015 at 13:10

      michael kors watch women sale

      This promises to be a favourite for everyone in the city. They have probably the biggest shout along songs in the UK now that Oasis don’t exist anymore. Their Glastonbury performance was the crown on an exceptional career so far.

    25. (permalink) Trackback from mcm boots
      On Oct 10, 2015 at 13:10

      mcm boots

      Aftermath producer Dawaun Parker confirms Dr. Dre has changed the name of his album. Parker also says Dre has more than 300 beats to choose from for the new project, which Parker believes will still come out.

    26. (permalink) Trackback from hermes home
      On Oct 10, 2015 at 13:11

      hermes home

      The Japanese car maker has a fiercely loyal customer base and Jazz owners will be the first in the dealerships to order the new model, but Honda bosses are convinced the latest car is also good enough to snatch large numbers of buyers from rival brands…

    27. (permalink) Trackback from la kelly di hermes
      On Oct 10, 2015 at 13:11

      la kelly di hermes

      However, in severe cases, the hematoma gets large enough to compress the tissues and prevents oxygen from reaching the skin, resulting in the eventual dying of skin. This may further increase the risks of having other complications like infection, woun…

    28. On Oct 10, 2015 at 13:11

      michael kors mens watch

      Elsewhere in the region, state fisheries biologists in Oregon say more than 100 spring chinook died earlier this month in the Middle Fork of the John Day River when water temperatures hit the mid 70s. Oregon and Washington state have both enacted sport…

    29. (permalink) Trackback from scarpa prada
      On Oct 10, 2015 at 13:11

      scarpa prada

      The thing is, I have people tell me on a regular basis how wonderful it would be to have a job like mine so they could work from home and stay with their children. They would cook everything from scratch, their house would always be clean, and they cou…

    30. (permalink) Trackback from prada outlet caserta
      On Oct 10, 2015 at 13:12

      prada outlet caserta

      Hats with wide brim A beach or baseball hat will do the trick here. Just make sure baby face is shaded.

    31. (permalink) Trackback from longchamp
      On Oct 10, 2015 at 13:12


      Ella senses Topher’s kindness and gushes about him to Crazy Marie, who says he has the makings of a great world leader.

    32. On Oct 10, 2015 at 13:12

      occhiali da sole prada 2013

      “That’s one area of my game I think I need to take to the next level,” he concedes. “I think I’m at the age now and mature enough to be able to share my experiences with the younger guys and take the time to do that.

    33. (permalink) Trackback from scarpe donna prada
      On Oct 10, 2015 at 13:13

      scarpe donna prada

      Tariq’s son Haroon Jahan was killed alongside two brothers Shazad Ali, 30, and Abdul Musavir, 21 when they were hit by a car during riots in Winson Green in the early hours of August 10.

    34. (permalink) Trackback from michael kors rose
      On Oct 10, 2015 at 13:13

      michael kors rose

      Huntington’s damages brain cells and causes problems with movement and behaviour. With no way of stopping it, sufferers usually die within 10 to 20 years of diagnosis.

    35. (permalink) Trackback from prada borse on line
      On Oct 10, 2015 at 13:20

      prada borse on line

      Ian said: “The least the Energy Saving Trust can do is offer insurance to protect customers from situations like this.

    36. (permalink) Trackback from prada store on line
      On Oct 10, 2015 at 13:21

      prada store on line

      An analysis of eight studies conducted on the effects of sage (the herb’s active compounds Salvia officinalis L. and Salvia lavandulaefolia L, to be precise) was published earlier this year by the National Institutes of Health. In all of the clinical…

    37. (permalink) Trackback from gucci store florence
      On Oct 10, 2015 at 13:22

      gucci store florence

      There appears to be a “golden triangle” in the UK between Oxford, Cambridge and London appearing in the list, with other top ranking universities including Imperial College London and University College London appearing in the top 20, with the London…

    38. (permalink) Trackback from sandali uomo prada
      On Oct 10, 2015 at 13:22

      sandali uomo prada

      Scott Allan arrived at Hibs in the summer of 2014 penning a two year deal after The Rangers had passed up the offer to sign him as a free agent. Alan Stubbs did not put a gun to his head and force him to sign the contract; the fact is we took a chance…

    39. (permalink) Trackback from mcd e mcm online
      On Oct 10, 2015 at 13:22

      mcd e mcm online

      North Carolina offers low income families with assistance in finding housing, purchasing food, paying their electric bills and obtaining legal services. The Legal.Help you choose a perfect Replica handbag

    40. (permalink) Trackback from michael kors tote bag
      On Oct 10, 2015 at 13:23

      michael kors tote bag

      3. Courgette Nothing says ‘pro salad maker’ like beautifully sliced ribbons of courgettes.

    41. (permalink) Trackback from hermes lines
      On Oct 10, 2015 at 13:23

      hermes lines

      “PCSO’s are integral to neighbourhoods and I can honestly say, the six amazing PCSO’s in Lozells and East Handsworth Ward, are pinnacle to community relations.

    42. (permalink) Trackback from birkin borsa hermes
      On Oct 10, 2015 at 13:24

      birkin borsa hermes

      Brush back the rest of the hair and arrange it over the side where you have pinned your hair.

    43. On Oct 10, 2015 at 13:24

      michael kors white ceramic watch

      The Wildlife Conservation Research Unit, or WildCRU, the Oxford University based conservation group which had tagged Cecil the Lion in order to track his movements, has been suggested as a worthy group for donations.

    44. (permalink) Trackback from hermes italie spa
      On Oct 10, 2015 at 13:24

      hermes italie spa

      Facilities: Toilets, changing rooms, showers, snack bar, public BBQ area and a campground.

    45. On Oct 10, 2015 at 13:25

      michael kors at harrods

      Democrats have long counted on African Americans as a loyal voting bloc, whereas the Republican Party acknowledged after its loss in the 2012 presidential race that it needed to build support among minorities to win the presidency.

    46. (permalink) Trackback from michael kors discount
      On Oct 10, 2015 at 13:26

      michael kors discount

      The tennis players, who first began dating in 2013 from what we can tell (when Maria confirmed the relationship in a humorous way), were rumored to be over as recently as last year. Nothing was confirmed, however, until ESPN reporter Darren Rovell twee…

    47. (permalink) Trackback from prada products
      On Oct 10, 2015 at 13:26

      prada products

      Bernie and the Greeks have provoked a combination of panic, mockery and horrified fascination that seems massively out of proportion to their actual importance. invasion that was an especially blatant and pointless violation of international law, even…

    48. (permalink) Trackback from borse prada originali
      On Oct 10, 2015 at 13:27

      borse prada originali

      When Adam goes missing whilst backpacking overseas, his parents grapple with the little information they have to go on to try and locate their son. Then out the blue a stranger appears, uncannily like their son, covered in scars and clutching Adam’s p…

    49. (permalink) Trackback from celine micro luggage
      On Oct 12, 2015 at 11:32

      celine micro luggage

      Thursday, Sept. A five course meal will be served, and a rep from Lagunitas will attend. Cost is $45. Seating is limited; call fro reservations, 216 221 1119. Rozi’s is at 14900 Detroit Ave., Lakewood.

    50. (permalink) Trackback from borse modello celine
      On Oct 12, 2015 at 11:32

      borse modello celine

      I have always said even those with iron chins can get caught if they don’t protect it. Alejandro Gonzales has a great chin and can punch, and was, in truth, better than anticipated.

    51. (permalink) Trackback from polo gucci uomo
      On Oct 12, 2015 at 11:32

      polo gucci uomo

      “At the time they came through, there were no boybands and they filled that gap.

    52. (permalink) Trackback from carrozzina gucci
      On Oct 12, 2015 at 11:33

      carrozzina gucci

      GRAND BLANC, MI Grant Fisher is going back to Cali.

    Post a comment


    Your email is never published nor shared.

    Allowed HTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>