I installed eclipse mosquitto in a container on an Rpi4B and it is working, can publish and subscribe. However, whenever I run sudo apt upgrade, I get this error report:
Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up mosquitto (1.5.7-1+deb10u1) …
Job for mosquitto.service failed because the control process exited with error code.
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; disabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Thu 2022-06-02 07:47:19 MDT; 23ms ago
Process: 2607 ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf (code=exited, status=1/FAILURE)
Main PID: 2607 (code=exited, status=1/FAILURE)
dpkg: error processing package mosquitto (–configure):
installed mosquitto package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
I am using mosquitto version 1.5.7 and built the container this way:
sudo docker run -itd
Is there a way to get rid of the apt upgrade error messages? Thanks for any help.