Wondering if I can use debian backports in my sources list to get the latest v 2.0.18 of mosquitto - there’s been quite a few revisions since the last official bookworm release - 2.0.11 ?
Jappe
2 April 2024 13:32
2
Yeah, sorry, I didn’t provide enough info - running on Pi Zero W (armhf packages).
So the note below where you link to says ‘Current builds are not ARMv6 compatible’
opened 06:48AM - 05 Jan 22 UTC
closed 10:13PM - 08 Jan 22 UTC
ARMv6
External Bug
Workaround available
#### Details:
- Date | Tue Jan 4 20:57:25 SAST 2022
- DietPi versio… n | v7.9.3 (MichaIng/master)
- Image creator | DietPi Core Team
- Pre-image | from scratch
- Hardware | RPi Zero (armv6l) (ID=1)
- Kernel version | `Linux pi 5.10.63+ #1488 Thu Nov 18 16:14:04 GMT 2021 armv6l GNU/Linux`
- Distro | bullseye (ID=6,RASPBIAN=1)
- Command | `apt-get -qq --allow-change-held-packages install mosquitto`
- Exit code | 100
- Software title | DietPi-Software
- Power supply used | (EG: 5V 3.5Amp)
-
- Bug report ID | 2ba09c0d-c9e4-4d04-afac-433f5ef396a4
#### Steps to reproduce:
1. Fresh install of DietPi on Pi Zero
2. Attempt to install Mosquitto (Was trying to install Home Assistant but this is the failing software dependency)
#### Expected behaviour:
- Mosquitto should install and run.
#### Actual behaviour:
- Mosquitto installs but fails to run. See command session below, full details lower down:
- root@pi:~# /usr/sbin/mosquitto
**Illegal instruction**
#### Extra details:
- After initial install failed I tried to disable the dietpi repo and re-ran:
```
root@pi:~# apt purge mosquitto mosquitto-clients
root@pi:~# vi /etc/apt/sources.list.d/dietpi-mosquitto.list # comment out dietpi repo
root@pi:~# apt update
root@pi:~# apt autoremove
# removes libmosquitto1 <- I think this was my problem trying to install older mosquitto...
root@pi:~# apt --fix-broken install mosquitto
```
WORKED!!
#### Additional logs:
```Original fail:
Selecting previously unselected package mosquitto.
(Reading database ... 27350 files and directories currently installed.)
Preparing to unpack .../mosquitto_2.0.12-0mosquitto1~bullseye1_armhf.deb ...
Unpacking mosquitto (2.0.12-0mosquitto1~bullseye1) ...
Setting up mosquitto (2.0.12-0mosquitto1~bullseye1) ...
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 Broker
Loaded: loaded (/lib/systemd/system/mosquitto.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: signal) since Tue 2022-01-04 20:57:24 SAST; 156ms ago
Docs: man:mosquitto.conf(5)
man:mosquitto(8)
Process: 23290 ExecStartPre=/bin/mkdir -m 740 -p /var/log/mosquitto (code=exited, status=0/SUCCESS)
Process: 23291 ExecStartPre=/bin/chown mosquitto /var/log/mosquitto (code=exited, status=0/SUCCESS)
Process: 23292 ExecStartPre=/bin/mkdir -m 740 -p /run/mosquitto (code=exited, status=0/SUCCESS)
Process: 23293 ExecStartPre=/bin/chown mosquitto /run/mosquitto (code=exited, status=0/SUCCESS)
Process: 23294 ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf (code=killed, signal=ILL)
Main PID: 23294 (code=killed, signal=ILL)
CPU: 151ms
Jan 04 20:57:25 pi systemd[1]: mosquitto.service: Scheduled restart job, restart counter is at 1.
Jan 04 20:57:25 pi systemd[1]: Stopped Mosquitto MQTT Broker.
Jan 04 20:57:25 pi systemd[1]: Starting Mosquitto MQTT Broker...
dpkg: error processing package mosquitto (--configure):
installed mosquitto package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
mosquitto
E: Sub-process /usr/bin/dpkg returned an error code (1)
---------------------------------------------------------------------
[FAILED] DietPi-Software | Unable to continue, DietPi-Software will now terminate.
```
Debian -- Details of package mosquitto in bookworm - offers 2.0.11
Debian -- Details of package mosquitto in bookworm-backports - offers 2.0.18
For RPi Zero W (ARMv6), Raspbian is/needs to be used instead of Debian. And Raspbian has no backports repository. So for a more recent Mosquitto, one needs to do an own source build.
Their own APT repo supports ARMv7 and x86_64 only … ah, it does not help you, but I see just last month, for Bookworm, ARMv8/arm64 support has been added: Index of /debian/dists/bookworm/
system
Closed
29 September 2024 19:12
5
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.