~/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 locale-gen
No manual entry for locale-gen
~/Desktop ❯ man whatis
Reinstalling:
~/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 4.58 MiB/s 00:02 [####################################################################] 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/8) Reloading system manager configuration...
(2/8) Creating temporary files...
(3/8) Arming ConditionNeedsUpdate...
(4/8) Restoring locales
call to execv failed (No such file or directory)
error: command failed to execute correctly
(5/8) Restarting cronie for libc upgrade...
(6/8) Refreshing PackageKit...
(7/8) Modifying 'locale-gen'
(8/8) Updating the info directory file...
Done with that call to execv failed.
Now locales broken:
~/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 ❯ man locale-gen
man: can't set the locale; make sure $LC_* and $LANG are correct
No manual entry for locale-gen
~/Desktop ❯ man whatis
man: can't set the locale; make sure $LC_* and $LANG are correct
~/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 locale-gen
No manual entry for locale-gen
~/Desktop ❯ man whatis
~/Desktop ❯
This is very long duration issue probably a year only on my memory.
While the post contains the fix, the post purpose to make developers to fix that (4/8) Restoring locales stage to make everything goes smoothly and automated.
I did not reach deeper level investigation yet.
Please help to investigate to make Manjaro devs to fix the issue to cut any further user manual intervention.
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.
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.
~/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.
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 …
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?
~/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...
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”? Previously I thought by template as “to mark it solved”.
~/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...