• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pilight for Raspbian Buster (raspberry pi 4) ?
#11
(07-10-2019, 06:13 PM)curlymo Wrote: If someone can tell me what i should do fixing it i will.

I currently don't have time to bugfix this, because i'm working on another issue within pilight.


What do you need?



Gesendet von iPhone mit Tapatalk
 
Reply
#12
A diagnosis of the issue.
 
Reply
#13
there seems to be some package version dependencies that are broken when installing pilight with buster:
Code:
pi@raspberrypi:/etc/apt $ sudo apt-get -y install pilight
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 pilight : Depends: libmbedcrypto0 but it is not going to be installed
           Depends: libmbedtls10 but it is not installable
E: Unable to correct problems, you have held broken packages.

trying to install these directly suggests an issue with libunwind-dev. Buster uses 1.2.1-9, whereas pilight/libmbedcryto0 depends on version 1.1-3.2:
Code:
pi@raspberrypi:/etc/apt $ sudo apt-get install libmbedcrypto0
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libmbedcrypto0 : Depends: libunwind-dev (= 1.1-3.2) but 1.2.1-9 is to be installed
E: Unable to correct problems, you have held broken packages.


pi@raspberrypi:/etc/apt $ sudo apt-cache policy libunwind-dev
libunwind-dev:
 Installed: 1.2.1-9
 Candidate: 1.2.1-9
 Version table:
*** 1.2.1-9 500
       500 XXXX://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
       100 /var/lib/dpkg/status

(i had previously run sudo apt-get install libunwind-dev)
 
Reply
#14
The wierd thing is that i'm not enforcing a specific libmbedtls* version. So if the one from Buster is newer, it should pick that one.

Can you do an apt-cache policy for the other libmbedtls packages?
 
Reply
#15
Buster has no idea where to get libmbedtls10:
Code:
pi@raspberrypi:~ $ sudo apt-cache policy libmbedtls10
libmbedtls10:
  Installed: (none)
  Candidate: (none)
  Version table:
pi@raspberrypi:~ $ sudo apt-get install libmbedtls10
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libmbedtls10 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libmbedtls10' has no installation candidate
 
Reply
#16
So what is available?
Code:
apt-cache search libmbedtls*
 
Reply
#17
Can you guys test the following:

1. Run apt-get update
2. Edit /var/lib/dpkg/status
3. Search for Package: pilight with version 8.1.4-77-g4ec5addf
4. In the pilight section, change the libmbedtls10 to libmbedtls12 and the libmbedcrypto0 to libmbedcrypto3.
5. Install pilight using a normal apt-get install pilight=8.1.4-77-g4ec5addf.

If that didn't work try the following:

Code:
apt-get download pilight=8.1.4-77-g4ec5addf
dpkg --install --force-depends pilight*.deb
apt-get install pilight-webgui libunwind8 libpcap0.8 libmbedcrypto3 libmbedtls12 libmbedx509-0 libwiringx libluajit-5.1-2


Tell me if it installed and started without issues?
 
Reply
#18
first solution did not work as there was no "Package: pilight" section in the status file.

second option fared a little better, but no working yet. Started by adding the nightly builds to the source-list:
Code:
pi@busterpi:~ $ sudo su
root@busterpi:/home/pi# echo "deb ://apt.pilight.org/ nightly main" >> /etc/apt/sources.list.d/pilight.list
root@busterpi:/home/pi# apt-get download pilight=8.1.4-77-g4ec5addf
root@busterpi:/home/pi#
root@busterpi:/home/pi#
root@busterpi:/home/pi# dpkg --install --force-depends pilight*.deb
Selecting previously unselected package pilight.
(Reading database ... 44258 files and directories currently installed.)
Preparing to unpack pilight_8.1.4-77-g4ec5addf_armhf.deb ...
Unpacking pilight (8.1.4-77-g4ec5addf) ...
dpkg: pilight: dependency problems, but configuring anyway as you requested:
pilight depends on pilight-webgui (>= 8.4); however:
 Package pilight-webgui is not installed.
pilight depends on libmbedcrypto0; however:
 Package libmbedcrypto0 is not installed.
pilight depends on libmbedtls10; however:
 Package libmbedtls10 is not installed.

Setting up pilight (8.1.4-77-g4ec5addf) ...
Processing triggers for systemd (241-5+rpi1) ...
root@busterpi:/home/pi# apt-get install pilight-webgui libunwind8 libpcap0.8 libmbedcrypto3 libmbedtls12 libmbedx509-0 libwiringx libluajit-5.1-2
Reading package lists... Done
Building dependency tree
Reading state information... Done
libluajit-5.1-2 is already the newest version (2.1.0~beta3+dfsg-5.1).
libluajit-5.1-2 set to manually installed.
libmbedcrypto3 is already the newest version (2.16.0-1).
libmbedtls12 is already the newest version (2.16.0-1).
libmbedx509-0 is already the newest version (2.16.0-1).
libmbedx509-0 set to manually installed.
libpcap0.8 is already the newest version (1.8.1-6).
libpcap0.8 set to manually installed.
libunwind8 is already the newest version (1.2.1-9).
libunwind8 set to manually installed.
libwiringx is already the newest version (2.0-240-g4e620af).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
pilight : Depends: libmbedcrypto0 but it is not going to be installed
          Depends: libmbedtls10 but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
The proposed commands (fix-broken) will only uninstall pilight.
after this there is a pilight section in the status file, but the changes to the lib versions are not picked up when I attempt to install pilight again:
Code:
root@busterpi:/home/pi# apt-get install pilight=8.1.4-77-g4ec5addf
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
pilight : Depends: pilight-webgui (>= 8.4) but it is not going to be installed
           Depends: libmbedcrypto0 but it is not going to be installed
           Depends: libmbedtls10 but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
 
Reply
#19
Found where the package dependencies are located: in the control file in the pilight package. Updated it to think it needed the version 12 and version 3 libraries. Then installed the package without error messages, but it still does not run. pilight-debug wants libmbedtls.so.10. 



Code:
root@busterpi:/home/pi# ar x pilight_8.1.4-77-g4ec5addf_armhf.deb
root@busterpi:/home/pi# tar xzf control.tar.gz
root@busterpi:/home/pi# nano control
root@busterpi:/home/pi# cat control
Package: pilight
Version: 8.1.4-77-g4ec5addf
Section: devel
Priority: optional
Architecture: armhf
Depends: pilight-webgui (>= 8.4), libunwind8, libpcap0.8, libmbedcrypto3, libmbedtls12, libmbedx509-0, libwiringx (>= 2.0), libluajit-5.1-2 | liblua5.1-0
Conflicts: pilight-dbg
Installed-Size: 36
Suggests: php5-cgi, pilight-firmware (>= 3.0)
Maintainer: CurlyMo <info@pilight.org>
Description: Control RF devices with the Raspberry Pi
root@busterpi:/home/pi# tar c {post,pre}{inst,rm} md5sums control | gzip -c > control.tar.gz
root@busterpi:/home/pi# ar rcs pilight_8.1.4-99_armhf.deb debian-binary control.tar.gz data.tar.gz
root@busterpi:/home/pi# dpkg --install --force-depends pilight_8.1.4-99_armhf.deb
Selecting previously unselected package pilight.
(Reading database ... 44262 files and directories currently installed.)
Preparing to unpack pilight_8.1.4-99_armhf.deb ...
Unpacking pilight (8.1.4-77-g4ec5addf) ...
dpkg: pilight: dependency problems, but configuring anyway as you requested:
pilight depends on pilight-webgui (>= 8.4); however:
 Package pilight-webgui is not installed.

Setting up pilight (8.1.4-77-g4ec5addf) ...
Processing triggers for systemd (241-5+rpi1) ...
root@busterpi:/home/pi# apt-get install pilight-webgui
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
 php5-cgi pilight-firmware
The following NEW packages will be installed:
 pilight-webgui
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/235 kB of archives.
After this operation, 28.7 kB of additional disk space will be used.
Selecting previously unselected package pilight-webgui.
(Reading database ... 44324 files and directories currently installed.)
Preparing to unpack .../pilight-webgui_8.4_armhf.deb ...
Unpacking pilight-webgui (8.4) ...
Setting up pilight-webgui (8.4) ...
root@busterpi:/home/pi# exit
exit
pi@busterpi:~ $ sudo nano /etc/pilight/config.json
pi@busterpi:~ $ sudo systemctl stop pilight
pi@busterpi:~ $ sudo systemctl start pilight
Job for pilight.service failed because the control process exited with error code.
See "systemctl status pilight.service" and "journalctl -xe" for details.
pi@busterpi:~ $ sudo pilight-debug
pilight-debug: error while loading shared libraries: libmbedtls.so.10: cannot open shared object
 
Reply
#20
What does this say:
Code:
ldd /usr/local/sbin/pilight-debug
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
Tongue pilight 8.1.5-1-gc0a175e0 Chrashes fleisch 4 143 08-17-2019, 01:04 PM
Last Post: curlymo
  pilight-receive Filteroption not working Alex 2 357 07-14-2019, 08:35 AM
Last Post: Alex
  pilight usb nano format conversion ettman8 2 249 07-14-2019, 08:32 AM
Last Post: curlymo
  pilight7_oregon on Raspberry pi3 Tueftler1983 0 169 07-04-2019, 01:49 PM
Last Post: Tueftler1983
  pilight 8.1.4 crashes after some hours Ulrich.Arnold 47 2,039 06-29-2019, 08:58 PM
Last Post: curlymo
  Raspberry PI, gpio-ir-tx and pilight not starting lordslash 5 554 06-11-2019, 05:19 PM
Last Post: curlymo
  pilight fails starting on boot Alex 5 481 06-09-2019, 06:02 PM
Last Post: curlymo
  Google Assistant coupled to pilight hansrijn2 4 928 05-29-2019, 06:54 PM
Last Post: curlymo
  pilight-send does not stop (terminate) va13 3 474 05-15-2019, 06:06 PM
Last Post: curlymo
  oom_reaper: reaped process pilight-daemon va13 4 538 05-15-2019, 08:03 AM
Last Post: va13

Forum Jump:


Browsing: 1 Guest(s)