alienzhangyw / BlockPi

A visual programming editor app for Raspberry Pi
Apache License 2.0
92 stars 36 forks source link

Your new deb failed to install #12

Closed Botspot closed 3 years ago

Botspot commented 3 years ago
Installing BlockPi with install-32 script
--2021-05-03 21:26:13--  https://github.com/alienzhangyw/BlockPi/releases/download/v1.2.0/blockpi_1.2.0_armv7l.deb
Resolving github.com (github.com)... 140.82.112.3
Connecting to github.com (github.com)|140.82.112.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-releases.githubusercontent.com/230906840/7e23af00-ac24-11eb-8330-ff4cd3378df5?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210504%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210504T022613Z&X-Amz-Expires=300&X-Amz-Signature=25e1a748374665085311cc734eed0de04a4dc2d85a7bebd55f0c52d4f59b5009&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=230906840&response-content-disposition=attachment%3B%20filename%3Dblockpi_1.2.0_armv7l.deb&response-content-type=application%2Foctet-stream [following]
--2021-05-03 21:26:13--  https://github-releases.githubusercontent.com/230906840/7e23af00-ac24-11eb-8330-ff4cd3378df5?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210504%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210504T022613Z&X-Amz-Expires=300&X-Amz-Signature=25e1a748374665085311cc734eed0de04a4dc2d85a7bebd55f0c52d4f59b5009&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=230906840&response-content-disposition=attachment%3B%20filename%3Dblockpi_1.2.0_armv7l.deb&response-content-type=application%2Foctet-stream
Resolving github-releases.githubusercontent.com (github-releases.githubusercontent.com)... 185.199.108.154, 185.199.109.154, 185.199.110.154, ...
Connecting to github-releases.githubusercontent.com (github-releases.githubusercontent.com)|185.199.108.154|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 49422774 (47M) [application/octet-stream]
Saving to: \u2018/home/pi/blockpi.deb\u2019

/home/pi/blockpi.de 100%[===================>]  47.13M  11.6MB/s    in 4.3s    

2021-05-03 21:26:18 (11.0 MB/s) - \u2018/home/pi/blockpi.deb\u2019 saved [49422774/49422774]

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'blockpi' instead of '/home/pi/blockpi.deb'
The following NEW packages will be installed:
  blockpi
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/49.4 MB of archives.
After this operation, 135 MB of additional disk space will be used.
Get:1 /home/pi/blockpi.deb blockpi armhf 1.2.0 [49.4 MB]
Selecting previously unselected package blockpi.
(Reading database ... 284914 files and directories currently installed.)
Preparing to unpack /home/pi/blockpi.deb ...
dpkg (subprocess): unable to execute new blockpi package pre-installation script (/var/lib/dpkg/tmp.ci/preinst): No such file or directory
dpkg: error processing archive /home/pi/blockpi.deb (--unpack):
 new blockpi package pre-installation script subprocess returned error exit status 2
Errors were encountered while processing:
 /home/pi/blockpi.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Failed to install blockpi.deb

Failed to install BlockPi with install-32 script!

Close this window to exit.
alienzhangyw commented 3 years ago

Did you have Python3 installed?

Botspot commented 3 years ago

Did you have Python3 installed?

I believe so. By the way: your previous deb installed fine, but this one does not. Could it be an issue with my system?

alienzhangyw commented 3 years ago

Did you have Python3 installed?

I believe so. By the way: your previous deb installed fine, but this one does not. Could it be an issue with my system?

The preinstall script is just: https://github.com/alienzhangyw/BlockPi/blob/0150a4eab0419154bf0efed3fd6d4cf1f56bba30/build/requirements.sh#L1-L2

maybe your dpkg command can not find 'sh' or 'python3' or 'pip' ?

alienzhangyw commented 3 years ago

I tested on my RPi and got the same error.😥

dpkg -e blockpi_1.2.0_armv7l.deb tmp

In tmp folder there is the ‘preinst’ script file

bash preinst works without error.

Hmm, maybe something wrong with dpkg or electron-builder?

alienzhangyw commented 3 years ago

I updated the linux release files, which I could successfully install on my RPi. You can try that.

Botspot commented 3 years ago

I updated the linux release files, which I could successfully install on my RPi. You can try that.

It works fine now. Closing issue.