生成 snap 包时出现“stop-timeout 不是整数”——为什么?

生成 snap 包时出现“stop-timeout 不是整数”——为什么?

基于教程,我创建了一个极其简单的,snapcraft.yaml其中包含以下内容:

name: hectane
version: 1
vendor: Nathan Osman <[email protected]>
summary: Lightweight SMTP client
description: An SMTP client that is extremely easy to configure and use.
icon: icon.png
services:
  hectane:
    description: SMTP daemon
    start: bin/hectane

parts:
  hectane:
    plugin: go
    source: git://github.com/hectane/hectane

但是,当我尝试使用 构建 snap 时snapcraft,出现了以下错误和警告:

Snapping hectane 
Errors
------
 - snappy-systemd_hook_optional_key_stop-timeout_hectane.snappy-systemd
    'stop-timeout' is not an integer
 - snappy-systemd_hook_stop_timeout_hectane.snappy-systemd
    stop-timeout is not an integer
Warnings
--------
 - lint_DEBIAN_extra_files
    found extra files in DEBIAN/: hashes.yaml
 - lint_snappy_unknown
    unknown entries in package.yaml: 'architectures'
hectane_1_amd64.snap: FAIL
Generated 'hectane_1_amd64.snap' snap

这些错误是什么意思以及为什么我会看到它们?

技术信息

主持人:Ubuntu 15.04
建筑学:x86_64
snapcraft 版本:0.4(通过 PPA 安装)

答案1

snappy build以及审查结果的工具snap包含在两个不同的软件包中,它们在不同的源存储库中开发,但它们需要保持同步,导致此特定问题的最可能原因是它们确实不是同步。获取这些软件包的最新版本很可能可以修复此问题。

如果你已经完成了版本升级苯甲酸发布工具的地方可能被禁用了,您可以通过运行再次添加它

sudo add-apt-repository ppa:snappy-dev/tools

然后更新并升级

sudo apt-get update
sudo apt-get dist-upgrade

apt-get如果apt您愿意使用它,请将其替换。

相关内容