gpt4 book ai didi

raspberry-pi - 打包用于Raspberry Pi 3的Electron应用程序

转载 作者:行者123 更新时间:2023-12-03 12:43:10 46 4
gpt4 key购买 nike

我无法在运行Raspbian的Raspberry Pi 3上安装我创建的 Electron 应用程序。我已经使用了electronic-packager来创建软件包,然后创建了一个debian安装程序。将安装程序扔到拇指驱动器上,然后放到Raspberry Pi上,然后进行安装,但仅收到此错误弹出窗口:“找不到允许完成操作的软件包。详细报告中提供了更多信息。”

根据cpuinfo,Raspberry Pi正在运行arm7l。 Electron 应用程序也为arm7l打包(文件名甚至在其中结尾)。我猜你们都将需要更多的背景知识-只是不确定什么-随便问一下,我会尽快编辑:)

我用来打包并制作安装程序的命令:

"package-linux": "electron-packager . --overwrite --asar=true --platform=linux --arch=armv7l --icon=assets/icons/png/1024x1024.png --prune=true --out=release-builds",

"create-debian-installer": "electron-installer-debian --src /Users/myuser/Documents/Signage/release-builds/signage-linux-armv7l --arch armv7l --config debian.json"

编辑:我已经运行了
sudo dpkg --add-architecture armv7l

这使我比以前更进一步。但是,当我尝试以下命令时,出现以下错误:
udo dpkg --install /home/pi/Desktop/signage_0.1.0_armv7l.deb(Reading database ... 154822 files and directories currently installed.)
Preparing to unpack .../signage_0.1.0_armv7l.deb ...
Unpacking signage:armv7l (0.1.0) over (0.1.0) ...
dpkg: dependency problems prevent configuration of signage:armv7l:
signage:armv7l depends on libgtk-3-0.
signage:armv7l depends on libnotify4.
signage:armv7l depends on libnss3.
signage:armv7l depends on libxss1.
signage:armv7l depends on libxtst6.
signage:armv7l depends on libatspi2.0-0.
signage:armv7l depends on libuuid1.

dpkg: error processing package signage:armv7l (--install):
dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.31.4-3) ...
Processing triggers for desktop-file-utils (0.23-4) ...
Processing triggers for mime-support (3.62) ...
Errors were encountered while processing:
signage:armv7l

最佳答案

dpkg无法安装您的软件包,因为它取决于... depends on ...下列出的其他软件包,即:

signage:armv7l depends on libgtk-3-0.
signage:armv7l depends on libnotify4.
signage:armv7l depends on libnss3.
signage:armv7l depends on libxss1.
signage:armv7l depends on libxtst6.
signage:armv7l depends on libatspi2.0-0.
signage:armv7l depends on libuuid1.



由于 dpkg不执行依赖关系解析,因此您需要首先手动安装它们。以下命令可以解决问题:

sudo apt-get install libgtk-3-0 libnotify4 libnss3 libxss1 libxtst6 libatspi2.0-0 libuuid1

关于raspberry-pi - 打包用于Raspberry Pi 3的Electron应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57518370/

46 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com