ubuntu18.04带的拼音输入法实在难受,必须更换
更改下载源步骤:
源文件的相关信息在“/etc/apt/”路径下,使用cd /etc/apt进入文件
源链接存放在文件[ sources.list ]中,进入文件:sudo nano sources.list
将[ sources.list ]中的内容都删除,替换成下面阿里云的链接:
deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse
接着:
1.更新环境:sudo apt-get update && sudo apt upgrade
2.配置fcitx:sudo apt-get install fcitx fcitx-mozc --install-recommends
3.设置输入法为fcitx:im-config -n fcitx
4.重启系统:sudo reboot
始终安装不上fcitx
1.先卸载掉fcitx,及其所有相关的软件:
sudo apt -y --purge remove fcitx
sudo apt clean fcitx
2.然后安装:
sudo apt -y install fcitx fcitx-bin fcitx-table fcitx-table-all
sudo apt -y install fcitx-config-gtk
sudo apt -y install fcitx-libs libfcitx-qt0 libopencc2 libopencc2-data libqt4-opengl libqtwebkit4
3.下载搜狗拼音:
见上面官网下载
4.安装搜狗拼音:
sudo dpkg -i sogoupinyin_*********.deb
如果安装失败,请执行如下命令安装依赖,然后再执行上面的安装命令
sudo apt -f install
5.安装完以后,重启电脑,并打开Fcitx Configure,添加搜狗输入法
6.至此,你应该就可以使用搜狗输入法了