三度网教程:是一个免费提供流行视频软件教程、在线学习分享的学习平台!

Ubuntu系统更改Locale时出现出错怎样处理?

时间:2024-1-19作者:未知来源:三度网教程人气:


Linux,全称GNU/Linux,是一种免费使用和自由传播的类UNIX操作系统,其内核由林纳斯·本纳第克特·托瓦兹于1991年10月5日首次发布,它主要受到Minix和Unix思想的启发,是一个基于POSIX的多用户、多任务、支持多线程和多CPU的操作系统。

  Ubuntu修改Locale的目的就是更改Linux系统的语言环境,但是Ubuntu修改Locale经常出现一个错误,导致出现中文乱码等一系列的问题。本文就来介绍一下Ubuntu系统修改Locale过程出现错误怎么解决?

Ubuntu系统修改Locale时出现错误怎么解决?

  问题描述

  终端显示中文正常,应用程序里面显示中文异常。

  错误表现

  1$ sudo dpkg-reconfigure locales

  perl: warning: Setting locale failed.

  perl: warning: Please check that your locale settings:

  LANGUAGE = “zh_CN:zh:en_US:en”,

  LC_ALL = “zh_CN.UTF-8”,

  LANG = “zh_CN.UTF-8”

  are supported and installed on your system.

  perl: warning: Falling back to the standard locale (“C”)。

  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

  /bin/bash: warning: setlocale: LC_ALL: cannot change locale (zh_CN.UTF-8)

  Generating locales.。。

  en_US.UTF-8.。。 /usr/sbin/locale-gen: line 177: warning: setlocale: LC_ALL: cannot change locale (zh_CN.UTF-8)

  up-to-date

  Generation complete.

  1$ man locale

  man: can‘t set the locale; make sure $LC_* and $LANG are correct

  1$ 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=zh_CN.UTF-8

  LANGUAGE=zh_CN:zh:en_US:en

  LC_CTYPE=“zh_CN.UTF-8”

  LC_NUMERIC=“zh_CN.UTF-8”

  LC_TIME=“zh_CN.UTF-8”

  LC_COLLATE=“zh_CN.UTF-8”

  LC_MONETARY=“zh_CN.UTF-8”

  LC_MESSAGES=“zh_CN.UTF-8”

  LC_PAPER=“zh_CN.UTF-8”

  LC_NAME=“zh_CN.UTF-8”

  LC_ADDRESS=“zh_CN.UTF-8”

  LC_TELEPHONE=“zh_CN.UTF-8”

  LC_MEASUREMENT=“zh_CN.UTF-8”

  LC_IDENTIFICATION=“zh_CN.UTF-8”

  LC_ALL=

  1$ localectl list-locales

  C.UTF-8

  en_US.utf8

  zh_CN.utf8

Linux是一套免费使用和自由传播的类Unix操作系统

关键词:  Ubuntu系统更改Locale时出现出错怎样处理?





Copyright © 2012-2018 三度网教程(http://www.3du8.cn) .All Rights Reserved 网站地图 友情链接

免责声明:本站资源均来自互联网收集 如有侵犯到您利益的地方请及时联系管理删除,敬请见谅!

QQ:1006262270   邮箱:kfyvi376850063@126.com   手机版