解决Kali19.04搜狗输入法问题 ---转

编程知识 更新时间:2023-05-03 01:02:05

问题


从新安装了一个新系统原以为按照之前办法安装就可以轻松搞定,但发现安装这玩意完全看人品,几经波折删了下,下了装,但除了耗费精力之外,基本没*¥%#@用。问题始终在于sogou包的依赖问题无法得到解决:各种办法都试了,还是解决不了;最终还是参考这个仁兄的方法(https://my.oschina/inuxor/blog/1791548)才得以解决---------------转贴如下;

解决问题

经过各种折腾,最终解决了问题,记录如下。

下载旧版

首先搜狗官方的最新版(sogoupinyin_2.2.0.0102_amd64.deb)是不能用的,至于为什么不能用,未作深究。需要下载一个旧版本(sogoupinyin_2.1.0.0086_amd64.deb):

http://cdn2.ime.sogou/dl/index/1491565850/sogoupinyin_2.1.0.0086_amd64.deb

将该deb包放置于一个空目录

创建软件包目录

mkdir -p extract/DEBIAN

解包

dpkg-deb -x sogoupinyin_2.1.0.0086_amd64.deb extract/
dpkg-deb -e sogoupinyin_2.1.0.0086_amd64.deb extract/DEBIAN

修改control文件

用任意文本编辑器打开extract/DEBIAN/control 找到Depends行,删除fcitx-libs和fcitx-libs-qt,保存退出。

Package: sogoupinyin
Version: 2.1.0.0086
Architecture: amd64
Maintainer: Ubuntu Kylin Team <ubuntukylin-members@lists.launchpad.net>
Installed-Size: 53018
Depends: fcitx (>= 1:4.2.8.3-3~), fcitx-frontend-gtk2, fcitx-frontend-gtk3, fcitx-frontend-qt4, fcitx-module-kimpanel, im-config, libopencc2 | libopencc1, lsb-release, unzip, x11-utils, libc6 (>= 2.8), libgcc1 (>= 1:4.1.1), libgdk-pixbuf2.0-0 (>= 2.22.0), libglib2.0-0 (>= 2.16.0), libidn11 (>= 1.13), libnotify4 (>= 0.7.0), libqt4-dbus (>= 4:4.8.0), libqt4-declarative (>= 4:4.8.0), libqt4-network (>= 4:4.8.0), libqtcore4 (>= 4:4.8.0), libqtgui4 (>= 4:4.8.0), libstdc++6 (>= 4.6), libx11-6, zlib1g (>= 1:1.2.0)
Recommends: fcitx-frontend-qt5, fonts-droid-fallback | fonts-droid, dconf-gsettings-backend | gsettings-backend
Section: non-free/utils
Priority: optional
Homepage: http://pinyin.sogou.com/linux
Description: Sogou Pinyin Input Method
 Based on web search engine technology, Sogou Pinyin input method is
 the next-generation input method designed for Internet users. As it
 is backed with search engine technology, user input method can be
 extremely fast, and it is much more advanced than other input method
 engines in terms of the volume of the vocabulary database and its
 accuracy. Sogou input method is the most popular input methods in
 China, and Sogou promises it will always be free of charge.

打包

mkdir build
dpkg-deb -b extract/ build/

执行完毕build目录下会生成一个新的deb包

安装

先彻底卸载掉搜狗输入法,并在root目录下删除以下配置文件

.sogouinput
.config/sogou-qimpanel
.config/SogouPY
.config/SogouPY.users

然后安装我们重新打包的输入法即可。重启之后,搜狗输入法恢复正常。

更多推荐

解决Kali19.04搜狗输入法问题 ---转

本文发布于:2023-04-29 18:59:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/368a2aacadb94a340389f427649909a9.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:搜狗   输入法

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!

  • 111804文章数
  • 28496阅读数
  • 0评论数