我制作了一个应用程序,想使用 snapcraft 发布到 snap store。我有以下 yaml 文件。
version: '1.0'
summary: A Tetris clone written in C++
description: |
A minimal Tetris game written to run in a standard 80x24 terminal. (https://github.com/MitchelPaulin/CTris)
grade: stable # must be 'stable' to release into candidate/stable channels
confinement: devmode # use 'strict' once you have the right plugs and slots
base: core18
parts:
ctris:
plugin: make
source-type: git
source: https://github.com/MitchelPaulin/CTris
build-packages: [libncurses5-dev, libncursesw5-dev, g++, make]
apps:
ctris:
command: ../bin/ctris
当我输入snapcraft
一切构建时,我得到了一个可执行文件/snap/bin
。当我尝试运行它时,我收到以下错误。
cannot perform operation: mount --rbind /dev /tmp/snap.rootfs_hkxDCG//dev: No such file or directory
/tmp/snap.rootfs_hkxDCG
确实存在,所以我不确定这里发生了什么。
答案1
尝试运行snap list --all
并查找“损坏的”“核心包”。如果发现任何内容,请尝试删除并重新安装。这应该可以解决问题