Locale and error messages

Trying do shed some light on this:

You see two error messages but only the second does not know german umlauts.

I read archwiki and https://forum.manjaro.org/t/root-tip-how-to-troubleshooting-locale-errors/21008
… in vain.

First: i can live with that because my computer will not explode :slight_smile:
Second: Would be interesting to know what is happening here

I used XFCE guake ( $SHELL is /bin/bash )


Generated on 2023-01-21 22:59:1674338355

#################### inxi -Fxzc0 ########################

  Kernel: 6.1.1-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.0 Desktop: Xfce v: 4.18.0
    Distro: Manjaro Linux base: Arch Linux
  Type: Laptop System: LENOVO product: 81RS v: Lenovo Yoga S740-14IIL serial: <superuser required>
  Mobo: LENOVO model: LNVNB161216 v: SDK0J40709 WIN serial: <superuser required> UEFI: LENOVO
    v: BYCN39WW date: 05/28/2021
  ID-1: BAT0 charge: 63.7 Wh (97.5%) condition: 65.3/62.0 Wh (105.3%) volts: 17.1 min: 15.4
    model: LGC L19L4PD2 status: full
  Info: quad core model: Intel Core i7-1065G7 bits: 64 type: MT MCP arch: Ice Lake rev: 5 cache:
    L1: 320 KiB L2: 2 MiB L3: 8 MiB
  Speed (MHz): avg: 1367 high: 1500 min/max: 400/3900 cores: 1: 1299 2: 1300 3: 1500 4: 1500
    5: 1275 6: 1500 7: 1300 8: 1262 bogomips: 23968
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Device-1: Intel Iris Plus Graphics G7 vendor: Lenovo driver: i915 v: kernel arch: Gen-11
    bus-ID: 00:02.0
  Device-2: NVIDIA GP108M [GeForce MX250] vendor: Lenovo driver: nvidia v: 525.60.11 arch: Pascal
    bus-ID: 2b:00.0
  Device-3: Chicony Integrated Camera type: USB driver: uvcvideo bus-ID: 3-5:5
  Display: x11 server: X.Org v: 21.1.6 driver: X: loaded: modesetting,nvidia unloaded: nouveau
    dri: iris gpu: i915 resolution: 1: 1920x1080~60Hz 2: N/A
  API: OpenGL v: 4.6 Mesa 22.3.1 renderer: Mesa Intel Iris Plus Graphics (ICL GT2)
    direct render: Yes
  Device-1: Intel Ice Lake-LP Smart Sound Audio vendor: Lenovo driver: sof-audio-pci-intel-icl
    bus-ID: 00:1f.3
  Sound API: ALSA v: k6.1.1-1-MANJARO running: yes
  Sound Interface: sndio v: N/A running: no
  Sound Server-1: PulseAudio v: 16.1 running: no
  Sound Server-2: PipeWire v: 0.3.63 running: yes
  Device-1: Intel Ice Lake-LP PCH CNVi WiFi driver: iwlwifi v: kernel bus-ID: 00:14.3
  IF: wlp0s20f3 state: up mac: <filter>
  Device-2: Realtek RTL8153 Gigabit Ethernet Adapter type: USB driver: r8152 bus-ID: 2-1.4:4
  IF: enp0s13f0u1u4 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IF-ID-1: pan1 state: down mac: <filter>
  Device-1: Intel AX201 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 3-10:14
  Report: rfkill ID: hci0 rfk-id: 4 state: up address: see --recommends
  Local Storage: total: 1.86 TiB used: 424.73 GiB (22.4%)
  ID-1: /dev/nvme0n1 vendor: Micron model: MTFDHBA1T0TCK size: 953.87 GiB temp: 58.9 C
  ID-2: /dev/sda type: USB vendor: Western Digital model: WD10EARX-00N0YB0 size: 931.51 GiB
  ID-3: /dev/sdb type: USB vendor: Kingston model: DataTraveler 2.0 size: 14.54 GiB
  ID-1: / size: 57.85 GiB used: 40.04 GiB (69.2%) fs: ext4 dev: /dev/nvme0n1p8
  ID-2: /boot/efi size: 259.5 MiB used: 115 MiB (44.3%) fs: vfat dev: /dev/nvme0n1p1
  ID-1: swap-1 type: partition size: 16.67 GiB used: 0 KiB (0.0%) dev: /dev/nvme0n1p9
  System Temperatures: cpu: 62.0 C mobo: N/A
  Fan Speeds (RPM): N/A
  Processes: 259 Uptime: 1d 9h 17m Memory: 15.19 GiB used: 2.95 GiB (19.4%) Init: systemd
  Compilers: gcc: 12.2.0 clang: 14.0.6 Packages: 1967 Client: Unknown Client: wrapper-2.0
  inxi: 3.3.24

Tipps are welcome!

The command
does not take arguments.

The output is exactly the same without argument or with any other “argument” you try to give it.

You could examine the script (that’s what that command is):
to analyze why it is giving you the output it does give you.

It is not because of some problem with your locale settings for sure.

You get the errors because the script needs to be run as root in order to access or remove any of the things it tries to but cannot do when you call it as a normal user.

less /usr/bin/locale-gen

It’s a fairly short script - just 42 lines :slightly_smiling_face:
not sure whether that number is in any way significant :nerd_face:


Checkout: Locale - ArchWiki :wink:


But it do need to be run as root or superuser using sudo.

Please don’t use screen shots - the copy/pasted output from your terminal is much better.

And when you want to supply terminal output - please use the fallback lang

LANG=C sudo locale-gen

The script being a Manjaro specific script supplied with glibc-locales package.

Thanks for all these answers!!

… but every answer that has more than 42 words is much too complicated for me. I take the 42 …

7,5 Millionen Jahre rechnete der Supercomputer „Deep Thought“ und spuckte dann diese Zahl aus .

well done !

Well, “42 will do.” 8)