Hi Guys,
Trying to install MQTT via script on Hassbian ( image 13-9-17 ) without success. Looking at the output from the script below I’m not too sure whats happening.
I’ve upgraded the OS and install scripts with no change in errors
If someone can take a look at the output and make some suggestions I’d be very great full.
TIA
pi@hassbian:~ $ sudo hassbian-config install mosquitto
Mosquitto Installer for Hassbian
Copyright(c) 2016 Dale Higgs <https://gitter.im/dale3h>
Modified by Landrash for use with Hassbian.
Adding mosquitto user
The system user `mosquitto' already exists. Exiting.
Creating pid file
Creating data directory
Installing repository key
--2017-09-27 08:12:53-- http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key
Resolving repo.mosquitto.org (repo.mosquitto.org)... 85.119.83.194, 2001:ba8:1f1:f271::2
Connecting to repo.mosquitto.org (repo.mosquitto.org)|85.119.83.194|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3137 (3.1K) [application/octet-stream]
Saving to: ‘STDOUT’
- 100%[===================>] 3.06K --.-KB/s in 0s
2017-09-27 08:12:54 (8.50 MB/s) - written to stdout [3137/3137]
OK
Adding repository
--2017-09-27 08:12:56-- http://repo.mosquitto.org/debian/mosquitto-stretch.list
Resolving repo.mosquitto.org (repo.mosquitto.org)... 85.119.83.194, 2001:ba8:1f1:f271::2
Connecting to repo.mosquitto.org (repo.mosquitto.org)|85.119.83.194|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 50 [application/octet-stream]
Saving to: ‘mosquitto-stretch.list.2’
mosquitto-stretch.l 100%[===================>] 50 --.-KB/s in 0s
2017-09-27 08:12:56 (253 KB/s) - ‘mosquitto-stretch.list.2’ saved [50/50]
Installing mosquitto
Hit:1 http://mirrordirector.raspbian.org/raspbian stretch InRelease
Hit:2 http://repo.mosquitto.org/debian stretch InRelease
Hit:3 http://archive.raspberrypi.org/debian stretch InRelease
Reading package lists... Done
N: Ignoring file 'pwfile' in directory '/etc/apt/sources.list.d/' as it has no filename extension
N: Ignoring file 'mosquitto-stretch.list.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'mosquitto-stretch.list.2' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
mosquitto : Depends: libssl1.0.0 (>= 1.0.1) but it is not installable
Depends: libwebsockets3 (>= 1.2) but it is not installable
mosquitto-clients : Depends: libmosquitto1 (= 1.4.12-0mosquitto1) but it is not going to be installed
N: Ignoring file 'pwfile' in directory '/etc/apt/sources.list.d/' as it has no filename extension
N: Ignoring file 'mosquitto-stretch.list.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'mosquitto-stretch.list.2' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
E: Unable to correct problems, you have held broken packages.
Writing default configuration
/opt/hassbian/suites/install_mosquitto.sh: line 48: cd: /etc/mosquitto: No such file or directory
mv: cannot stat 'mosquitto.conf': No such file or directory
cp: cannot create regular file '/etc/mosquitto/mosquitto.conf': No such file or directory
chown: cannot access 'mosquitto.conf': No such file or directory
Initializing password file
Please take a moment to setup your first MQTT user
If no choice is made a default account will be created
Username:
Password:
Creating password entry for user pi
/opt/hassbian/suites/install_mosquitto.sh: line 77: mosquitto_passwd: command not found
Restarting Mosquitto service
Failed to restart mosquitto.service: Unit mosquitto.service not found.
Installation done!
Your MQTT broker is running at :1883 or if prefered hassbian.local
To continue have a look at https://home-assistant.io/docs/mqtt/
If you have issues with this script, please say something in the #Hassbian channel on Discord.
Original script by @dale3h on gitter.im