(問題解決)Cannot set LC_CTYPE to default locale: No such file or directory
環境:
[root@blliu Server]# more /etc/issue
Red Hat Enterprise Linux Server release 5.4 (Tikanga)
[root@blliu Server]# uname -a
Linux blliu 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
錯誤描述:
[root@blliu Server]#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_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8
網上google了一下找到一篇文章
發現是glibc-common包沒有安裝,找來x86_64的安裝盤安裝此包:
[root@blliu Server]# rpm -ivh glibc-common-2.5-42.x86_64.rpm
warning: glibc-common-2.5-42.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:glibc-common ########################################### [100%]
error: unpacking of archive failed on file /usr/lib/locale/zh_TW/LC_COLLATE;4b653625: cpio: MD5 sum mismatch
發現安裝不上。
於是又上網google,找到類似問題,有的說是檔案不完整,於是找來i386的光碟來安裝glibc-common包:
[root@blliu Server]# rpm -ivh glibc-common-2.5-42.i386.rpm
warning: glibc-common-2.5-42.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:glibc-common ########################################### [100%]
[root@blliu Server]# locale
LANG=zh_CN.gb2312
LC_CTYPE="zh_CN.gb2312"
LC_NUMERIC="zh_CN.gb2312"
LC_TIME="zh_CN.gb2312"
LC_COLLATE="zh_CN.gb2312"
LC_MONETARY="zh_CN.gb2312"
LC_MESSAGES="zh_CN.gb2312"
LC_PAPER="zh_CN.gb2312"
LC_NAME="zh_CN.gb2312"
LC_ADDRESS="zh_CN.gb2312"
LC_TELEPHONE="zh_CN.gb2312"
LC_MEASUREMENT="zh_CN.gb2312"
LC_IDENTIFICATION="zh_CN.gb2312"
LC_ALL=zh_CN.gb2312
問題解決!
還參考瞭如下文章:http://hi.baidu.com/edeed/blog/item/2e99a14440bd8884b2b7dcb1.html
--over--
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/23135684/viewspace-626490/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Mac Iterm2 連結伺服器報:LC_CTYPE: cannot change locale (UTF-8): No such file or directory 解決方案Mac伺服器
- Centos: 解決系統編碼 locale 的 LC_CTYPE / LC_ALL 問題CentOS
- Docker啟動故障問題 no such file or directory解決方法Docker
- mac下/usr/local/bin No such file or directory問題解決Mac
- 問題1.libXp.so.6: cannot open shared object file: No such file or directoryObject
- couldn't set locale correctly報錯解決
- 500 OOPS: cannot change directory問題OOP
- gitbook no such file or directory 怎麼解決Git
- libmysqlclient.so.16: cannot open shared object file: No such file or directoryIBMMySqlclientObject
- libcap.so.1:cannot open shared object file: No such file or directoryObject
- libXext.so.6: cannot open shared object file: No such file or directoryObject
- libz.so.1: cannot open shared object file: No such file or directoryObject
- MogDB 安裝解壓錯誤:cannot run bzip2: No such file or directory
- ImportError: libffi.so.7: cannot open shared object file: No such file or directoryImportErrorObject
- tar (child): bzip2: Cannot exec: No such file or directory 報錯
- Jquery DataTables解決 Cannot reinitialise DataTable 問題jQuery
- 452 Error writing file: A file cannot be larger than the value set by ulimit.ErrorMIT
- 解決set newname 極慢的問題
- 記錄 libldap-2.4.so.2: cannot open shared object file: No such file or directoryLDAObject
- TypeError: Descriptors cannot not be created directly問題的解決Error
- Cannot find SS.INI file for user *** 解決方法
- 解決The jar file has no source attachment問題JAR
- Cannot connect on socket(25)_NetBackup 問題解決
- 解決“/bin/bash^M: bad interpreter: No such file or directory”
- 呼叫torchtext報錯OSError: libtorch_cpu.so: cannot open shared object file: No such file or directoryErrorObject
- shared libraries: libpthread.so.0: cannot open shared object file: No such file or directorythreadObject
- vsftpd中遇到500 OOPS: cannot change directory的解決方案FTPOOP
- su cannot set user id Resource temporarily unavailable故障解決AI
- Ubuntu下 fatal error: Python.h: No such file or directory 解決方法UbuntuErrorPython
- “default”標籤跳過“ ”的初始化操作----問題解決
- gunzip時,提示file too large(問題已解決)
- Docker 容器中“TERM environment variable not set.”問題解決Docker
- Failed to load libGL.so error libGL.so: cannot open shared object file: No such file or directoryAIErrorObject
- Oracle ASM File DirectoryOracleASM
- redhat vsftpd及vsftpd 500 OOPS: cannot change directory錯誤解決RedhatFTPOOP
- spring boot 服務啟動時no active profile set, falling back to default profiles: default的問題Spring Boot
- conda環境下ImportError: libmkl_intel_lp64.so.1: cannot open shared object file問題解決ImportErrorIBMIntelObject
- 解決問題:Variable 'time_zone' can't be set to the value of 'NULL'Null