Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

[solved] Unsupported locale setting and emerge failed glibc

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
boospy
Guru
Guru
User avatar
Posts: 310
Joined: Sun Feb 07, 2010 11:15 pm
Location: Austria

[solved] Unsupported locale setting and emerge failed glibc

  • Quote

Post by boospy » Sat Apr 13, 2019 5:58 pm

Hello All,

every month i update on gentoo lxc on an Proxmoxhost. This month i have two problems. The first is that the locales is now unsupportet, don't know why, no changes on the Container. Yes the proxmoxhost had normal updates.
The second one is that i can't do updates anymore. Error:

Code: Select all

emerge -quDN --with-bdeps=y @world 
sh: warning: setlocale: LC_ALL: cannot change locale (de_AT.UTF-8)
setlocale: unsupported locale setting
setlocale: unsupported locale setting

The following packages are causing rebuilds:

  (sys-libs/binutils-libs-2.31.1-r4:0/2.31.1-r1::gentoo, ebuild scheduled for merge) causes rebuilds for:
    (x11-libs/cairo-1.16.0-r3:0/0::gentoo, ebuild scheduled for merge)
>>> Verifying ebuild manifests
>>> Running pre-merge checks for sys-libs/glibc-2.28-r6
mount: /proc: cannot mount none read-only.
Unable to mark /proc slave: 32
mount: /proc: cannot mount none read-only.
Unable to mark /proc slave: 32
This is on a lot of packages. So maybe this two things hang together.

Ubuntu's on all Proxmoxhosts had the same problem with locales but this was fixed shortly with one command. On gentoo tested a lot of things in make.conf with "locale gen, locale -a, locale-gen de_DE.utf-8, changed /etc/locale.conf, eselect locale, and a lot of more. Nothing did help. So i need the help from here :)

So please let me know what information you are need that we can repair the system.

Thanks a lot! :roll: :D
Last edited by boospy on Sun Apr 14, 2019 12:07 am, edited 1 time in total.
Top
mike155
Advocate
Advocate
Posts: 4438
Joined: Fri Sep 17, 2010 11:33 pm
Location: Frankfurt, Germany

  • Quote

Post by mike155 » Sat Apr 13, 2019 6:41 pm

Hi boospy,

please post the output of the commands below
  1. locale -a
  2. locale
  3. eselect locale list
and the contents of the files below:
  1. /etc/locale.gen
  2. /etc/locale.conf
  3. /etc/env.d/02locale
Do you use OpenRC? Or Systemd?

Did you read the Wiki page https://wiki.gentoo.org/wiki/Localization/Guide/en ?

Mike
Top
boospy
Guru
Guru
User avatar
Posts: 310
Joined: Sun Feb 07, 2010 11:15 pm
Location: Austria

  • Quote

Post by boospy » Sat Apr 13, 2019 7:04 pm

Hello :)

here the outputs:

Code: Select all

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
C.utf8
POSIX
de_DE
de_DE.iso88591
de_DE.iso885915@euro
de_DE.utf8
de_DE@euro
en_US
en_US.iso88591
en_US.utf8

~/ locale
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_ALL to default locale: No such file or directory
LANG=de_DE@euro
LC_CTYPE="de_AT.UTF-8"
LC_NUMERIC="de_AT.UTF-8"
LC_TIME="de_AT.UTF-8"
LC_COLLATE="de_AT.UTF-8"
LC_MONETARY="de_AT.UTF-8"
LC_MESSAGES="de_AT.UTF-8"
LC_PAPER="de_AT.UTF-8"
LC_NAME="de_AT.UTF-8"
LC_ADDRESS="de_AT.UTF-8"
LC_TELEPHONE="de_AT.UTF-8"
LC_MEASUREMENT="de_AT.UTF-8"
LC_IDENTIFICATION="de_AT.UTF-8"
LC_ALL=de_AT.UTF-8

~/ cat /etc/locale.gen 
en_US ISO-8859-1
en_US.UTF-8 UTF-8
de_DE ISO-8859-1
de_DE@euro ISO-8859-15
de_DE.utf-8 UTF-8
 
~/ cat /etc/locale.conf 
de_DE.utf-8 UTF-8

~/ cat /etc/env.d/02locale 
# Configuration file for eselect
# This file has been automatically generated.
LANG="de_DE@euro"
LC_COLLATE="C"
I use OpenRC.
Did you read the Wiki page https://wiki.gentoo.org/wiki/Localization/Guide/en ?
I go for.
Top
Jaglover
Watchman
Watchman
User avatar
Posts: 8291
Joined: Sun May 29, 2005 1:57 am
Location: Saint Amant, Acadiana

  • Quote

Post by Jaglover » Sat Apr 13, 2019 7:08 pm

I'd try with FEATURES="-pid-sandbox", note, locale is giving you only warning, it is not an error. Concentrate on mount error.
My Gentoo installation notes.
Please learn how to denote units correctly!
Top
mike155
Advocate
Advocate
Posts: 4438
Joined: Fri Sep 17, 2010 11:33 pm
Location: Frankfurt, Germany

  • Quote

Post by mike155 » Sat Apr 13, 2019 8:02 pm

Jaglover wrote:I'd try with FEATURES="-pid-sandbox", note, locale is giving you only warning, it is not an error. Concentrate on mount error.
@jaglover: you are right that there are two problems. A locale problem and a mount error.

I can only help with the locale problem. Maybe you can help with the mount error?

@boospy: you get the locale warnings because you selected locale 'de_AT.UTF-8', but this locale is not configured on your machine.
  1. Is 'de_AT.UTF-8' the locale you want?
  2. Where do you currently define that locale? Do you set LC_ALL in .profile, .bash_profile or .bashrc? Remove those definitions - they are wrong (look at LANG, which is de_DE@euro). You shouldn't set LC_ALL at all.
  3. Read https://wiki.gentoo.org/wiki/Localization/Guide/en
  4. Add the locale you want (probably 'de_AT.utf8') to /etc/locale.gen
  5. Run 'locale-gen'. After that, 'locale -a' should show 'de_AT.utf8'
  6. Run 'eselect locale list' and 'eselect locale set <N>' to set the locale 'de_AT.UTF-8'
  7. Look at file /etc/env.d/02locale. It should now contain:

    Code: Select all

    LANG="de_AT.UTF-8"
    LC_COLLATE="C"
  8. Run 'env-update && source /etc/profile'
  9. Make sure that you really removed any locale definitions in .profile, .bash_profile or .bashrc of root and of any user you use.
  10. Log out and log in
  11. Run 'locale'. You should get the output below:

    Code: Select all

    LANG=de_AT.utf8             # different to your current output
    LC_CTYPE="de_AT.utf8"
    LC_NUMERIC="de_At.utf8"
    LC_TIME="de_AT.utf8"
    LC_COLLATE=C
    LC_MONETARY="de_AT.utf8"
    LC_MESSAGES="de_AT.utf8"
    LC_PAPER="de_AT.utf8"
    LC_NAME="de_AT.utf8"
    LC_ADDRESS="de_AT.utf8"
    LC_TELEPHONE="de_AT.utf8"
    LC_MEASUREMENT="de_AT.utf8"
    LC_IDENTIFICATION="de_AT.utf8"
    LC_ALL=                     # different to your current output
    
Top
boospy
Guru
Guru
User avatar
Posts: 310
Joined: Sun Feb 07, 2010 11:15 pm
Location: Austria

  • Quote

Post by boospy » Sun Apr 14, 2019 12:05 am

Thanks All, very, very much!

Mountrpoblem and Localeproblem are gone away. On mountproblem the sandboxoption worked. And @locales there were sytaxerrors in the file. All entreis were wrong. Didn't work:

Code: Select all

en_US ISO-8859-1
en_US.UTF-8 UTF-8
de_DE ISO-8859-1
de_DE@euro ISO-8859-15
de_DE.utf-8 UTF-8
de_AT.utf8

Code: Select all

locale-gen
 * Generating 6 locales (this might take a while) with 4 jobs
 *  (2/6) Generating de_DE.ISO-8859-15@euro ...
failed to set locale!
[error] character map file `de_DE' not found: No such file or directory
failed to set locale!
[error] cannot open locale definition file `ISO-8859-15': No such file or directory                        [ !! ]
 *  (3/6) Generating de_DE.ISO-8859-1 ...
failed to set locale!
[error] character map file `de_DE.utf-8' not found: No such file or directory
failed to set locale!
[error] cannot open locale definition file `ISO-8859-1': No such file or directory                         [ !! ]
 *  (4/6) Generating de_DE.UTF-8 ...
failed to set locale!
[error] character map file `en_US' not found: No such file or directory
failed to set locale!
[error] cannot open locale definition file `UTF-8': No such file or directory  
...

Work:

Code: Select all

#en_US ISO-8859-1
en_US UTF-8
#de_DE ISO-8859-1
de_DE UTF-8
de_AT UTF-8
:D :D :D
Top
Josef.95
Advocate
Advocate
Posts: 4857
Joined: Mon Sep 03, 2007 9:46 am
Location: Germany

  • Quote

Post by Josef.95 » Sun Apr 14, 2019 2:01 am

boospy,
the correct supported locale entries for /etc/locale.gen
is listed in /usr/share/i18n/SUPPORTED
Top
boospy
Guru
Guru
User avatar
Posts: 310
Joined: Sun Feb 07, 2010 11:15 pm
Location: Austria

  • Quote

Post by boospy » Sun Apr 14, 2019 9:15 am

Josef.95 wrote:boospy,
the correct supported locale entries for /etc/locale.gen
is listed in /usr/share/i18n/SUPPORTED
He Josef.95, long time ago, nice to hear from you :D :D
And thanks for the info. I have already supplemented my documentary.
Top
Post Reply

8 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic