Mosquitto not installing right

Hi. Really need you help. My sdcard broke and im having trouble with my new hassbian install. I cant seem to get mosquitto broker to install with the script?

please help if you can! All my lights and heating is not working

Thanks

It looks like it is trying to download an older version of mosquitto. My version is 1.4.14.

What does cat /etc/apt/sources.list.d/mosquitto-stretch.list show?

If it is
deb http://repo.mosquitto.org/debian stretch main
then that is fine.

Try installing mosquitto manually -

sudo apt-get update
sudo apt-get install mosquitto 

it shows this. will try manually now

shows this when updating:

and this when installing:

never had problems with mosquitto before ha 0.60

I don’t think the sudo apt-get update is working properly for you:

In the repo, only version 1.4.14 exists, hence your error (as it seems to be trying to download version 1.4.12):

Can you please show us the result of the command ‘ls -all /etc/apt/sources.list.d’?

My idea would be to remove these offending files (as per first print screen above) and then trying again running the script or sudo apt-get update + manual install of mosquitto.

Mosquitto on stretch caused quite a few problems when stretch was first introduced, but I hadn’t heard of any problems in the past couple of months.

I’m not sure why it is trying to fetch version 1.4.12 when the latest is 1.4.14. Try doing

apt-cache search mosquitto

To see if there is some other version in the configuration.

I’d do

sudo rm /etc/apt/sources.list.d/mosquitto-stretch.list.*

and try again installing from script.

After all, it seems like a known issue.

Tryed and not working

how do i remove all traces off old mosquitto?

Try workaround suggested:

sudo curl -o /opt/hassbian/suites/install_mosquitto.sh https://gist.githubusercontent.com/ludeeus/7325db650da394401741c1db64491beb/raw/49aa38d66fe9ce2d2002af950046b36e4b2bfeb4/install_mosquitto.sh && sudo hassbian-config install mosquitto

yes but it says that i should remove all traces off old installation?

failed!

I have replicated the issue, will try to correct it later today

1 Like

@Lars_Skovgaard
There is an issue with the repo for mosquitto, it points to version 1.4.12, but in the repo there is only 1.4.14.
You can run this to install mosquitto now:

sudo curl -o /opt/hassbian/suites/install_mosquitto.sh https://raw.githubusercontent.com/ludeeus/Tools/master/hassbian-config/hotfix/install_mosquitto.sh && sudo hassbian-config install mosquitto

Note that this is an HotFix, and the prefered fix is correction in the repo.

1 Like