Ubuntu中fcitx安裝失敗問題的原因是ubuntu用的是國外鏡像源,部分軟體下載不了,
對策:
更換國內鏡像源可以使 Ubuntu 的第三方軟體包的下載速度大步提升,這里以更換為阿里源為例:
源檔案的相關資訊在“/etc/apt/”路徑下,使用cd /etc/apt進入檔案
源鏈接存放在檔案[ sources.list ]中,進入檔案:sudo nano sources.list
將[ sources.list ]中的內容都洗掉,替換成下面阿里云的鏈接:
1、進入阿里源官方鏡像站:
https://developer.aliyun.com/mirror/
2、點擊 Ubuntu 進入:
https://developer.aliyun.com/mirror/ubuntu
3.下載復制對應版本的源
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
# 先備份系統原有的軟體源配置
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
# 將復制的阿里源粘貼到新建的 sources.list 中
sudo vi /etc/apt/sources.list
更新軟體源以及更新軟體:
sudo apt-get update && apt-get upgrade
換好源后,根據最后根據這個步驟安裝即可
https://pinyin.sogou.com/linux/guide
個人安裝依次用到的命令如下:
1.sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
(源表備份)
2.sudo vi /etc/apt/sources.list
(vim打開源表,保留原表資訊,然后將aliyun的源直接復制在源表的末尾,保存退出)
3.sudo apt-get update && apt-get upgrade
(更新源表及軟體資訊,直接洗掉源表可能導致以前安裝的軟體找不到路徑打不開了)
4.sudo apt-get install fcitx(安裝fcitx,中間需要下載漢字(簡體版))
5.sudo dpkg -i sogoupinyin_4.0.1.2123_amd64.deb(安裝搜狗輸入法,這一步需要提前在https://pinyin.sogou.com/linux/guide下載好linux)
6.安裝輸入法依賴
在終端執行
sudo apt install libqt5qml5 libqt5quick5 libqt5quickwidgets5 qml-module-qtquick2
sudo apt install libgsettings-qt1
7.重啟系統
8.設定將搜狗^頂上去,第一個即可,完成漢字輸入(最后刪掉搜狗安裝包即可)


本文轉自:https://blog.csdn.net/weixin_42192030/article/details/124597438
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/492012.html
標籤:其他
上一篇:LVGL庫入門教程03-布局方式
下一篇:LVGL庫入門教程03-布局方式
