LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-19-2021, 04:39 PM   #1
Bjoernaakvik
LQ Newbie
 
Registered: Feb 2021
Posts: 2

Rep: Reputation: Disabled
Locales problem? Linux SPSS statistics verison 27 on Chromebook not working. Problem with locales.


Hey Guys. I am no to the forum. Using linux for the first time as a virtual machine on my chromebook.
After installing IBM SPSS statistcs for school I get the following error.

/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US)

Then I cant use the program. What can be the error?
How can I change the locale so it is supported??


(My Main language is Swedish on my chromebook if that matters)

/
Bjoern
 
Old 02-19-2021, 08:08 PM   #2
redd9
Member
 
Registered: Nov 2013
Location: Canada
Distribution: RHEL, Ubuntu
Posts: 212
Blog Entries: 1

Rep: Reputation: 82
Have you tried these commands:
Code:
sudo locale-gen en_US
sudo update-locale LANG=en_US
 
Old 02-20-2021, 01:19 AM   #3
Bjoernaakvik
LQ Newbie
 
Registered: Feb 2021
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by redd9 View Post
Have you tried these commands:
Code:
sudo locale-gen en_US
sudo update-locale LANG=en_US
Hello, thanx for reply.

The rirst command works great, when i do the second one I get the following error??

sudo update-locale LANG=en_US
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_IN.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
*** update-locale: Error: invalid locale settings: LANG=en_US
 
Old 02-21-2021, 11:11 AM   #4
redd9
Member
 
Registered: Nov 2013
Location: Canada
Distribution: RHEL, Ubuntu
Posts: 212
Blog Entries: 1

Rep: Reputation: 82
Hmmm, LANG = "en_IN.UTF-8"? Try the command,
Code:
sudo locale-gen "en_US.UTF-8"
.
edit: then run
Code:
 sudo update-locale LANG="en_US.UTF-8"

Last edited by redd9; 02-21-2021 at 11:12 AM.
 
Old 02-21-2021, 02:14 PM   #5
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Quote:
Originally Posted by Bjoernaakvik View Post
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US)
In file /etc/locale.gen, all I had was ---> C.UTF8 UTF-8
So I opened the file in an editor and added ---> en_US.UTF8 UTF-8
Then I ran the command as root ---> locale-gen
It was a little slow to produce those two locales, then the prompt returned, then I ran the command below to set the locale to en_US:
Code:
localectl set-locale en_US.UTF-8
The current locale will be shown in /etc/locale.conf

Last edited by Brains; 02-21-2021 at 02:26 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Here a Chromebook, there a Chromebook, everywhere a Chromebook LXer Syndicated Linux News 0 12-14-2015 04:42 PM
Three preferred locales and Two defective locales guanx Slackware 1 05-20-2010 01:11 AM
help working with spss (.sav) files metalx1000 Linux - Software 1 08-23-2008 07:03 AM
GNU R help with converting SPSS file - object not found towsonu2003 Linux - Software 2 03-04-2006 11:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration