I'm going off of memory here, but I believe that apt-get out of the box installs 1.4.10. I have read that using 1.4.10 is a bad idea because it's vulnerable. I have tried installing version 1.4.12 so I can use websockets. I found a wonderful guide on reddit https://www.reddit.com/r/raspberry_pi/c ... pberry_pi/ that explains the issue quite well. I was able to follow the guide completely, but at the end I get an error with the libssl Shared Object Library. I asked for help on reddit, but haven't heard anything back. I do believe that the guide is the most secure way to get Mosquitto installed on stretch... too bad I couldn't get it to work. If anyone could help that would be greatly appreciated.
I got to the point where I said forget Mosquitto and started looking at a different solution. I figured I would try RabbitMQ, since I hard a bunch of good things about it.
Installing RabbitMQ has been frustrating also. I have tried looking for a guide for stretch, but didn't have any luck. I have used the guide that was on Rabbitmq's website, but was not successful.
Here is a bunch of the command line output that I had while I was trying to install RabbitMQ. Maybe someone could point me in the right direction...? This has been really frustrating, as I have tried installing 2 different MQTT brokers on Raspbian and not been able to get it right.
Thanks for all your help!
I broke all the command line output into multiple code blocks to hopefully make it easier to read.
Code: Select all
pi@raspberrypi:~/rabbitmq $ dpkg -i rabbitmq-server_3.7.0-1_all.deb dpkg: error: requested operation requires superuser privilege pi@raspberrypi:~/rabbitmq $ sudo dpkg -i rabbitmq-server_3.7.0-1_all.deb Selecting previously unselected package rabbitmq-server. (Reading database ... 122961 files and directories currently installed.) Preparing to unpack rabbitmq-server_3.7.0-1_all.deb ... Unpacking rabbitmq-server (3.7.0-1) ... dpkg: dependency problems prevent configuration of rabbitmq-server: rabbitmq-server depends on erlang-nox (>= 1:19.3) | esl-erlang (>= 1:19.3); however: Package erlang-nox is not installed. Package esl-erlang is not installed. rabbitmq-server depends on socat; however: Package socat is not installed. dpkg: error processing package rabbitmq-server (--install): dependency problems - leaving unconfigured Processing triggers for man-db (188.8.131.52-2) ... Processing triggers for systemd (232-25+deb9u1) ... Errors were encountered while processing: rabbitmq-server
Code: Select all
pi@raspberrypi:~/rabbitmq $ apt-cache show erlang-nox Package: erlang-nox Source: erlang Version: 1:19.2.1+dfsg-2 Installed-Size: 46 Maintainer: Debian Erlang Packagers <email@example.com> Architecture: all Depends: erlang-base | erlang-base-hipe, erlang-asn1, erlang-corba, erlang-crypto, erlang-diameter, erlang-edoc, erlang-eldap, erlang-erl-docgen, erlang-eunit, erlang-ic, erlang-inets, erlang-mnesia, erlang-odbc, erlang-os-mon, erlang-parsetools, erlang-percept, erlang-public-key, erlang-runtime-tools, erlang-snmp, erlang-ssh, erlang-ssl, erlang-syntax-tools, erlang-tools, erlang-xmerl Suggests: erlang, erlang-manpages, erlang-doc Size: 35348 SHA256: 394e106bde7c18a3cd0d8040106792e23517f0356960e9d580d078538622e0ad SHA1: f1c7ac3a9419c395104dd966eeccfb14b5f2381e MD5sum: 336dd9e0117254a3e8fda297330c2227 Description: Erlang/OTP applications that don't require X Window System This package is a dummy package which will install all Erlang/OTP applications which do not require X Window System to run. Description-md5: 7a788b312a01454a03fd4262bf827fcd Homepage: http://www.erlang.org/ Tag: devel::TODO, devel::interpreter, role::dummy Section: interpreters Priority: optional Filename: pool/main/e/erlang/erlang-nox_19.2.1+dfsg-2_all.deb
Code: Select all
pi@raspberrypi:~/rabbitmq $ apt-cache show esl-erlang N: Can't select versions from package 'esl-erlang' as it is purely virtual N: No packages found pi@raspberrypi:~/rabbitmq $ apt-cache show socat Package: socat Version: 184.108.40.206-2+deb9u1 Architecture: armhf Maintainer: Laszlo Boszormenyi (GCS) <firstname.lastname@example.org> Installed-Size: 838 Depends: libc6 (>= 2.15), libssl1.1 (>= 1.1.0), libwrap0 (>= 7.6-4~) Homepage: http://www.dest-unreach.org/socat/ Priority: extra Section: net Filename: pool/main/s/socat/socat_220.127.116.11-2+deb9u1_armhf.deb Size: 319816 SHA256: 5d49e0fde70288409ad9578c64b9c655523047052d04d5ab2ffaca130b65d1ef SHA1: d8f9674647caf340a4d8a46805b8b121d55b41d4 MD5sum: e69136e1e7cceffed0e873ff6ff53143 Description: multipurpose relay for bidirectional data transfer Socat (for SOcket CAT) establishes two bidirectional byte streams and transfers data between them. Data channels may be files, pipes, devices (terminal or modem, etc.), or sockets (Unix, IPv4, IPv6, raw, UDP, TCP, SSL). It provides forking, logging and tracing, different modes for interprocess communication and many more options. . It can be used, for example, as a TCP relay (one-shot or daemon), as an external socksifier, as a shell interface to Unix sockets, as an IPv6 relay, as a netcat and rinetd replacement, to redirect TCP-oriented programs to a serial line, or to establish a relatively secure environment (su and chroot) for running client or server shell scripts inside network connections. Socat supports sctp as of 1.7.0. Description-md5: 756f78d1d190c48fab624c958dfcb5ab
Code: Select all
pi@raspberrypi:~/rabbitmq/erlang $ wget http://packages.erlang-solutions.com/site/esl/esl-erlang/FLAVOUR_1_general/esl-erlang_20.1.7-1~raspbian~stretch_armhf.deb --2017-12-08 03:03:15-- http://packages.erlang-solutions.com/site/esl/esl-erlang/FLAVOUR_1_general/esl-erlang_20.1.7-1~raspbian~stretch_armhf.deb Resolving packages.erlang-solutions.com (packages.erlang-solutions.com)... 18.104.22.168 Connecting to packages.erlang-solutions.com (packages.erlang-solutions.com)|22.214.171.124|:80... connected. HTTP request sent, awaiting response... 302 Found Location: http://packages.erlang-solutions.com/erlang/esl-erlang/FLAVOUR_1_general/esl-erlang_20.1.7-1~raspbian~stretch_armhf.deb [following] --2017-12-08 03:03:15-- http://packages.erlang-solutions.com/erlang/esl-erlang/FLAVOUR_1_general/esl-erlang_20.1.7-1~raspbian~stretch_armhf.deb Reusing existing connection to packages.erlang-solutions.com:80. HTTP request sent, awaiting response... 200 OK Length: 39913310 (38M) [application/x-debian-package] Saving to: ‘esl-erlang_20.1.7-1~raspbian~stretch_armhf.deb’ esl-erlang_20.1.7-1~raspbian~stretch_armhf.deb 100%[=====================================================================================================================>] 38.06M 699KB/s in 51s 2017-12-08 03:04:06 (764 KB/s) - ‘esl-erlang_20.1.7-1~raspbian~stretch_armhf.deb’ saved [39913310/39913310]
Code: Select all
pi@raspberrypi:~/rabbitmq/erlang $ sudo dpkg -i esl-erlang_20.1.7-1~raspbian~stretch_armhf.deb Selecting previously unselected package esl-erlang. dpkg: considering removing erlang-base in favour of esl-erlang ... dpkg: no, cannot proceed with removal of erlang-base (--auto-deconfigure will help): sonic-pi depends on erlang-base erlang-base is to be removed. dpkg: regarding esl-erlang_20.1.7-1~raspbian~stretch_armhf.deb containing esl-erlang: esl-erlang conflicts with erlang-base erlang-base (version 1:19.2.1+dfsg-2) is present and installed. dpkg: error processing archive esl-erlang_20.1.7-1~raspbian~stretch_armhf.deb (--install): conflicting packages - not installing esl-erlang Errors were encountered while processing: esl-erlang_20.1.7-1~raspbian~stretch_armhf.deb
Code: Select all
pi@raspberrypi:~/rabbitmq/erlang $ sudo vim /etc/apt/sources.list.d/erlang.list pi@raspberrypi:~/rabbitmq/erlang $ sudo apt-get update Hit:1 http://archive.raspberrypi.org/debian stretch InRelease Hit:2 http://mirrordirector.raspbian.org/raspbian stretch InRelease Ign:3 https://packages.erlang-solutions.com/debian stretch InRelease Get:4 https://packages.erlang-solutions.com/debian stretch Release [3,688 B] Get:5 https://packages.erlang-solutions.com/debian stretch Release.gpg [836 B] Ign:5 https://packages.erlang-solutions.com/debian stretch Release.gpg Get:6 https://packages.erlang-solutions.com/debian stretch/contrib armhf Packages [7,624 B] Fetched 12.1 kB in 5s (2,277 B/s) Reading package lists... Done W: GPG error: https://packages.erlang-solutions.com/debian stretch Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D208507CA14F4FCA W: The repository 'https://packages.erlang-solutions.com/debian stretch Release' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details.