Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] setlocale: unsupported locale setting
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
dspahn
Guru
Guru


Joined: 22 Jun 2006
Posts: 364

PostPosted: Tue Dec 31, 2019 1:29 pm    Post subject: [SOLVED] setlocale: unsupported locale setting Reply with quote

This is a fresh install, cobbed together from several sources, mainly the Gentoo handbook. it is system and efi, boots without a livecd and without any real errors- so far everything works, just finished emerging gnome (and for some reason I got GDM and not XDM!) and haven't tried getting X up yet... still working on the console. When I use emerge for anything, it give me two lines at the beginning:
Quote:
setlocale: unsupported locale setting
setlocale: unsupported locale setting


but everything seems to merge OK. I've been through the Gentoo Localization guide, and I'm still getting the message. The System Locale is set to en_US.utf-8. The message isn't even an annoyance, but because it appears, I want to make sure I have everything set right. It's been a while since I built a Gentoo system, so I am a bit out of practice. Any ideas how to clear this message?
_________________
---

Since there is no admin beer, I stick to root beer.


Last edited by dspahn on Tue Dec 31, 2019 6:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 2170
Location: Frankfurt, Germany

PostPosted: Tue Dec 31, 2019 1:38 pm    Post subject: Reply with quote

Please run the commands below (as root) and post the output:
  1. Code:
    localectl

  2. Code:
    eselect locale list

  3. Code:
    locale

  4. Code:
    locale -a

  5. Code:
    egrep -v "^#" /etc/locale.gen

  6. Code:
    emerge --info

Back to top
View user's profile Send private message
dspahn
Guru
Guru


Joined: 22 Jun 2006
Posts: 364

PostPosted: Tue Dec 31, 2019 3:03 pm    Post subject: Pastebin with answers Reply with quote

Sorry my resources are a little limited at the moment. The pastebin is at
Http://tinyurl.com/te4817r

The egrep command returned nothing.
_________________
---

Since there is no admin beer, I stick to root beer.
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 24191
Location: here

PostPosted: Tue Dec 31, 2019 3:08 pm    Post subject: Reply with quote

The link don't work
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
dspahn
Guru
Guru


Joined: 22 Jun 2006
Posts: 364

PostPosted: Tue Dec 31, 2019 4:38 pm    Post subject: Not sure what happened with the link.... here's the output. Reply with quote

Quote:
localectl
System Locale: LANG=en_US.UTF-8
LC_COLLATE=en_US.utf8
VC Keymap: us
X11 Layout: us

eselect locale list
Available targets for the LANG variable:
[1] C
[2] C.utf8
[3] en_US
[4] en_US.iso88591
[5] en_US.utf8
[6] POSIX
[7] en_US.UTF-8 *
[ ] (free form)

locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE=en_US.utf8
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
USMDLT919 /home/dan # locale -a
C
C.utf8
en_US
en_US.iso88591
en_US.utf8
POSIX
egrep -v "^#" /etc/locale.gen

emerge --info
Portage 2.3.79 (python 3.6.9-final-0, default/linux/amd64/17.1/desktop/gnome/systemd, gcc-9.2.0, glibc-2.29-r7, 4.19.86-gentoo x86_64)
=================================================================
System uname: Linux-4.19.86-gentoo-x86_64-Intel-R-_Core-TM-_i5-4300U_CPU_@_1.90GHz-with-gentoo-2.6
KiB Mem: 8058900 total, 5367592 free
KiB Swap: 524284 total, 524284 free
Timestamp of repository gentoo: Sun, 29 Dec 2019 05:00:01 +0000
Head commit of repository gentoo: 1f3072a4053aa509f2aa6fc00512634f2df03429
Head commit of repository sakaki-tools: 36a2a3d5a7a0674782044cbcb5004d555ae4715e

sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.32 p2) 2.32.0
app-shells/bash: 4.4_p23-r1::gentoo
dev-java/java-config: 2.2.0-r4::gentoo
dev-lang/perl: 5.30.1::gentoo
dev-lang/python: 2.7.17::gentoo, 3.6.9::gentoo
dev-util/cmake: 3.14.6::gentoo
sys-apps/baselayout: 2.6-r1::gentoo
sys-apps/sandbox: 2.13::gentoo
sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake: 1.11.6-r3::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils: 2.32-r1::gentoo
sys-devel/gcc: 9.2.0-r2::gentoo
sys-devel/gcc-config: 2.1::gentoo
sys-devel/libtool: 2.4.6-r3::gentoo
sys-devel/make: 4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers)
sys-libs/glibc: 2.29-r7::gentoo
Repositories:

gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
sync-rsync-verify-max-age: 24
sync-rsync-verify-jobs: 1
sync-rsync-extra-opts:
sync-rsync-verify-metamanifest: yes

sakaki-tools
location: /var/db/repos/sakaki-tools
sync-type: git
sync-uri: https://github.com/sakaki-/sakaki-tools.git
masters: gentoo
priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://www.gtlib.gatech.edu/pub/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.mirrors.pair.com/ http://mirrors.rit.edu/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aalib acl acpi alsa amd64 ao bash-completion berkdb bluetooth branding bzip2 cairo cdda cddb cdr cli colord crypt css cxx dbus dot dri dts dv dvd dvdr eds emboss encode evo exif fam ffmpeg flac fontconfig fortran ftp gd gdbm gif gimp git gnome gnome-keyring gnome-online-accounts gphoto2 gpm gps gstreamer gtk iconv icu inotify introspection ios ipod ipv6 jack java javascript jbig jit joystick jpeg jpeg2k kerberos latex lcms ldap libcaca libnotify libsecret libtirpc libwww lirc lm-sensors lz4 lzma lzo mad matroska mikmod mmap mms mng modplug mono mp3 mp4 mpeg mpi multilib musepack musicbrainz nas nautilus ncurses networkmanager nls nocd nptl nsplugin offensive ogg openal openexr opengl openmp opus oss pam pango pcre pda pdf perl php png policykit portaudio postscript ppds pulseaudio python quicktime rdp readline rss ruby samba sdl seccomp skey smartcard smp sndfile snmp soap sound sox speex spell split-usr ssl startup-notification subversion svg syslog systemd taglib tcl tcpd theora tiff timidity tk tracker truetype udev udisks unicode upnp upnp-av upower usb user-session v4l vcd vdpau videos vnc vorbis wavpack wifi wmf wxwidgets x264 xattr xcb xinerama xml xmp xmpp xosd xpm xscreensaver xv xvid zip zlib zsh-completion" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



_________________
---

Since there is no admin beer, I stick to root beer.
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 2170
Location: Frankfurt, Germany

PostPosted: Tue Dec 31, 2019 4:44 pm    Post subject: Reply with quote

..

Last edited by mike155 on Tue Dec 31, 2019 4:58 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 24191
Location: here

PostPosted: Tue Dec 31, 2019 4:46 pm    Post subject: Reply with quote

The only strange thing is in eselect locale list you have [5] en_US.utf8 and [7] en_US.UTF-8, try to set the first (number 5).
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
dspahn
Guru
Guru


Joined: 22 Jun 2006
Posts: 364

PostPosted: Tue Dec 31, 2019 6:08 pm    Post subject: Solved! Here's how Reply with quote

I am naturally very verbose- here are the important details. Let me know if you want more info:

rm -rf /etc/env.d/02locale
nano -w /etc/locale.gen
***Make sure locales I want are listed and uncommented***
locale-gen

Testing shows the message is no longer appearing.
Your steps let me to the error message that LC_ALL could not be set and LC_COLLATE. I googled this and the purge-regen I did solved it.
Thanks for the help!
_________________
---

Since there is no admin beer, I stick to root beer.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum