You are not logged in.

#1 2012-03-05 02:17:46

scrawky
Member
Registered: 2011-09-23
Posts: 26

bsdtar: Failed to set default locale (when installing savage-xr)

so i get the bsdtar: failed to set default locale error when using yaourt to install savage-xr

theres another thread about this error and i did what it says in that thread but i still get this error

heres locale.gen

#en_SG ISO-8859-1  
en_US.UTF-8 UTF-8  
en_US ISO-8859-1  
#en_ZA.UTF-8 UTF-8  

heres rc.conf

CONSOLEMAP=
LOCALE="en_us.UTF-8 UTF-8"
DAEMON_LOCALE="yes"

ive also tried "en_us.UTF-8" and "en_us.utf8"

also when logging in i get a few bash errors

-bash: warning: setlocale: LC_COLLATE: cannot change locale (en_us.UTF-8 UTF-8) no such file or directory

im thinking the bash error is probably related to my fubared locales

heres what locale -a looks like

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
POSIX
en_US
en_US.iso88591
en_US.utf8

thanks for your time

Offline

#2 2012-03-05 03:40:23

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: bsdtar: Failed to set default locale (when installing savage-xr)

scrawky wrote:
LOCALE="en_us.UTF-8 UTF-8"

That's not a valid locale... scrub the 'UTF-8' from the end.

Offline

#3 2012-03-05 10:12:45

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: bsdtar: Failed to set default locale (when installing savage-xr)

man rc.conf wrote:

See locale -a (or locale.gen) for available options.

If you take it literally, OP's way should work. Does it warrant a bug report for rephrasing the man page?

Offline

#4 2012-03-05 10:57:00

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: bsdtar: Failed to set default locale (when installing savage-xr)

karol wrote:

If you take it literally, OP's way should work. Does it warrant a bug report for rephrasing the man page?

/etc/locale.gen wrote:
## Each line is of the form:
##
##     <locale> <charset>
##
##  where <locale> is one of the locales given in /usr/share/i18n/locales
##  and <charset> is one of the character sets listed in /usr/share/i18n/charmaps

Offline

#5 2012-03-05 11:01:34

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: bsdtar: Failed to set default locale (when installing savage-xr)

Ah, OK, thanks.

Offline

#6 2012-03-20 17:05:51

magostin
Member
Registered: 2010-05-06
Posts: 4
Website

Re: bsdtar: Failed to set default locale (when installing savage-xr)

I am having the same issue as the OP. I receive the error in the title every time I run 'makepkg'

My locale.gen is:

#es_SV ISO-8859-1  
es_US.UTF-8 UTF-8  
es_US ISO-8859-1  
#es_UY.UTF-8 UTF-8  

rc.conf is

LOCALE="en_US.UTF-8"
DAEMON_LOCALE="yes"
HARDWARECLOCK="UTC"

output of locale -a

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
POSIX
es_US
es_US.iso88591
es_US.utf8

output of locale-gen

Generating locales...
  es_US.UTF-8... done
  es_US.ISO-8859-1... done
Generation complete.

Any idea what's wrong?

Offline

#7 2012-03-20 17:40:36

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: bsdtar: Failed to set default locale (when installing savage-xr)

magostin wrote:

My locale.gen is:

#es_SV ISO-8859-1  
es_US.UTF-8 UTF-8  
es_US ISO-8859-1  
#es_UY.UTF-8 UTF-8  

rc.conf is

LOCALE="en_US.UTF-8"
DAEMON_LOCALE="yes"
HARDWARECLOCK="UTC"

Any idea what's wrong?

Take a good hard look at the lines you have uncommented in locale.gen. Then look at your LOCALE in rc.conf.

Offline

#8 2012-03-20 17:48:54

magostin
Member
Registered: 2010-05-06
Posts: 4
Website

Re: bsdtar: Failed to set default locale (when installing savage-xr)

falconindy wrote:
magostin wrote:

My locale.gen is:

#es_SV ISO-8859-1  
es_US.UTF-8 UTF-8  
es_US ISO-8859-1  
#es_UY.UTF-8 UTF-8  

rc.conf is

LOCALE="en_US.UTF-8"
DAEMON_LOCALE="yes"
HARDWARECLOCK="UTC"

Any idea what's wrong?

Take a good hard look at the lines you have uncommented in locale.gen. Then look at your LOCALE in rc.conf.

Ugh ... fixed. Sorry for the noise ....

Offline

#9 2014-04-17 03:08:56

Aginor
Member
Registered: 2014-03-27
Posts: 3

Re: bsdtar: Failed to set default locale (when installing savage-xr)

Running locale-gen solved this issue for me

Offline

#10 2014-04-17 03:42:56

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: bsdtar: Failed to set default locale (when installing savage-xr)


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#11 2014-04-17 03:45:15

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,701

Re: bsdtar: Failed to set default locale (when installing savage-xr)

Hi Aginor,
Welcome to Arch Linux.  Do be aware of old posts
Two years on, the original participants may not care anymore. 

Your post was relevant, so it is fine.  But, I am going to close the thread now.

Edit: Too late smile

Last edited by ewaller (2014-04-17 03:45:50)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB