这个命令是 glibc 提供的啊。你看看你的 $PATH 是不是不对?
解决了 重新安装了glibc 就好了
root@archboot / # echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/bin
root@archboot / # pacman -S glibc
warning: glibc-2.35-5.1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Packages (1) glibc-2.35-5.1
Total Download Size: 8.83 MiB
Total Installed Size: 40.46 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n]
:: Retrieving packages...
glibc-2.35-5.1-aarch64 8.8 MiB 151 KiB/s 01:00 [##################################] 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%
:: Processing package changes...
(1/1) reinstalling glibc [##################################] 100%
Generating locales...
Generation complete.
root@archboot / # 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=C.UTF-8
LC_CTYPE="C.UTF-8"
LC_NUMERIC="C.UTF-8"
LC_TIME="C.UTF-8"
LC_COLLATE=C
LC_MONETARY="C.UTF-8"
LC_MESSAGES="C.UTF-8"
LC_PAPER="C.UTF-8"
LC_NAME="C.UTF-8"
LC_ADDRESS="C.UTF-8"
LC_TELEPHONE="C.UTF-8"
LC_MEASUREMENT="C.UTF-8"
LC_IDENTIFICATION="C.UTF-8"
LC_ALL=
root@archboot / # cat /etc/locale.conf
LANG=C.UTF-8
LC_COLLATE=C
root@archboot / # cat /etc/locale-gen
en_US.UTF-8 UTF-8
最近编辑记录 小钧翊 (2022-07-27 08:09:54)
离线
啊,原来是 glibc 有问题啊。
离线