Flatpak-Builder 找不到已安装的依赖项

Flatpak-Builder 找不到已安装的依赖项

我想从源代码安装一个 flatpak 图像。在清单文件中,指定了rust-stable必需的。

"sdk-extensions": [
    "org.freedesktop.Sdk.Extension.rust-stable"
],

指定的 Rust flatpak 已在我的系统上安装了两次:

$ flatpak list|grep Rust
Rust stable org.freedesktop.Sdk.Extension.rust-stable   1.55.0  20.08   flathub system
Rust stable org.freedesktop.Sdk.Extension.rust-stable   1.55.0  20.08   flathub user

但是当我尝试构建并安装 flatpak 时,它告诉我 flatpakrust-stable不可用:

$ flatpak-builder --install --force-clean mysoftware com.example.MySoftware.Devel.json

(flatpak-builder:18580): Json-CRITICAL **: 10:37:25.850: json_object_get_string_member: assertion 'node != NULL' failed

(flatpak-builder:18580): flatpak-builder-WARNING **: 10:37:25.850: Missing source type

(flatpak-builder:18580): Json-WARNING **: 10:37:25.851: Failed to deserialize "sources" property of type "gpointer" for an object of type "BuilderModule"
Downloading sources
Initializing build dir
error: Requested extension org.freedesktop.Sdk.Extension.rust-stable not installed

为什么 flatpak 找不到包?

答案1

除了 Zaclegarssure 的答案之外,要安装可能需要的最新(主分支) flatpak 软件包,您需要安装软件包,例如从 gnome-nightly 存储库通过

flatpak remote-add --if-not-exists gnome-nightly https://nightly.gnome.org/gnome-nightly.flatpakrepo

并安装一个夜间应用程序

flatpak install gnome-nightly org.gnome.Sdk

https://wiki.gnome.org/Apps/Nightly

答案2

您可能没有安装正确的rust-stable.您可以做的一件事是添加:--install-deps-from=flathubflatpak-builder命令中,它将自动下载具有正确版本的每个依赖项,例如运行时和 skd 扩展。

希望有帮助。

相关内容