ubuntu 16.04 英文版命令行安装中文语言包

原创 2017年04月18日 09:20:48

     欢迎浏览本博客 

      最近使用VPS,升级了配置从512M升级到1G,顺便把系统从centOS换成ubuntu16.04 server版,毕竟个人使用还是Ubuntu比较方便,自己的服务程序和数据比较少,用Ubuntu安装比较省心。VPS镜像选择了Ubuntu 16.04 英文版后,发现原来存放的中文文件名称ls出来都是乱码。

 keki@ubuntu$  ls
 ??????.txt     ??????   hello.cpp  notes


     由于文件内容是从老的VPS centOS上复制的,知道是因为中文语言包没安装问题。笔记本安装的ubuntu是桌面的,安装语言包非常方便,桌面版本选择如下“System”->System Settings>“Language Support” 再选择中文语言包安装

(一)、进入系统设置 System Settings


(二)、 选择“Language Support”


(三)、 先点击install安装


(四)、 选择“汉语(中国)” — — Apply-System-Wide


        静待下载完成,一切大功告成!


二、 使用命令行安装语言包

         可是VPS上的ubuntu server只能远程ssh,只能使用命令行安装。命令行我们只能用apt-get安装了

        首先介绍一下apt-get中的语言包如下

language-pack-af                  language-pack-gnome-ka            language-pack-kde-pl
language-pack-af-base             language-pack-gnome-ka-base       language-pack-kde-pt
language-pack-am                  language-pack-gnome-kk            language-pack-kde-ro
language-pack-am-base             language-pack-gnome-kk-base       language-pack-kde-ru
language-pack-an                  language-pack-gnome-km            language-pack-kde-si
language-pack-an-base             language-pack-gnome-km-base       language-pack-kde-sk
language-pack-ar                  language-pack-gnome-kn            language-pack-kde-sl
language-pack-ar-base             language-pack-gnome-kn-base       language-pack-kde-sr
language-pack-as                  language-pack-gnome-ko            language-pack-kde-sv
language-pack-as-base             language-pack-gnome-ko-base       language-pack-kde-tg
language-pack-ast                 language-pack-gnome-ku            language-pack-kde-th
language-pack-ast-base            language-pack-gnome-ku-base       language-pack-kde-tr
language-pack-az                  language-pack-gnome-lt            language-pack-kde-ug
language-pack-az-base             language-pack-gnome-lt-base       language-pack-kde-uk
language-pack-be                  language-pack-gnome-lv            language-pack-kde-vi
language-pack-be-base             language-pack-gnome-lv-base       language-pack-kde-zh-hans
language-pack-bg                  language-pack-gnome-mai           language-pack-kde-zh-hant
language-pack-bg-base             language-pack-gnome-mai-base      language-pack-kk
language-pack-bn                  language-pack-gnome-mk            language-pack-kk-base
language-pack-bn-base             language-pack-gnome-mk-base       language-pack-km
language-pack-bo                  language-pack-gnome-ml            language-pack-km-base
language-pack-bo-base             language-pack-gnome-ml-base       language-pack-kn
language-pack-br                  language-pack-gnome-mn            language-pack-kn-base
language-pack-br-base             language-pack-gnome-mn-base       language-pack-ko
language-pack-bs                  language-pack-gnome-mr            language-pack-ko-base
language-pack-bs-base             language-pack-gnome-mr-base       language-pack-ku
language-pack-ca                  language-pack-gnome-ms            language-pack-ku-base
language-pack-ca-base             language-pack-gnome-ms-base       language-pack-lt
language-pack-crh                 language-pack-gnome-my            language-pack-lt-base
language-pack-crh-base            language-pack-gnome-my-base       language-pack-lv
language-pack-cs                  language-pack-gnome-nb            language-pack-lv-base
language-pack-cs-base             language-pack-gnome-nb-base       language-pack-mai
language-pack-cy                  language-pack-gnome-nds           language-pack-mai-base
language-pack-cy-base             language-pack-gnome-nds-base      language-pack-mk
language-pack-da                  language-pack-gnome-ne            language-pack-mk-base
language-pack-da-base             language-pack-gnome-ne-base       language-pack-ml
language-pack-de                  language-pack-gnome-nl            language-pack-ml-base
language-pack-de-base             language-pack-gnome-nl-base       language-pack-mn
language-pack-dz                  language-pack-gnome-nn            language-pack-mn-base
language-pack-dz-base             language-pack-gnome-nn-base       language-pack-mr
language-pack-el                  language-pack-gnome-oc            language-pack-mr-base
language-pack-el-base             language-pack-gnome-oc-base       language-pack-ms
language-pack-en                  language-pack-gnome-or            language-pack-ms-base
language-pack-en-base             language-pack-gnome-or-base       language-pack-my
language-pack-eo                  language-pack-gnome-pa            language-pack-my-base
language-pack-eo-base             language-pack-gnome-pa-base       language-pack-nb
language-pack-es                  language-pack-gnome-pl            language-pack-nb-base
language-pack-es-base             language-pack-gnome-pl-base       language-pack-nds
language-pack-et                  language-pack-gnome-pt            language-pack-nds-base
language-pack-et-base             language-pack-gnome-pt-base       language-pack-ne
language-pack-eu                  language-pack-gnome-ro            language-pack-ne-base
language-pack-eu-base             language-pack-gnome-ro-base       language-pack-nl
language-pack-fa                  language-pack-gnome-ru            language-pack-nl-base
language-pack-fa-base             language-pack-gnome-ru-base       language-pack-nn
language-pack-fi                  language-pack-gnome-si            language-pack-nn-base
language-pack-fi-base             language-pack-gnome-si-base       language-pack-oc
language-pack-fr                  language-pack-gnome-sk            language-pack-oc-base
language-pack-fr-base             language-pack-gnome-sk-base       language-pack-or
language-pack-ga                  language-pack-gnome-sl            language-pack-or-base
language-pack-ga-base             language-pack-gnome-sl-base       language-pack-pa
language-pack-gd                  language-pack-gnome-sq            language-pack-pa-base
language-pack-gd-base             language-pack-gnome-sq-base       language-pack-pl
language-pack-gl                  language-pack-gnome-sr            language-pack-pl-base
language-pack-gl-base             language-pack-gnome-sr-base       language-pack-pt
language-pack-gnome-af            language-pack-gnome-sv            language-pack-pt-base
language-pack-gnome-af-base       language-pack-gnome-sv-base       language-pack-ro
language-pack-gnome-am            language-pack-gnome-ta            language-pack-ro-base
language-pack-gnome-am-base       language-pack-gnome-ta-base       language-pack-ru
language-pack-gnome-an            language-pack-gnome-te            language-pack-ru-base
language-pack-gnome-an-base       language-pack-gnome-te-base       language-pack-si
language-pack-gnome-ar            language-pack-gnome-tg            language-pack-si-base
language-pack-gnome-ar-base       language-pack-gnome-tg-base       language-pack-sk
language-pack-gnome-as            language-pack-gnome-th            language-pack-sk-base
language-pack-gnome-as-base       language-pack-gnome-th-base       language-pack-sl
language-pack-gnome-ast           language-pack-gnome-tr            language-pack-sl-base
language-pack-gnome-ast-base      language-pack-gnome-tr-base       language-pack-sq
language-pack-gnome-az            language-pack-gnome-ug            language-pack-sq-base
language-pack-gnome-az-base       language-pack-gnome-ug-base       language-pack-sr
language-pack-gnome-be            language-pack-gnome-uk            language-pack-sr-base
language-pack-gnome-be-base       language-pack-gnome-uk-base       language-pack-sv
language-pack-gnome-bg            language-pack-gnome-uz            language-pack-sv-base
language-pack-gnome-bg-base       language-pack-gnome-uz-base       language-pack-ta
language-pack-gnome-bn            language-pack-gnome-vi            language-pack-ta-base
language-pack-gnome-bn-base       language-pack-gnome-vi-base       language-pack-te
language-pack-gnome-bo            language-pack-gnome-xh            language-pack-te-base
language-pack-gnome-bo-base       language-pack-gnome-xh-base       language-pack-tg
language-pack-gnome-br            language-pack-gnome-zh-hans       language-pack-tg-base
language-pack-gnome-br-base       language-pack-gnome-zh-hans-base  language-pack-th
language-pack-gnome-bs            language-pack-gnome-zh-hant       language-pack-th-base
language-pack-gnome-bs-base       language-pack-gnome-zh-hant-base  language-pack-touch-ast
language-pack-gnome-ca            language-pack-gu                  language-pack-touch-bg
language-pack-gnome-ca-base       language-pack-gu-base             language-pack-touch-bs
language-pack-gnome-crh           language-pack-he                  language-pack-touch-ca
language-pack-gnome-crh-base      language-pack-he-base             language-pack-touch-cs
language-pack-gnome-cs            language-pack-hi                  language-pack-touch-da
language-pack-gnome-cs-base       language-pack-hi-base             language-pack-touch-de
language-pack-gnome-cy            language-pack-hr                  language-pack-touch-el
language-pack-gnome-cy-base       language-pack-hr-base             language-pack-touch-en
language-pack-gnome-da            language-pack-hu                  language-pack-touch-es
language-pack-gnome-da-base       language-pack-hu-base             language-pack-touch-eu
language-pack-gnome-de            language-pack-ia                  language-pack-touch-fi
language-pack-gnome-de-base       language-pack-ia-base             language-pack-touch-fr
language-pack-gnome-dz            language-pack-id                  language-pack-touch-gd
language-pack-gnome-dz-base       language-pack-id-base             language-pack-touch-gl
language-pack-gnome-el            language-pack-is                  language-pack-touch-he
language-pack-gnome-el-base       language-pack-is-base             language-pack-touch-hr
language-pack-gnome-en            language-pack-it                  language-pack-touch-hu
language-pack-gnome-en-base       language-pack-it-base             language-pack-touch-id
language-pack-gnome-eo            language-pack-ja                  language-pack-touch-it
language-pack-gnome-eo-base       language-pack-ja-base             language-pack-touch-ja
language-pack-gnome-es            language-pack-ka                  language-pack-touch-ko
language-pack-gnome-es-base       language-pack-ka-base             language-pack-touch-lt
language-pack-gnome-et            language-pack-kde-ar              language-pack-touch-lv
language-pack-gnome-et-base       language-pack-kde-bg              language-pack-touch-ms
language-pack-gnome-eu            language-pack-kde-bs              language-pack-touch-nb
language-pack-gnome-eu-base       language-pack-kde-ca              language-pack-touch-nl
language-pack-gnome-fa            language-pack-kde-cs              language-pack-touch-oc
language-pack-gnome-fa-base       language-pack-kde-da              language-pack-touch-pa
language-pack-gnome-fi            language-pack-kde-de              language-pack-touch-pl
language-pack-gnome-fi-base       language-pack-kde-el              language-pack-touch-pt
language-pack-gnome-fr            language-pack-kde-en              language-pack-touch-ro
language-pack-gnome-fr-base       language-pack-kde-es              language-pack-touch-ru
language-pack-gnome-ga            language-pack-kde-et              language-pack-touch-sk
language-pack-gnome-ga-base       language-pack-kde-eu              language-pack-touch-sl
language-pack-gnome-gd            language-pack-kde-fa              language-pack-touch-sr
language-pack-gnome-gd-base       language-pack-kde-fi              language-pack-touch-sv
language-pack-gnome-gl            language-pack-kde-fr              language-pack-touch-tr
language-pack-gnome-gl-base       language-pack-kde-ga              language-pack-touch-ug
language-pack-gnome-gu            language-pack-kde-gl              language-pack-touch-uk
language-pack-gnome-gu-base       language-pack-kde-he              language-pack-touch-zh-hans
language-pack-gnome-he            language-pack-kde-hi              language-pack-touch-zh-hant
language-pack-gnome-he-base       language-pack-kde-hr              language-pack-tr
language-pack-gnome-hi            language-pack-kde-hu              language-pack-tr-base
language-pack-gnome-hi-base       language-pack-kde-ia              language-pack-ug
language-pack-gnome-hr            language-pack-kde-is              language-pack-ug-base
language-pack-gnome-hr-base       language-pack-kde-it              language-pack-uk
language-pack-gnome-hu            language-pack-kde-ja              language-pack-uk-base
language-pack-gnome-hu-base       language-pack-kde-kk              language-pack-uz
language-pack-gnome-ia            language-pack-kde-km              language-pack-uz-base
language-pack-gnome-ia-base       language-pack-kde-ko              language-pack-vi
language-pack-gnome-id            language-pack-kde-lt              language-pack-vi-base
language-pack-gnome-id-base       language-pack-kde-lv              language-pack-xh
language-pack-gnome-is            language-pack-kde-mr              language-pack-xh-base
language-pack-gnome-is-base       language-pack-kde-nb              language-pack-zh-hans
language-pack-gnome-it            language-pack-kde-nds             language-pack-zh-hans-base
language-pack-gnome-it-base       language-pack-kde-nl              language-pack-zh-hant
language-pack-gnome-ja            language-pack-kde-nn              language-pack-zh-hant-base
language-pack-gnome-ja-base       language-pack-kde-pa




中文语言包:
language-pack-zh-hans 简体中文
language-pack-zh-hans-base
language-pack-zh-hant 繁体中文
language-pack-zh-hant-base

gnome界面
language-pack-gnome-zh-hans 简体中文
language-pack-gnome-zh-hans-base
language-pack-gnome-zh-hant 繁体中文
language-pack-gnome-zh-hant-base

kde界面
language-pack-kde-zh-hans
language-pack-kde-zh-hant
到这里就能够查看目录下面的中文字符了。

安装中文语言包

sudo apt-get install  language-pack-zh-han*


安装gnome包

sudo apt-get install   language-pack-gnome-zh-han*


安装kde包

sudo apt-get install   language-pack-kde-zh-han*

到这里就能够查看目录下面的中文字符了。


最后运行语言支持检查

sudo apt install $(check-language-support)

会更新最新的语言支持包

Ubuntu16.04中文语言包下载失败原因解决问题

刚接触Ubuntu 搞了个英文版的 按照网上教程下载语言包的时候总是会弹出 Fail to download package 和提醒我disconnect 大意是这样 查看detail显示如下 sec...

[Ubuntu--Install]Ubuntu16.04安装中文输入法

简述Ubuntu16.04安装完后,和12.04以及14.04都不一样,并没有中文输入功能。于是搜索一些安装中文输入法的方法。 开始安装了ibus pinyin输入法,但是系统重启之后发现有些时候不...

ubuntu 中添加中文支持

1、ubuntu 中安装中文语言包 & 中文输入法 默认安装的 ubuntu 中只有英文语言,因此是不能显示汉字的。要正确显示汉字,需要安装中文语言包。单击左侧图标栏打开 System Settin...

Ubuntu安装中文语言包

使用Ubuntu 默认的界面感觉不习惯,于是安装KDE界面。 1.安装kde         使用命令行:                  sudo apt-get install kubunt...

【新手推荐】Ubuntu12.04英文版安装中文语言包及输入法

在安装中文语言包和中文输入法之前,我先配置好了pc-arm的交叉编译环境和QT,因为我要在qt中使用中文,所以不知道是否应该先把开发环境配置好再安装输入法。 1.更新源列表: ubuntu上的软件安装...

Ubuntu安装中文语言包

Ubuntu安装中文语言包及中文输入法的问题。即使自己在安装的时候选择了中文语言,新安装的Ubuntu的中文支持还是非常薄弱的,连个最基本的中文输入法都没有~除非你用的是Ubuntu DVD版。 正...

英文Ubuntu系统安装中文支持,中文UTF-8

from : http://www.4wei.cn/archives/1001458 海哥没事折腾了一个国外的VPS做实验,发现通过VPS管理后台安装的操作系统全部不支持中文...

英文Ubuntu系统安装中文支持,中文…

第一步,安装中文包: sudo apt-get install language-pack-zh language-pack-zh-base 第二步,配置相关环境变量: sudo vim /etc/e...
  • nuoline
  • nuoline
  • 2013年02月25日 18:41
  • 12963

Ubuntu 在命令下,安装中文环境的方法。

安装英文版ubuntu,在打开含有中文字符文件时会乱码,有需要给Ubuntu Server装中文环境...

Ubuntu 14.04 安装中文环境

Ubuntu 14.04 安装中文环境 安装中文语言包sudo apt-get update && sudo apt-get install language-pack-zh-hans...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:ubuntu 16.04 英文版命令行安装中文语言包
举报原因:
原因补充:

(最多只允许输入30个字)