Need a hand with mosquitto user setup

Trying to setup mosquitto on my HA virtual environment install on a Rpi and I’m getting a segmentation fault when running: sudo mosquitto_passwd -c /etc/mosquitto/pwfile hass-mq-username.

Some RPI info:
Rpi b+
Home Assistant 0.61.1
Linux Rpi-MyHass 4.9.59+ #1047 Sun Oct 29 11:47:10 GMT 2017 armv6l GNU/Linux
python3 –version: Python 3.5.3
python –version: Python 2.7.13

Installing mosquitto with:
cd /etc/apt/sources.list.d/
sudo wget
sudo apt-get install mosquitto
sudo apt-get install mosquitto-clients

I get a segfault just running “mosquitto_passwd” as well.

I tried to purge and reinstall mosquitto as well.

My searches have come up with nothing particularly helpful. Need a hand please.

mosquitto seem to be having trouble with their debian pacakges recently. This version is working for me on a b+ with rasbian stretch.

$ apt list --installed mosquitto*
Listing... Done
mosquitto/now 1.4.14-0mosquitto1~jessie2 armhf [installed,local]
mosquitto-clients/now 1.4.14-0mosquitto1~jessie2 armhf [installed,local]
mosquitto-dbg/now 1.4.14-0mosquitto1~jessie2 armhf [installed,local]

If you can’t find a way of getting a different version of the package, you will find it easier to install from source.

Ok removing the source list file from obtained from and going with the Rpi foundation default source seems to be working now.

strange. I was getting unmet package errors before trying the list.

Thanks for the tip.