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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章