Ubuntu安装搜狗输入法以及入坑和填坑教程
作者:互联网
本文结构
一,两种安装方法(直接下载法,终端命令行安装法)
二,两个坑以及填坑办法
一,两种安装方法
直接下载法
1,百度搜索“搜狗输入法”进入官网
2,直接下载 64bit 版本的
3,根据自己Ubuntu的位数下载对应安装包到Linux的Downloads文件夹
(Ubuntu位数查看方法:在终端输入 sudo uname --m)
4,双击安装包***.deb文件,并安装
安装成功之后可以看到install(安装)按钮变成remove(移除)按钮
安不上则说明遇到坑一,请手动跳转到后文“坑一”
5,打开桌面右上角的系统设置按钮,点击“System Settings…(系统设置)”
(或者在命令行终端中输入unity-control-center,也能打开System Settings)
6,点击“Language Support(语言支持)”
7,“Keyboard input method system"位置改成fcitx,然后关闭页面
8,打开桌面右上角的系统设置按钮,点击“Log out…(注销)”
重新启动Ubuntu以后,就可以看到"语言栏"下拉菜单里有搜狗输入法了。
没看到说明遇到坑二,请手动跳转到后文“坑二”
终端命令行安装法
1,根据自己系统的位数在终端输入以下两行命令
//32位
wget "http://pinyin.sogou.com/linux/download.php?f=linux&bit=32" -O "sougou_32.deb"
sudo dpkg -i sougou_32.deb
//64位
wget "http://pinyin.sogou.com/linux/download.php?f=linux&bit=64" -O "sougou_64.deb"
sudo dpkg -i sougou_64.deb
2,如果成功,则跳转至前面“直接下载法——第5步”顺序向下执行
如果不成功可能出现如下依赖问题
Unpacking sogoupinyin (2.2.0.0108) over (2.2.0.0108) ...
dpkg: dependency problems prevent configuration of sogoupinyin:
sogoupinyin depends on fcitx (>= 1:4.2.8.3-3~); however:
Package fcitx is not installed.
sogoupinyin depends on fcitx-frontend-gtk2; however:
Package fcitx-frontend-gtk2 is not installed.
sogoupinyin depends on fcitx-frontend-gtk3; however:
Package fcitx-frontend-gtk3 is not installed.
sogoupinyin depends on fcitx-frontend-qt4; however:
Package fcitx-frontend-qt4 is not installed.
sogoupinyin depends on libfcitx-qt0 | fcitx-libs-qt; however:
Package libfcitx-qt0 is not installed.
Package fcitx-libs-qt is not installed.
sogoupinyin depends on fcitx-module-kimpanel; however:
Package fcitx-module-kimpanel is not installed.
sogoupinyin depends on libopencc2 | libopencc1; however:
Package libopencc2 is not installed.
Package libopencc1 is not installed.
sogoupinyin depends on fcitx-libs (>= 4.2.7); however:
Package fcitx-libs is not installed.
sogoupinyin depends on libqtwebkit4 (>= 2.1.0~2011week13); however:
Package libqtwe
dpkg: error processing package sogoupinyin (--install):
dependency problems - leaving unconfigured
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for libglib2.0-0:amd64 (2.48.2-0ubuntu4.1) ...
No such key 'Gtk/IMModule' in schema 'org.gnome.settings-daemon.plugins.xsettings' as specified in override file '/usr/share/glib-2.0/schemas/50_sogoupinyin.gschema.override'; ignoring override for this key.
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.2) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20180209-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for shared-mime-info (1.5-2ubuntu0.2) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1.1) ...
Errors were encountered
这个则说明遇到“坑一”
二,两个坑以及填坑办法
执行下面语句
sudo apt-get install -f
然后再一次安装软件即可
1,经过前面一系列的操作,此时系统桌面的右上角出现了一个键盘符号,点击它,即可显示下拉菜单
2,点击“配置”菜单,弹出下图(也可以直接在命令行终端中使用fcitx-config-gtk3 命令打开下面的版面):
3,点击上图的加号按钮,弹出如下页面
4,去掉上图中“Only Show Current Language”前面的对勾,然后在“Search Input Method”框中输入sogou,即可在上面的输入法列表中显示搜狗拼音,如下图:
5,点击OK,填坑完毕!
个人照上面安装只遇到第一个坑。
真的,ibus输入法是真的坑,Ubuntu频繁失踪输入法!!
标签:搜狗,输入法,Package,depends,installed,填坑,fcitx,...,sogoupinyin 来源: https://blog.csdn.net/qq_40748967/article/details/121629166