Code Time Bombs

I often follow enlightening code install pages only to find that perfectly good instructions have since been corroded: by time, removed URLs, version updates etc. I have spent many DAYS following such installations only to get to a “Gotcha” halt point.

I have a perfectly running DietPi MQTT broker implementation running in my home on a Pi Zero W (8Gb CF) by following Andreas Spiess excellent video but eight months later I decided I needed Let’s Encrypt on it. This would not install so I decided to create another broker on a RaspBerry

Let’s Encrypt

3 (32Gb CF). I installed the current DietPi_v158_RPi-armv6-(Stretch).img on that to find Encrypt not installing and apt-get upgrade not working.

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.

Apparently bootloader and kernal are on hold to make it thinner.

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:

I tried all three fixes but while node-red installs, mosquitto won’t install. Abandon and reformat compact flash card to try another way.


Leave a comment

Your email address will not be published. Required fields are marked *