Ubuntu 22.0安装中文输入法
在 Ubuntu 22.04 (或 22.x 系列) 上安装中文输入法,推荐使用 fcitx5(新一代输入法框架,比 ibus 更好用,兼容性也好)。以下是详细步骤:
一、安装输入法框架和中文引擎
打开终端,执行:
sudo apt update
sudo apt install fcitx5 fcitx5-chinese-addons fcitx5-config-qt fcitx5-configtool
这会安装:
- fcitx5:输入法框架
- fcitx5-chinese-addons:常用中文输入法(拼音、五笔等)
- fcitx5-configtool:输入法配置工具
如果你习惯 ibus 也可以安装:
sudo apt install ibus ibus-pinyin ibus-libpinyin ibus-clutter
二、设置系统输入法
- 打开 系统设置 → 地区与语言(Region & Language)
- 找到 输入法(Input Method) 或 管理已安装的语言(Manage Installed Languages)
- 在 键盘输入法系统 里选择
fcitx5
(或 ibus,如果你装了 ibus)
如果没有 fcitx5
选项,执行:
im-config -n fcitx5
三、配置输入法
-
重启系统,或注销后重新登录。
-
系统托盘(右上角)会出现 键盘/地球图标。
-
点击进入 配置,添加输入法:
- Chinese → Pinyin (拼音)
- 或 Chinese → Wubi(五笔)
-
通过
Ctrl + Space
切换中英文输入。
四、额外优化(推荐)
如果你想要更好看的界面,可以安装 fcitx5 的皮肤和云拼音:
sudo apt install fcitx5-material-color fcitx5-pinyin-zhwiki
- fcitx5-material-color:美观主题
- fcitx5-pinyin-zhwiki:更强大的拼音词库