一、安装Fcitx5
sudo apt update
sudo apt install fcitx5
sudo apt install fcitx5-chinese-addons
二、启动Fcitx5并配置
fcitx5 &
fcitx5-configtool
三、将Pinyin选中加入group后即可选择输入法

/home/li/Downloads/1.png
sudo apt update
sudo apt install fcitx5
sudo apt install fcitx5-chinese-addons
fcitx5 &
fcitx5-configtool

/home/li/Downloads/1.png