Ubuntu 20.04安装百度拼音输入法

1. 下载

官网下载DEB包:https://srf.baidu.com/site/guanwang_linux/index.html
在这里插入图片描述
解压缩下载好的zip文件:

thanlon@thanlon:~/下载$ unzip Ubuntu_Deepin-fcitx-baidupinyin-64.zip 

在这里插入图片描述

2. 安装

更新和升级系统:

thanlon@thanlon:~$ sudo apt update && sudo apt upgrade -y

安装包管理工具 aptitude

thanlon@thanlon:~$ sudo apt install aptitude

通过aptitude安装输入法依赖的fcitx和qt包:

thanlon@thanlon:~$ sudo aptitude install fcitx-bin fcitx-table fcitx-config-gtk fcitx-config-gtk2 fcitx-frontend-all
thanlon@thanlon:~$ sudo aptitude install qt5-default qtcreator qml-module-qtquick-controls2

安装输入法并解决可能出现的依赖:

thanlon@thanlon:~/下载$ sudo dpkg -i fcitx-baidupinyin.deb
thanlon@thanlon:~/下载$ sudo apt install --fix-broken -y
3. 配置

找到设置中的【区域和语言】,选择【管理已安装的语言】:
在这里插入图片描述
在这里插入图片描述
将键盘输入系统修改为 fcitx键盘输入系统 并应用到整个系统,然后重启系统:
在这里插入图片描述
系统重启后会让我们配置输入法,配置完成后就可以使用了:
在这里插入图片描述
在这里插入图片描述
这个时候可以选择性把系统自带的IBus键盘输入法系统给删除:

thanlon@thanlon:~$ sudo apt purge ibus
4. 卸载

卸载输入法:

thanlon@thanlon:~$ sudo dpkg --purge fcitx-baidupinyin:amd64

卸载不需要的依赖包:

# 或者使用:sudo apt autoremove
thanlon@thanlon:~$ sudo aptitude purge fcitx-bin fcitx-table fcitx-config-gtk fcitx-config-gtk2 fcitx-frontend-all
# 卸载qt相关包
thanlon@thanlon:~$ sudo aptitude purge qt5-default qtcreator qml-module-qtquick-controls2
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章