PiSugar / pisugar-power-manager-rs

PiSugar Power Manger in rust language
https://www.pisugar.com/
GNU General Public License v3.0
130 stars 15 forks source link

Cant install .debs #23

Open PeterMalkin opened 3 years ago

PeterMalkin commented 3 years ago

I am generating an sdcard image for my project using QEMU. (https://wiki.debian.org/RaspberryPi/qemu-user-static)

It seems your deb packages fail to install

/tmp/tmp.kpff6YLkzb.deb 100%[====================================>] 270.44K 672KB/s in 0.4s

2021-03-27 22:03:24 (672 KB/s) - ‘/tmp/tmp.kpff6YLkzb.deb’ saved [276934/276934]

/tmp/tmp.kpff6YLkzb.deb 100%[====================================>] 270.44K 672KB/s in 0.4s

2021-03-27 22:03:24 (672 KB/s) - ‘/tmp/tmp.kpff6YLkzb.deb’ saved [276934/276934]

fengyc commented 3 years ago

The postinst script (https://github.com/PiSugar/pisugar-power-manager-rs/blob/master/pisugar-server/debian/postinst) would start the systemd service after the deb package has been installed.

I had fix the problem. Please download and test the latest development build (https://github.com/PiSugar/pisugar-power-manager-rs/releases/tag/latest)

PeterMalkin commented 3 years ago

Thanks for your attention!

Although your fix is a good thing to have in the postinst script, the problem I believe lies in a different place.

++ mktemp

HTTP request sent, awaiting response... 200 OK Length: 1306406 (1.2M) [application/octet-stream] Saving to: ‘/tmp/tmp.CKTygFMdII.deb’ /tmp/tmp.CKTygFMdII.deb 100%[====================================>] 1.25M 2.51MB/s in 0.5s

2021-03-28 19:18:26 (2.51 MB/s) - ‘/tmp/tmp.CKTygFMdII.deb’ saved [1306406/1306406]

Saving to: ‘/tmp/tmp.Muh1tSNGXg.deb’

/tmp/tmp.Muh1tSNGXg.deb 100%[====================================>] 269.90K 1.56MB/s in 0.2s

2021-03-28 19:18:30 (1.56 MB/s) - ‘/tmp/tmp.Muh1tSNGXg.deb’ saved [276380/276380]

I think one of those errors is resolved by installing libi2c-dev before installing the debian packages for pisugar. Are there any other packages that need to be installed prior to installing your .debs?

fengyc commented 3 years ago

The log said "Module i2c-dev not found in directory /lib/modules/5.4.0-70-generic". But the search result of libi2c-dev said that it is a userspace programming library, see https://packages.ubuntu.com/groovy/libi2c-dev. So, did the i2c-dev module had been configured correctly ?