升級到Debian testing

升級原因其實滿瞎的,只是因為我想要再server上面跑Genymotion,需要安裝VitrualBox,且我不知道那根筋不對,硬要裝新版的,但又想自動更新,所以就跑去修改了/etc/apt/sources.list,新增了

 # jessie (testing) deb http://ftp.tw.debian.org/debian testing main contrib non-free deb-src http://ftp.tw.debian.org/debian testing main contrib non-free 

瞬間,所有的系統都升級成為testing了,停不下來了,這一跑,跑了好久,下班了都還沒跑完,只好放著不管他了。

早上來上班時,終於完成了,但昨晚一直收到logcheck通知,告訴我

 LANG="zh_TW.UTF-8" LANG="zh_TW.UTF-8" LANGUAGE="zh_TW:zh" LANGUAGE="zh_TW:zh" LC_ALL=(unset) LC_ALL=(unset) are supported and installed on your system. are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Falling back to the standard locale ("C"). perl: warning: Please check that your locale settings: perl: warning: Please check that your locale settings: perl: warning: Setting locale failed. perl: warning: Setting locale failed. 

這情況先前遇過,但忘記怎麼解了,索性Google大神無敵,上網找到了解法,趕快紀錄一下,以免忘記。
在root狀態下,輸入以下5行設定即可。

 export LANGUAGE=en_US.UTF-8 export LANG=en_US.UTF-8 export LC_ALL=en_US.UTF-8 locale-gen en_US.UTF-8 dpkg-reconfigure locales 

若過程中發現,輸入locale-gen出現錯誤,那應該是沒安裝locales,只要執行

 apt-get install locales 

安裝完後,就可以進行後面的設定了。

 

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

這個網站採用 Akismet 服務減少垃圾留言。進一步了解 Akismet 如何處理網站訪客的留言資料