Thank you so much for helping me. Iām just having all kinds of issues. I didnāt know how to clean up the mess with the mixed up versions, so I simply reflashed the SD card with Buster Lite again, and redid the install. I followed the Monitor install instructions exactly until I reached the step that says sudo wget http://repo.mosquitto.org/debian/mosquitto-stretch.list
. Instead of that, I did sudo wget http://repo.mosquitto.org/debian/mosquitto-buster.list
. Then I did the rest of the listed steps:
apt-cache search mosquitto
sudo apt-get update
sudo apt-get install -f libmosquitto-dev mosquitto mosquitto-clients libmosquitto1
and I end up with the same problem:
pi@raspberrypi:/etc/apt/sources.list.d $ sudo apt-get install -f libmosquitto-dev mosquitto mosquitto-clients libmosquitto1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libev4 libuv1 libwebsockets8
Suggested packages:
apparmor
The following NEW packages will be installed:
libev4 libmosquitto-dev libmosquitto1 libuv1 libwebsockets8 mosquitto mosquitto-clients
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 610 kB of archives.
After this operation, 1,327 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:3 https://repo.mosquitto.org/debian buster/main armhf libmosquitto1 armhf 1.6.6-0mosquitto1~buster1 [70.9 kB]
Get:1 http://raspbian.mirror.constant.com/raspbian buster/main armhf libev4 armhf 1:4.25-1 [34.5 kB]
Get:2 http://raspbian.mirror.constant.com/raspbian buster/main armhf libuv1 armhf 1.24.1-1 [96.7 kB]
Get:5 https://repo.mosquitto.org/debian buster/main armhf libmosquitto-dev armhf 1.6.6-0mosquitto1~buster1 [62.1 kB]
Get:6 https://repo.mosquitto.org/debian buster/main armhf mosquitto armhf 1.6.6-0mosquitto1~buster1 [172 kB]
Get:7 https://repo.mosquitto.org/debian buster/main armhf mosquitto-clients armhf 1.6.6-0mosquitto1~buster1 [88.2 kB]
Get:4 http://raspbian-us.ngc292.space/raspbian buster/main armhf libwebsockets8 armhf 2.0.3-3 [85.6 kB]
Fetched 610 kB in 2s (352 kB/s)
Selecting previously unselected package libev4:armhf.
(Reading database ... 37640 files and directories currently installed.)
Preparing to unpack .../0-libev4_1%3a4.25-1_armhf.deb ...
Unpacking libev4:armhf (1:4.25-1) ...
Selecting previously unselected package libmosquitto1:armhf.
Preparing to unpack .../1-libmosquitto1_1.6.6-0mosquitto1~buster1_armhf.deb ...
Unpacking libmosquitto1:armhf (1.6.6-0mosquitto1~buster1) ...
Selecting previously unselected package libmosquitto-dev:armhf.
Preparing to unpack .../2-libmosquitto-dev_1.6.6-0mosquitto1~buster1_armhf.deb ...
Unpacking libmosquitto-dev:armhf (1.6.6-0mosquitto1~buster1) ...
Selecting previously unselected package libuv1:armhf.
Preparing to unpack .../3-libuv1_1.24.1-1_armhf.deb ...
Unpacking libuv1:armhf (1.24.1-1) ...
Selecting previously unselected package libwebsockets8:armhf.
Preparing to unpack .../4-libwebsockets8_2.0.3-3_armhf.deb ...
Unpacking libwebsockets8:armhf (2.0.3-3) ...
Selecting previously unselected package mosquitto.
Preparing to unpack .../5-mosquitto_1.6.6-0mosquitto1~buster1_armhf.deb ...
Unpacking mosquitto (1.6.6-0mosquitto1~buster1) ...
Selecting previously unselected package mosquitto-clients.
Preparing to unpack .../6-mosquitto-clients_1.6.6-0mosquitto1~buster1_armhf.deb ...
Unpacking mosquitto-clients (1.6.6-0mosquitto1~buster1) ...
Setting up libmosquitto1:armhf (1.6.6-0mosquitto1~buster1) ...
Setting up libev4:armhf (1:4.25-1) ...
Setting up mosquitto-clients (1.6.6-0mosquitto1~buster1) ...
Setting up libuv1:armhf (1.24.1-1) ...
Setting up libmosquitto-dev:armhf (1.6.6-0mosquitto1~buster1) ...
Setting up libwebsockets8:armhf (2.0.3-3) ...
Setting up mosquitto (1.6.6-0mosquitto1~buster1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/mosquitto.service ā /lib/systemd/system/mosquitto.service.
Job for mosquitto.service failed because a fatal signal was delivered to the control process.
See "systemctl status mosquitto.service" and "journalctl -xe" for details.
invoke-rc.d: initscript mosquitto, action "start" failed.
ā mosquitto.service - Mosquitto MQTT v3.1/v3.1.1 Broker
Loaded: loaded (/lib/systemd/system/mosquitto.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: signal) since Tue 2019-09-24 00:54:03 BST; 106ms ago
Docs: man:mosquitto.conf(5)
man:mosquitto(8)
Process: 959 ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf (code=killed, signal=SEGV)
Main PID: 959 (code=killed, signal=SEGV)
dpkg: error processing package mosquitto (--configure):
installed mosquitto package post-installation script subprocess returned error exit status 1
Processing triggers for systemd (241-7~deb10u1+rpi1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10+rpi1) ...
Errors were encountered while processing:
mosquitto
E: Sub-process /usr/bin/dpkg returned an error code (1)
I decided to keep going anyway, and set up Monitor according to the next set of instructions. I did not switch to the beta branch. I needed to install two packages and I did that. But now itās telling me I donāt have a high enough version of mosquitto_pub and mosquitto_sub. Iāve spent so many hours on this and Iām just not understanding why this isnāt working.
pi@raspberrypi:~/monitor $ sudo bash monitor.sh
cat: .previous_version: No such file or directory
> updated monitor.sh (v. Unknown) -> (v. 0.2.197)...
> error: required package 'hcidump' not found. please install 'bluez-hcidump' (e.g., sudo apt-get install bluez-hcidump).
> error: required package 'bc' not found. please install 'bc' (e.g., apt-get install bc)
> warning: monitor.service not installed. Install service? (y/n)
n
> error: minimum required mosquitto_sub version 1.5+ not found. please update.
> error: minimum required mosquitto_pub version 1.5+ not found. please update.
> mosquitto preferences file created. please customize.
> public MAC address list file created. please customize.
> beacon MAC address list file created. please customize.
pi@raspberrypi:~/monitor $ sudo apt-get install bluez-hcidump
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
bluez-hcidump
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 148 kB of archives.
After this operation, 414 kB of additional disk space will be used.
Get:1 http://archive.raspberrypi.org/debian buster/main armhf bluez-hcidump armhf 5.50-1+rpt1 [148 kB]
Fetched 148 kB in 1s (190 kB/s)
Selecting previously unselected package bluez-hcidump.
(Reading database ... 38651 files and directories currently installed.)
Preparing to unpack .../bluez-hcidump_5.50-1+rpt1_armhf.deb ...
Unpacking bluez-hcidump (5.50-1+rpt1) ...
Setting up bluez-hcidump (5.50-1+rpt1) ...
Setting up mosquitto (1.6.6-0mosquitto1~buster1) ...
Job for mosquitto.service failed because a fatal signal was delivered to the control process.
See "systemctl status mosquitto.service" and "journalctl -xe" for details.
invoke-rc.d: initscript mosquitto, action "start" failed.
ā mosquitto.service - Mosquitto MQTT v3.1/v3.1.1 Broker
Loaded: loaded (/lib/systemd/system/mosquitto.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: signal) since Tue 2019-09-24 01:09:42 BST; 103ms ago
Docs: man:mosquitto.conf(5)
man:mosquitto(8)
Process: 2130 ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf (code=killed, signal=SEGV)
Main PID: 2130 (code=killed, signal=SEGV)
dpkg: error processing package mosquitto (--configure):
installed mosquitto package post-installation script subprocess returned error exit status 1
Processing triggers for man-db (2.8.5-2) ...
Errors were encountered while processing:
mosquitto
E: Sub-process /usr/bin/dpkg returned an error code (1)
pi@raspberrypi:~/monitor $ sudo apt-get install bc
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
bc
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 101 kB of archives.
After this operation, 220 kB of additional disk space will be used.
Get:1 http://raspbian-us.ngc292.space/raspbian buster/main armhf bc armhf 1.07.1-2 [101 kB]
Fetched 101 kB in 1s (103 kB/s)
Selecting previously unselected package bc.
(Reading database ... 38658 files and directories currently installed.)
Preparing to unpack .../archives/bc_1.07.1-2_armhf.deb ...
Unpacking bc (1.07.1-2) ...
Setting up bc (1.07.1-2) ...
Setting up mosquitto (1.6.6-0mosquitto1~buster1) ...
Job for mosquitto.service failed because a fatal signal was delivered to the control process.
See "systemctl status mosquitto.service" and "journalctl -xe" for details.
invoke-rc.d: initscript mosquitto, action "start" failed.
ā mosquitto.service - Mosquitto MQTT v3.1/v3.1.1 Broker
Loaded: loaded (/lib/systemd/system/mosquitto.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: signal) since Tue 2019-09-24 01:11:21 BST; 105ms ago
Docs: man:mosquitto.conf(5)
man:mosquitto(8)
Process: 2311 ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf (code=killed, signal=SEGV)
Main PID: 2311 (code=killed, signal=SEGV)
dpkg: error processing package mosquitto (--configure):
installed mosquitto package post-installation script subprocess returned error exit status 1
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for install-info (6.5.0.dfsg.1-4+b1) ...
Errors were encountered while processing:
mosquitto
E: Sub-process /usr/bin/dpkg returned an error code (1)
pi@raspberrypi:~/monitor $ sudo bash monitor.sh
> starting monitor.sh (v. 0.2.197)...
> warning: monitor.service not installed. Install service? (y/n)
Y
> error: minimum required mosquitto_sub version 1.5+ not found. please update.
> error: minimum required mosquitto_pub version 1.5+ not found. please update.
> error: please customize mqtt broker address in: mqtt_preferences
> warning: for security purposes, please consider changing 'username' in: mqtt_preferences
> warning: for security purposes, please consider changing 'password' in: mqtt_preferences
> warning: variable mqtt_publisher_identity does not appear in: mqtt_preferences. using hostname: raspberrypi.