ubuntu安装中文拼音输入法
ubuntu版本为23.04
1、安装中文语言包
首先安装中文输入法必须要让系统支持中文语言,可以在 Language Support 中安装中文语言包。
添加或删除语音选项,添加中文简体,然后会有Applying changes的对话框,等待完成
选择IBus
2、安装输入法框架
没有输入框架的需要安装,如果已经有了,就别安装了
输入法必须基于框架,常用的输入法框架有 ibus 和 fcitx,这里选择IBus。
sudo apt install ibus
安装完成后可以在 Language Support 中选择切换为该框架;也可以im-config -s ibus进行设置。
Ubuntu Desktop 20.04 使用的是GNOME桌面,所以需要安装相应的平台支持包:
sudo apt install ibus-gtk ibus-gtk3
3、安装拼音输入法
sudo apt install ibus-pinyin
然后就会出现,提示你是否继续,请输入Y
zxd@zxd-VMware-Virtual-Platform:~$ sudo apt install ibus-pinyin
[sudo] password for zxd:
Sorry, try again.
[sudo] password for zxd:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
liblua5.4-0 libpyzy-1.0-0v5
The following NEW packages will be installed:
ibus-pinyin liblua5.4-0 libpyzy-1.0-0v5
0 upgraded, 3 newly installed, 0 to remove and 110 not upgraded.
Need to get 18.2 MB of archives.
After this operation, 65.0 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu lunar/universe amd64 liblua5.4-0 amd64 5.4.4-3 [151 kB]
Get:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu lunar/universe amd64 libpyzy-1.0-0v5 amd64 1.0.1-8 [17.6 MB]
Get:3 http://mirrors.tuna.tsinghua.edu.cn/ubuntu lunar-updates/universe amd64 ibus-pinyin amd64 1.5.0-8ubuntu23.04.1 [486 kB]
Fetched 18.2 MB in 3s (5,819 kB/s)
Selecting previously unselected package liblua5.4-0:amd64.
(Reading database ... 208456 files and directories currently installed.)
Preparing to unpack .../liblua5.4-0_5.4.4-3_amd64.deb ...
Unpacking liblua5.4-0:amd64 (5.4.4-3) ...
Selecting previously unselected package libpyzy-1.0-0v5.
Preparing to unpack .../libpyzy-1.0-0v5_1.0.1-8_amd64.deb ...
Unpacking libpyzy-1.0-0v5 (1.0.1-8) ...
Selecting previously unselected package ibus-pinyin.
Preparing to unpack .../ibus-pinyin_1.5.0-8ubuntu23.04.1_amd64.deb ...
Unpacking ibus-pinyin (1.5.0-8ubuntu23.04.1) ...
Setting up libpyzy-1.0-0v5 (1.0.1-8) ...
Setting up liblua5.4-0:amd64 (5.4.4-3) ...
Setting up ibus-pinyin (1.5.0-8ubuntu23.04.1) ...
Processing triggers for gnome-menus (3.36.0-1.1ubuntu1) ...
Processing triggers for libc-bin (2.37-0ubuntu2) ...
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu5) ...
安装完成后,然后就是设置键盘
4、键盘设置
打开设置–找到键盘–添加输入法–选择智能输入法
5、切换输入法
点击右上角的“en”,可以切换到“拼”,就能输出中文啦
如果不能通过shift切换中英文,那么执行下第二步。
这个切换输入法的快捷键也是在keybord(键盘)设置中修改,找到首选项–快捷键,然后就可以修改中英文切换
6、参考
ubuntu安装中文拼音输入法,装系统的第一步