kate 错误:无法创建 KIO 工作者。找不到协议“sftp”的 KIO 工作者

kate 错误:无法创建 KIO 工作者。找不到协议“sftp”的 KIO 工作者

我有 Ubuntu 20.04 和 kate 23.08.4。多年来,我一直使用 dolphin 通过 sftp 打开 kate 中的文件,方法如下:

sftp://user.name@server/path/to/file.txt

在 dolphin 中。但是,当我尝试打开这些文件时,我刚刚开始在 Kate 中收到这些错误:

Unable to create KIO worker. Can not find a KIO worker for protocol "tags".
Unable to create KIO worker. Can not find a KIO worker for protocol "sftp".

我不确定发生了什么变化。也许有些东西被卸载了?这是我目前安装的 kio 东西:

$ sudo apt list --installed | grep kio

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

kio-audiocd/focal,now 4:19.12.3-0ubuntu1 amd64 [installed,automatic]
kio-extras-data/focal,focal,now 4:19.12.3a-0ubuntu2 all [installed,automatic]
kio-extras/focal,now 4:19.12.3a-0ubuntu2 amd64 [installed,automatic]
kio-ldap/focal,now 19.12.3-0ubuntu1 amd64 [installed,automatic]
kio-sieve/focal,now 4:19.12.3-0ubuntu1 amd64 [installed,automatic]
kio/focal,now 5.68.0-0ubuntu1 amd64 [installed,automatic]
libkf5kiocore5/focal,now 5.68.0-0ubuntu1 amd64 [installed,automatic]
libkf5kiofilewidgets5/focal,now 5.68.0-0ubuntu1 amd64 [installed,automatic]
libkf5kiogui5/focal,now 5.68.0-0ubuntu1 amd64 [installed,automatic]
libkf5kiontlm5/focal,now 5.68.0-0ubuntu1 amd64 [installed,automatic]
libkf5kiowidgets5/focal,now 5.68.0-0ubuntu1 amd64 [installed,automatic]
qml-module-org-kde-kio/focal,now 5.68.0-0ubuntu2 amd64 [installed,automatic]

是不是缺少了什么?

更新 我发现我安装了 2 个 Kate 实例,一个通过 apt,一个通过 snap。当我尝试从 dolphin 打开这些文件时,显然是 snap 实例打开的。我卸载了 snap 实例并重新安装了 apt 实例以确保我拥有最新版本,错误就消失了。

snap 版本和 sftp 是否存在已知的错误,或者 snap 版本是否有可能配置不正确,或者这两个版本之间是否存在某种冲突?

答案1

正如更新中提到的,修复方法是卸载 kate 的 snap 版本,然后重新安装 kate 的 apt 版本。kate 的 apt 版本可以与 sftp 配合使用,没有任何错误。

相关内容