Mosquitto will not install

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
baz123
Posts: 166
Joined: Thu Jan 12, 2017 9:23 pm

Mosquitto will not install

Post by baz123 »

Mosquitto fails to install on a fresh Raspberry Pi image. Tried several times.

Code: Select all

--2018-01-07 15:28:59--  http://repo.mosquitto.org/debian/mosquitto-stretch.list
Resolving repo.mosquitto.org (repo.mosquitto.org)... 2001:ba8:1f1:f271::2, 85.119.83.194
Connecting to repo.mosquitto.org (repo.mosquitto.org)|2001:ba8:1f1:f271::2|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 50 [application/octet-stream]
Saving to: ‘/etc/apt/sources.list.d/mosquitto-stretch.list’

/etc/apt/sources.list.d/mosquitto-stre 100%[===========================================================================>]      50  --.-KB/s    in 0s

2018-01-07 15:28:59 (332 KB/s) - ‘/etc/apt/sources.list.d/mosquitto-stretch.list’ saved [50/50]

Get:1 http://repo.mosquitto.org/debian stretch InRelease [3,886 B]
Get:2 http://repo.mosquitto.org/debian stretch/main armhf Packages [2,397 B]
Hit:3 https://www.mirrorservice.org/sites/archive.raspbian.org/raspbian stretch InRelease
Hit:4 https://archive.raspberrypi.org/debian stretch InRelease
Fetched 6,283 B in 6s (988 B/s)
Reading package lists... Done
 [Info] APT is processing, please wait...

E: Unable to correct problems, you have held broken packages.
 [Failed] The apt cache may be corrupt, apt mirror offline, or you have held broken packages. DietPi-Software will now exit.

 [Info] Apt Log:
E: Unable to correct problems, you have held broken packages.

 [Info] Please try:
 [Info] - Fixing apt package errors with 'apt-get install -f'
 [Info] - Change apt mirror: 'dietpi-config' > 'Networking: NAS/MISC' > 'Apt Mirror'
 [Info] - Clear and refresh apt 'apt-get update'
 [Info] - If problems persist, please create a Git ticket so DietPi can investigate the issue:
 - https://github.com/Fourdee/DietPi/issues

baz123
Posts: 166
Joined: Thu Jan 12, 2017 9:23 pm

Re: Mosquitto will not install

Post by baz123 »

Solution is to *not* use the mosquitto.org repo. Debian have updated the dependencies.

Quick fix is to comment out the repo in

Code: Select all

/etc/apt/sources.list.d/mosquitto-stretch.list
and just do an

Code: Select all

apt-get install mosquitto
.

I'll raise an issue.
baz123
Posts: 166
Joined: Thu Jan 12, 2017 9:23 pm

Re: Mosquitto will not install

Post by baz123 »

Post Reply