Reinstalling glibc introduces `call to execv failed (No such file or directory)` on the `Restoring locales` stage

It looks like this is from a pacman hook, from package glibc-locales
It is in the repos, but I cant find any profile using it by default, so did you install it yourself?
For some reason the PKGBUILD is missing from the gitlab, while @philm is named maintainer.

We can probably guess it is the same or similar to this one that is posted in manjaro-arm.

1 Like

“it” === “glibc-locales” package?

if yes, perhaps I always have it from ISO image installation
~/Desktop ❯ cat /var/log/pacman.log | grep glibc-locales
[2021-08-23T17:26:43+0300] [PACMAN] Running 'pacman -S a52dec aalib abseil-cpp accounts-qml-module accountsservice acl acpi acpid adobe-source-code-pro-fonts adobe-source-han-sans-cn-fonts adobe-source-han-sans-jp-fonts adobe-source-han-sans-kr-fonts adobe-source-sans-fonts adwaita-icon-theme alacritty alsa-card-profiles alsa-firmware alsa-lib alsa-oss alsa-plugins alsa-topology-conf alsa-ucm-conf alsa-utils android-tools android-udev aom apparmor appimagelauncher appstream appstream-glib appstream-qt archlinux-appstream-data archlinux-keyring argon2 ark at-spi2-atk at-spi2-core atk attica attr audacity audiofile audit avahi b43-fwcutter baloo baloo-widgets bash bashrc-manjaro bc binutils bleachbit bluedevil bluez bluez-libs bluez-qt boost-libs botan breath2-icon-themes breath2-wallpaper breeze breeze-gtk breeze-icons brotli btrfs-progs bubblewrap bzip2 c-ares ca-certificates ca-certificates-mozilla ca-certificates-utils cairo cantarell-fonts cdparanoia cdrdao cdrtools celt cfitsio chromaprint cifs-utils ckbcomp clang cmark compiler-rt confuse convertlit coreutils cpupower crda cronie cryptsetup curl dav1d db dbus dbus-glib dbus-python dconf desktop-file-utils device-mapper dhclient dhcpcd diffutils ding-libs discount djvulibre dmidecode dmraid dnsmasq dnssec-anchors docbook-xml docbook-xsl dolphin dolphin-plugins dosfstools double-conversion dvd+rw-tools e2fsprogs ebook-tools ecryptfs-utils editorconfig-core-c efibootmgr efivar elfutils elisa emovix enchant exfat-utils exiv2 expat f2fs-tools faac faad2 ffmpeg ffmpegthumbs fftw file filelight filesystem findutils firefox firefox-i18n-en-gb firefox-i18n-en-us flac flashrom flatpak fluidsynth fmt fontconfig frameworkintegration freeglut freetype2 fribidi fuse-common fuse2 fuse3 fwupd fwupd-efi gawk gcab gcc gcc-libs gcr gd gdbm gdk-pixbuf2 geoclue geocode-glib gettext ghostscript giflib git glew glib-networking glib2 glibc glibc-locales glslang glu gmp gnupg gnustep-base gnutls gobject-introspection-runtime gpgme gpm gptfdisk grantlee graphene graphite grep groff grub grub-btrfs grub-theme-manjaro gsettings-desktop-schemas gsm gssdp gssproxy gst-libav gst-plugins-bad gst-plugins-bad-libs gst-plugins-base gst-plugins-base-libs gst-plugins-good gst-plugins-ugly gstreamer gtk-theme-breath gtk-update-icon-cache gtk3 gupnp gupnp-igd gvfs gvfs-afc gvfs-gphoto2 gvfs-mtp gvfs-nfs gvfs-smb gwenview gzip harfbuzz harfbuzz-icu haveged hdparm hicolor-icon-theme hidapi htop http-parser hunspell hunspell-en_gb hunspell-en_us hwids hwinfo hwloc hyphen hyphen-en iana-etc icu ijs illyria-wallpaper imagemagick imath imlib2 inetutils intel-ucode inxi iproute2 iptables iputils iso-codes iw jack2 jansson jasper jbig2dec jfsutils js78 json-c json-glib kaccounts-integration kaccounts-providers kactivities kactivities-stats kactivitymanagerd kamera karchive kate kauth kbd kbookmarks kcalc kcmutils kcodecs kcolorpicker kcompletion kconfig kconfigwidgets kcoreaddons kcrash kdbusaddons kde-cli-tools kde-gtk-config kdeclarative kdecoration kded kdegraphics-thumbnailers kdelibs4support kdenetwork-filesharing kdeplasma-addons kdesu kdnssd kdoctools kdsoap kdsoap-ws-discovery-client keditbookmarks kemoticons kernel-alive keyutils kfilemetadata kfind kgamma5 kglobalaccel kguiaddons khelpcenter kholidays khotkeys khtml ki18n kiconthemes kidletime kimageannotator kimageformats kinfocenter kio kio-extras kio-fuse kirigami2 kitemmodels kitemviews kjobwidgets kjs kmag kmenuedit kmod knewstuff knotifications knotifyconfig kolourpaint kompare konsole kpackage kparts kpeople kpmcore kpty kquickcharts krb5 krunner kscreen kscreenlocker kservice ksshaskpass ksysguard ksystemlog ksystemstats ktexteditor ktextwidgets kunitconversion kuserfeedback kwallet kwallet-pam kwalletmanager kwayland kwayland-integration kwayland-server kwidgetsaddons kwin kwindowsystem kwrited kxmlgui l-smash lame layer-shell-qt lcms2 ldb ldns less libaccounts-glib libaccounts-qt libaio libao libappimage libappindicator-gtk3 libarchive libass libassuan libasyncns libatasmart libavc1394 libavif libavtp libblockdev libbluray libbs2b libbsd libbytesize libcaca libcanberra libcap libcap-ng libcddb libcdio libcdio-paranoia libcloudproviders libcolord libcroco libcups libdaemon libdatrie libdbusmenu-glib libdbusmenu-gtk3 libdbusmenu-qt5 libdc1394 libdca libde265 libdmtx libdrm libdv libdvbpsi libdvdcss libdvdnav libdvdread libebml libedit libelf libepoxy libevdev libevent libexif libfdk-aac libffi libfontenc libfreeaptx libftdi libgcrypt libgee libgit2 libglvnd libgme libgnomekbd libgpg-error libgphoto2 libgudev libgusb libhandy libheif libibus libical libice libid3tag libidn libidn2 libiec61883 libieee1284 libimagequant libimobiledevice libindicator-gtk3 libinih libinput libinstpatch libjcat libjpeg-turbo libkate libkdcraw libkexiv2 libkipi libkomparediff2 libksane libksba libkscreen libksysguard libktorrent libldac libldap liblqr liblrdf libmad libmanette libmatroska libmbim libmd libmediainfo libmfx libmicrodns libmikmod libmm-glib libmms libmng libmnl libmodplug libmpc libmpcdec libmpdclient libmpeg2 libmtp libndp libnetfilter_conntrack libnetfilter_queue libnewt libnfnetlink libnfs libnftnl libnghttp2 libnice libnl libnm libnotify libnsl libofa libogg libomxil-bellagio libp11-kit libpackagekit-glib libpamac libpamac-flatpak-plugin libpamac-snap-plugin libpaper libpcap libpciaccess libpgm libpipeline libplacebo libplist libpng libproxy libpsl libpulse libqaccessibilityclient libqalculate libqmi libqrtr-glib libraqm libraw libraw1394 librsvg libsamplerate libsasl libseccomp libsecret libshout libsidplay libsidplayfp libsm libsmbios libsndfile libsodium libsoup libsoxr libspectre libsrtp libssh libssh2 libstemmer libtar libtasn1 libteam libthai libtheora libtiff libtirpc libtommath libtool libtorrent-rasterbar libunistring libunwind libupnp liburing libusb libusb-compat libusbmuxd libutempter libuv libva libva-intel-driver libva-mesa-driver libva-vdpau-driver libvdpau libvisual libvorbis libvpx libwacom libwebp libwpe libx11 libx86emu libxau libxaw libxcb libxcomposite libxcrypt libxcursor libxdamage libxdmcp libxext libxfixes libxfont2 libxft libxi libxinerama libxkbcommon libxkbcommon-x11 libxkbfile libxklavier libxml2 libxmlb libxmu libxpm libxrandr libxrender libxres libxshmfence libxslt libxss libxt libxtst libxv libxvmc libxxf86vm libyaml libyuv libzen libzip licenses lilv linux-api-headers linux-firmware linux514 lirc llvm llvm-libs lm_sensors lmdb logrotate lsb-release lsof lua52 lvm2 lz4 lzo mailcap man-db man-pages manjaro-alsa manjaro-application-utility manjaro-base-skel manjaro-browser-settings manjaro-documentation-en manjaro-firmware manjaro-hello manjaro-hotfixes manjaro-icons manjaro-kde-settings manjaro-keyring manjaro-pulse manjaro-release manjaro-settings-manager manjaro-settings-manager-kcm manjaro-settings-manager-knotifier manjaro-system manjaro-zsh-config matray md4c mdadm media-player-info mediainfo-gui memtest86+ mesa mesa-demos mesa-vdpau mhwd mhwd-amdgpu mhwd-ati mhwd-db mhwd-nvidia mhwd-nvidia-390xx micro milou minizip mjpegtools mkinitcpio mkinitcpio-busybox mkinitcpio-openswap mkvtoolnix-cli mkvtoolnix-gui mobile-broadband-provider-info modemmanager modemmanager-qt mpd mpfr mpg123 mtdev mtpfs nano ncurses ndctl neon nerd-fonts-noto-sans-mono net-snmp nettle networkmanager networkmanager-openconnect networkmanager-openvpn networkmanager-pptp networkmanager-qt networkmanager-vpnc nfs-utils nfsidmap node-gyp nodejs nodejs-nopt noto-fonts noto-fonts-compat noto-fonts-emoji npm npth nspr nss nss-mdns ntfs-3g ntp numlockx okular openal openconnect opencore-amr openexr openjpeg2 openmpi openresolv openssh openssl openvpn opera opera-ffmpeg-codecs opus orc ostree oxygen oxygen-icons p11-kit p7zip packagekit packagekit-qt5 pacman pacman-mirrors pam pamac-cli pamac-gtk pamac-tray-icon-plasma pambase pango parted partitionmanager pciutils pcre pcre2 pcsclite perl perl-clone perl-encode-locale perl-error perl-file-basedir perl-file-desktopentry perl-file-listing perl-file-mimeinfo perl-html-parser perl-html-tagset perl-http-cookies perl-http-daemon perl-http-date perl-http-message perl-http-negotiate perl-io-html perl-ipc-system-simple perl-libwww perl-lwp-mediatypes perl-mailtools perl-net-http perl-timedate perl-try-tiny perl-uri perl-www-robotrules perl-xml-parser perl-xml-writer phonon-qt5 phonon-qt5-gstreamer pinentry pipewire pixman pkcs11-helper pkgfile plasma-browser-integration plasma-desktop plasma-framework plasma-integration plasma-nm plasma-pa plasma-simplemenu plasma-systemmonitor plasma-workspace plasma-workspace-wallpapers plasma5-themes-breath2 polkit polkit-kde-agent polkit-qt5 poppler poppler-data poppler-glib poppler-qt5 popt portaudio portsmf powerdevil powertop ppp pptpclient print-manager prison procps-ng protobuf psmisc pugixml pulseaudio pulseaudio-alsa pulseaudio-bluetooth pulseaudio-ctl pulseaudio-equalizer pulseaudio-jack pulseaudio-lirc pulseaudio-rtp pulseaudio-zeroconf purpose python python-appdirs python-cachecontrol python-cairo python-certifi python-cffi python-chardet python-colorama python-contextlib2 python-cryptography python-distlib python-distro python-dnspython python-docopt python-gobject python-grpcio python-html5lib python-idna python-keyutils python-markdown python-more-itertools python-msgpack python-npyscreen python-ordered-set python-packaging python-pep517 python-pillow python-pip python-ply python-progress python-protobuf python-psutil python-pycparser python-pycups python-pycurl python-pyinotify python-pyopenssl python-pyparsing python-pyqt5 python-pyqt5-sip python-pysmbc python-reportlab python-requests python-resolvelib python-retrying python-setuptools python-six python-slugify python-text-unidecode python-toml python-tomli python-urllib3 python-webencodings python-yaml qbittorrent qca-qt5 qqc2-desktop-style qrencode qt5-base qt5-declarative qt5-graphicaleffects qt5-imageformats qt5-location qt5-multimedia qt5-quickcontrols qt5-quickcontrols2 qt5-sensors qt5-speech qt5-svg qt5-tools qt5-translations qt5-virtualkeyboard qt5-wayland qt5-webchannel qt5-webengine qt5-webkit qt5-x11extras raptor rav1e re2 readline reiserfsprogs rest rpcbind rsync rtkit rtmpdump ruby ruby-irb ruby-reline rubygems run-parts rust s-nail sane sbc screenfetch sddm sddm-breath2-theme sddm-kcm sdl sdl2 sed semver serd shaderc shadow shared-mime-info signon-kwallet-extension signon-plugin-oauth2 signon-ui signond skanlite slang smartmontools smbclient snapd snapd-glib snappy socat sof-firmware solid sonnet sord sound-theme-freedesktop soundtouch spandsp spectacle spectre-meltdown-checker speex speexdsp spirv-tools sqlite squashfs-tools squashfuse sratom srt sshfs stoken sudo suil svt-av1 svt-hevc syndication syntax-highlighting sysfsutils system-config-printer systembus-notify systemd systemd-fsck-silent systemd-kcm systemd-libs systemd-sysvcompat systemsettings taglib talloc tar tcl tdb terminus-font tevent texinfo thin-provisioning-tools threadweaver timeshift timeshift-autosnap-manjaro tinyxml2 tlp tpm2-tss transcode tslib ttf-dejavu ttf-droid ttf-hack ttf-inconsolata ttf-indic-otf ttf-liberation twolame tzdata udiskie udisks2 ufw unarchiver unzip upower usb_modeswitch usbmuxd usbutils util-linux util-linux-libs v4l-utils v86d vamp-plugin-sdk vcdimager vi vid.stab vlc vmaf volume_key vpnc vte-common vte3 vulkan-icd-loader vulkan-intel vulkan-radeon wavpack wayland wayland-protocols web-installer-url-handler webkit2gtk webrtc-audio-processing wget which wildmidi wireless-regdb woff2 wpa_supplicant wpebackend-fdo wxgtk-common wxgtk3 x264 x265 xapian-core xapp xcb-proto xcb-util xcb-util-cursor xcb-util-image xcb-util-keysyms xcb-util-renderutil xcb-util-wm xdg-dbus-proxy xdg-desktop-portal xdg-desktop-portal-kde xdg-user-dirs xdg-utils xf86-input-elographics xf86-input-evdev xf86-input-libinput xf86-input-void xf86-video-amdgpu xf86-video-ati xf86-video-intel xf86-video-nouveau xfsprogs xkeyboard-config xorg-fonts-encodings xorg-mkfontscale xorg-server xorg-server-common xorg-setxkbmap xorg-twm xorg-xauth xorg-xdpyinfo xorg-xhost xorg-xinit xorg-xkbcomp xorg-xkill xorg-xmessage xorg-xmodmap xorg-xprop xorg-xrandr xorg-xrdb xorg-xset xorg-xsetroot xorgproto xvidcore xxhash xz yajl yakuake zbar zenity zensu zeromq zimg zip zita-alsa-pcmi zita-resampler zlib zsh zsh-autosuggestions zsh-completions zsh-history-substring-search zsh-syntax-highlighting zsh-theme-powerlevel10k zstd zvbi zxing-cpp zziplib'
[2021-08-23T17:35:00+0300] [ALPM] reinstalled glibc-locales (2.32-2)
[2021-08-23T17:37:09+0300] [ALPM] running '60-glibc-locales.hook'...
[2021-08-24T05:52:38+0300] [ALPM] running '60-glibc-locales.hook'...
[2021-11-17T10:57:59+0300] [ALPM] reinstalled glibc-locales (2.32-2)
[2021-11-17T10:59:31+0300] [ALPM] running '60-glibc-locales.hook'...
[2021-11-17T11:52:50+0300] [ALPM] reinstalled glibc-locales (2.32-2)
[2021-11-17T11:54:18+0300] [ALPM] running '60-glibc-locales.hook'...
[2021-11-17T11:59:40+0300] [ALPM] running '60-glibc-locales.hook'...
[2021-11-17T12:06:05+0300] [ALPM] reinstalled glibc-locales (2.32-2)
[2021-11-17T12:30:04+0300] [ALPM] running '60-glibc-locales.hook'...
[2021-11-17T14:17:11+0300] [ALPM] running '60-glibc-locales.hook'...
[2021-11-18T23:22:22+0300] [ALPM] running '60-glibc-locales.hook'...
[2021-11-18T23:24:20+0300] [ALPM] running '60-glibc-locales.hook'...
~/Desktop ❯ 

I do not remember what so many package reinstall was for, but OS was installed on a week before it:

~/Desktop ❯ head /var/log/pacman.log             
[2021-08-17T11:26:01+0100] [PACMAN] Running 'pacman --noconfirm --cachedir /var/cache/pacman/pkg --config /opt/mhwd/pacman-mhwd.conf --root / --needed -Sy xf86-video-ati xf86-video-amdgpu xf86-video-intel xf86-video-nouveau vulkan-intel vulkan-radeon libva-mesa-driver libva-vdpau-driver mesa-vdpau lib32-vulkan-intel lib32-vulkan-radeon lib32-libva-vdpau-driver lib32-mesa-vdpau'
[2021-08-17T11:26:01+0100] [PACMAN] synchronizing package lists
[2021-08-17T11:26:01+0100] [ALPM] transaction started
[2021-08-17T11:26:01+0100] [ALPM] installed xf86-video-ati (1:19.1.0-2)
[2021-08-17T11:26:01+0100] [ALPM] installed xf86-video-amdgpu (21.0.0-1)
[2021-08-17T11:26:01+0100] [ALPM] installed libxvmc (1.0.12-3)
[2021-08-17T11:26:01+0100] [ALPM] installed xf86-video-intel (1:2.99.917+916+g31486f40-1)
[2021-08-17T11:26:01+0100] [ALPM-SCRIPTLET] >>> This driver now uses DRI3 as the default Direct Rendering
[2021-08-17T11:26:01+0100] [ALPM-SCRIPTLET]     Infrastructure. You can try falling back to DRI2 if you run
[2021-08-17T11:26:01+0100] [ALPM-SCRIPTLET]     into trouble. To do so, save a file with the following 
~/Desktop ❯ 

glibc-locales was added during Pinephone development and adopted to x64 also. With this you don’t have to bother with locales as you have all installed. Especially in Phosh and Gnome they are needed if you want to run the First-Run-Wizard and select languages.

I know what the issue is. Since locale-gen got replaced by glibc it doesn’t work. I’ve also to replace that to make it work when glibc-locales is installed.

1 Like

@alven: Remove glibc-locales and maybe reinstall glibc after, you should be good to go.

EDIT: Or wait for glibc-locales 2.33-1 to land and try that.

1 Like

OK I’ve fixed it. Will push it to all branches soon.

[phil@development phosh-project]$ sudo pacman -S glibc
[sudo] Passwort für phil: 
Warnung: glibc-2.33-5 ist aktuell -- Reinstalliere
Abhängigkeiten werden aufgelöst …
Nach in Konflikt stehenden Paketen wird gesucht …

Pakete (1) glibc-2.33-5

Gesamtgröße der installierten Pakete:  46,01 MiB
Größendifferenz der Aktualisierung:     0,00 MiB

:: Installation fortsetzen? [J/n] 
(1/1) Schlüssel im Schlüsselbund werden geprüft    [######################] 100%
(1/1) Paket-Integrität wird überprüft              [######################] 100%
(1/1) Paket-Dateien werden geladen                 [######################] 100%
(1/1) Auf Dateikonflikte wird geprüft              [######################] 100%
(1/1) Verfügbarer Festplattenspeicher wird erm...  [######################] 100%
:: Paketänderungen werden verarbeitet …
(1/1) Reinstalliert wird glibc                     [######################] 100%
Generating locales...
  aa_ER.UTF-8@saaho... done
  be_BY.UTF-8... done
  de_DE.UTF-8... done
  en_US.UTF-8... done
  en_US.UTF-8... done
  de_DE.UTF-8... done
Generation complete.
:: Post-transaction-Hooks werden gestartet …
(1/8) Reloading system manager configuration...
(2/8) Creating temporary files...
(3/8) Arming ConditionNeedsUpdate...
(4/8) Restoring locales
(5/8) Restarting cronie for libc upgrade...
(6/8) Modifying 'locale-gen'
(7/8) Checking which packages need to be rebuilt
foreign	python-iniherit
(8/8) Updating the info directory file...
2 Likes
~/Desktop ❯ pacman -Qi glibc-locales | grep Require
Required By     : None
~/Desktop ❯ 

Hm, then why I ever have the package?..

~/Desktop ❯ locale
LANG=en_GB.UTF-8
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=
~/Desktop ❯ man locale    
~/Desktop ❯ sudo pacman -Rsun glibc-locales
checking dependencies...

Package (1)    Old Version  Net Change 

glibc-locales  2.32-2       -188.14 MiB

Total Removed Size:  188.14 MiB

:: Do you want to remove these packages? [Y/n] 
:: Processing package changes...
(1/1) removing glibc-locales                                                                                      [####################################################################] 100%
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Refreshing PackageKit...
~/Desktop ❯ sudo pacman -Scc               

Cache directory: /var/cache/pacman/pkg/
:: Do you want to remove ALL files from cache? [y/N] y
removing all files from cache...

Database directory: /var/lib/pacman/
:: Do you want to remove unused repositories? [Y/n] 
removing unused sync repositories...
~/Desktop ❯ sudo pacman -S glibc
warning: glibc-2.33-5 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Package (1)  Old Version  New Version  Net Change  Download Size

core/glibc   2.33-5       2.33-5         0.00 MiB       9.83 MiB

Total Download Size:    9.83 MiB
Total Installed Size:  46.01 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 glibc-2.33-5-x86_64                                                                    9.8 MiB  2.94 MiB/s 00:03 [####################################################################] 100%
(1/1) checking keys in keyring                                                                                    [####################################################################] 100%
(1/1) checking package integrity                                                                                  [####################################################################] 100%
(1/1) loading package files                                                                                       [####################################################################] 100%
(1/1) checking for file conflicts                                                                                 [####################################################################] 100%
(1/1) checking available disk space                                                                               [####################################################################] 100%
:: Processing package changes...
(1/1) reinstalling glibc                                                                                          [####################################################################] 100%
Generating locales...
  en_US.UTF-8... done
Generation complete.
:: Running post-transaction hooks...
(1/6) Reloading system manager configuration...
(2/6) Creating temporary files...
(3/6) Arming ConditionNeedsUpdate...
(4/6) Restarting cronie for libc upgrade...
(5/6) Refreshing PackageKit...
(6/6) Updating the info directory file...
~/Desktop ❯ 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=en_GB.UTF-8
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=
~/Desktop ❯ man locale
man: can't set the locale; make sure $LC_* and $LANG are correct
~/Desktop ❯ 

cscs, Mark, we were close. Now something not logged involved.
I saw Philip’s post above, did not tried it yet.

Because it was added to our ISO profiles at some point:

shared/Packages-Root:glibc-locales
community/openbox/Packages-Root:glibc-locales
1 Like

Think more like this: if you update glibc and have all locale enabled it will take hours for the Pinephone to compile. And here is the run with an 8 core Server ARM CPU …

1 Like

May be that’s the key phrase. May be a user needs to select a set of used locales? Oh, may be to leave ability to switch a user locale anytime, it needs all, I got it.
Then may be to split ARM scripts/profiles from x86-64?

PS
After that removal I lost my pill for cure :slight_smile: :

~/Desktop ❯ sudo locale-gen     
Generating locales...
  en_US.UTF-8... done
Generation complete.
~/Desktop ❯ man locale     
man: can't set the locale; make sure $LC_* and $LANG are correct

~/Desktop ❯ 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=en_GB.UTF-8
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=
~/Desktop ❯ 

EDIT
Simple installation includes a pill inside of it’s actions:

~/Desktop ❯ sudo pacman -Syu glibc-locales
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community                                                                              6.7 MiB  1727 KiB/s 00:04 [####################################################################] 100%
 multilib is up to date
 kde-unstable is up to date
 chaotic-aur                                                                         1619.4 KiB  1085 KiB/s 00:01 [####################################################################] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Package (1)              New Version  Net Change  Download Size

community/glibc-locales  2.32-2       188.14 MiB      10.73 MiB

Total Download Size:    10.73 MiB
Total Installed Size:  188.14 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 glibc-locales-2.32-2-x86_64                                                           10.7 MiB  2.99 MiB/s 00:04 [####################################################################] 100%
(1/1) checking keys in keyring                                                                                    [####################################################################] 100%
(1/1) checking package integrity                                                                                  [####################################################################] 100%
(1/1) loading package files                                                                                       [####################################################################] 100%
(1/1) checking for file conflicts                                                                                 [####################################################################] 100%
(1/1) checking available disk space                                                                               [####################################################################] 100%
:: Processing package changes...
(1/1) installing glibc-locales                                                                                    [####################################################################] 100%
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Refreshing PackageKit...
~/Desktop ❯ man locale
~/Desktop ❯ locale
LANG=en_GB.UTF-8
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=
~/Desktop ❯ 

That’s why I suggested to reinstall glibc after removing glibc-locales so it will run it’s post_upgrade() commands.

1 Like

But I did it: Reinstalling glibc introduces `call to execv failed (No such file or directory)` on the `Restoring locales` stage - #8 by alven

Oh, duh. Sorry, missed that you did. So everything is fine now, right? :grin:

1 Like

Yeah, ok, we did it, now everybody can go home. Closing the thread with “fixed for me”/“I found the pill for me” :grinning_face_with_smiling_eyes:

Oh yeah? How are you planning on doing that? :stuck_out_tongue_winking_eye:

photo_2021-11-18_15-40-29

I miss @tbg

1 Like

If to leave jokes away, we are awaiting Philip’s fix to be ready and pushed into unstable: I expect it will contain automated fix for all. That’s was the purpose of the thread.

BTW,
Did you mean “Mark Wagie it solved”? :slight_smile: Previously I thought by template as “to mark it solved”.

It was done before he even posted:

:: Pulling changes...
 obtaining remote repository packages...
   remove  community/x86_64/glibc-locales-2.32-2-x86_64.pkg.tar.zst
   create  community/x86_64/glibc-locales-2.33-1-x86_64.pkg.tar.zst
:: Branch is up-to-date now.

:laughing: No, but that’s a good one. A valued member on our old forum had a Mark it Solved! badge he created.

EDIT: @cscs found it and above post edited. :grin:

1 Like

OMG!

~/Desktop ❯ locale         
LANG=en_GB.UTF-8
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=
~/Desktop ❯ man locale            
~/Desktop ❯ man whatis
~/Desktop ❯ sudo pacman -Syu
:: Synchronising package databases...
 core is up to date
 extra is up to date
 community                                                                              6.7 MiB   798 KiB/s 00:09 [####################################################################] 100%
 multilib is up to date
 kde-unstable is up to date
 chaotic-aur                                                                         1619.4 KiB  1710 KiB/s 00:01 [####################################################################] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Package (1)              Old Version  New Version  Net Change  Download Size

community/glibc-locales  2.32-2       2.33-1         0.00 MiB      52.02 MiB

Total Download Size:    52.02 MiB
Total Installed Size:  188.14 MiB
Net Upgrade Size:        0.00 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 glibc-locales-2.33-1-x86_64                                                           52.0 MiB  1787 KiB/s 00:30 [####################################################################] 100%
(1/1) checking keys in keyring                                                                                    [####################################################################] 100%
(1/1) checking package integrity                                                                                  [####################################################################] 100%
(1/1) loading package files                                                                                       [####################################################################] 100%
(1/1) checking for file conflicts                                                                                 [####################################################################] 100%
(1/1) checking available disk space                                                                               [####################################################################] 100%
:: Processing package changes...
(1/1) upgrading glibc-locales                                                                                     [####################################################################] 100%
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Refreshing PackageKit...
~/Desktop ❯ man whatis      
~/Desktop ❯ man locale      
~/Desktop ❯ locale          
LANG=en_GB.UTF-8
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=
~/Desktop ❯ sudo pacman -S glibc
warning: glibc-2.33-5 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Package (1)  Old Version  New Version  Net Change

core/glibc   2.33-5       2.33-5         0.00 MiB

Total Installed Size:  46.01 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                                                                    [####################################################################] 100%
(1/1) checking package integrity                                                                                  [####################################################################] 100%
(1/1) loading package files                                                                                       [####################################################################] 100%
(1/1) checking for file conflicts                                                                                 [####################################################################] 100%
(1/1) checking available disk space                                                                               [####################################################################] 100%
:: Processing package changes...
(1/1) reinstalling glibc                                                                                          [####################################################################] 100%
Generating locales...
  en_US.UTF-8... done
Generation complete.
:: Running post-transaction hooks...
(1/8) Reloading system manager configuration...
(2/8) Creating temporary files...
(3/8) Arming ConditionNeedsUpdate...
(4/8) Restoring locales
(5/8) Restarting cronie for libc upgrade...
(6/8) Refreshing PackageKit...
(7/8) Modifying 'locale-gen'
(8/8) Updating the info directory file...
~/Desktop ❯ locale              
LANG=en_GB.UTF-8
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=
~/Desktop ❯ man locale          
~/Desktop ❯ man whatis          
~/Desktop ❯ 

I do not know who Philip or Mark killed the issue, but that at-least-a-year-duration issue is dead now.

Please someone choose the right post which solved it.

THANK YOU!

:firecracker: :fireworks: :balloon:

You are someone. :wink:

1 Like

I simply fixed the hook …

1 Like

I have related query: may be these fields

~/Desktop ❯ pacman -Qi glibc-locales | grep -iE "desc|optional for"
Description     : None
Optional For    : None

needs to be filled?
Optional For glibc, for example