sudo dpkg -i *.deb #其中把*替换成你输入法安装包名字
~/Downloads$ sudo dpkg -i sogoupinyin_2.2.0.0108_amd64.deb
[sudo] password for bubble:
Selecting previously unselected package sogoupinyin.
(Reading database ... 178848 files and directories currently installed.)
Preparing to unpack sogoupinyin_2.2.0.0108_amd64.deb ...
Unpacking sogoupinyin (2.2.0.0108) ...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.2) ...
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 while processing:sogoupinyin
#报了错误接着往下面看
sudo apt-get install -f
#报错输入下面语句
bubble@XPS-8930:~/Downloads$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:snapd-login-service
Use 'sudo apt autoremove' to remove it.fcitx-config-common fcitx-config-gtk fcitx-datafcitx-frontend-all fcitx-frontend-gtk2 fcitx-frontend-gtk3fcitx-frontend-qt4 fcitx-frontend-qt5 fcitx-libs fcitx-module-dbus
0 upgraded, 27 newly installed, 0 to remove and 3 not upgraded.
........
........
........
Setting up presage (0.9.1-1.1ubuntu2) ...
Processing triggers for libc-bin (2.23-0ubuntu11) ...
bubble@XPS-8930:~/Downloads$
第四步:
进入设置语言支持(Language Support),如下图所示:
结束点击:Keyboard input method system:改为fcitx