warning: setlocale: LC_CTYPE: cannot change...問題

來源:互聯網
上載者:User

warning: setlocale: LC_CTYPE: cannot change...問題 今天無意中進到終端下root登入出現了下面的錯誤:  www.2cto.com  warning: setlocale: LC_CTYPE: cannot change locale (en_US.utf8): No such file or directorywarning: setlocale: LC_NUMERIC: cannot change locale (en_US.utf8): No such file or directorywarning: setlocale: LC_TIME: cannot change locale (en_US.utf8): No such file or directorywarning: setlocale: LC_COLLATE: cannot change locale (en_US.utf8): No such file or directorywarning: setlocale: LC_MESSAGES: cannot change locale (en_US.utf8): No such file or directory當然我立馬看了"rc.conf"檔案中的“LOCALE:”,沒發現什麼異常,搜尋了下,找到了老外的一篇文章,立馬解決了,由於Archlinux在更新的時候更新了locale包,所以locale.gen檔案被我覆蓋了,而我再修改的時候只開啟了“zh”開頭的幾個,忘了將en開頭的開啟了,不過那個設定檔也真蛋疼,這個預設的雜也被注釋了,還有"rc.conf",原來有大段的注釋,更新之後的pacnew是一個注釋和預設選項都沒有...,最後還是說下解決方案把:en_US.UTF-8 UTF-8  en_US ISO-8859-1 找到這兩個,取消注釋符,然後以root使用者執行“locale-gen”...

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.