如何在 Ubuntu 20.04 上安装搜狗输入法

如何在 Ubuntu 20.04 上安装搜狗输入法

我从这里下载了搜狗输入法的 64 位软件包https://pinyin.sogou.com/linux/

当我尝试安装它时,Ubuntu 20.04 上出现依赖性错误

Note, selecting 'sogoupinyin' instead of './sogoupinyin_2.3.1.0112_amd64.deb'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 sogoupinyin : Depends: fcitx-frontend-qt4 but it is not installable
               Depends: libqtwebkit4 but it is not installable
E: Unable to correct problems, you have held broken packages.

有什么解决方案可以让搜狗输入法在 Ubuntu 20.04 上启动并运行?

谢谢

答案1

我修改了 .deb 文件,删除了这两个依赖项。结果可以在此处下载:

https://people.ubuntu.com/~gunnarhj/sogoupinyin_2.3.1.0112+noQt4Deps_amd64.deb

然后导航到下载文件夹并执行以下操作:

sudo apt install ./sogoupinyin_2.3.1.0112+noQt4Deps_amd64.deb

但这其实是没有必要的。sogoupinyin 维护者应该将该包移植到 Qt5 或至少删除 Qt4 运行时依赖项。

编辑:

最新版本已修复此问题;请参阅英俊的冯

答案2

搜狗新版本(v2.3.2.07)已经修复依赖问题,详见:https://pinyin.sogou.com/linux/changelog.php

相关内容