Fixing the bash-doc error in dietpi-software

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
dynomite567
Posts: 3
Joined: Wed Apr 18, 2018 7:28 pm

Fixing the bash-doc error in dietpi-software

Post by dynomite567 »

Recently with the new update, it seems that when you install anything on DitePi with a fresh new installation of it, it works on the first setup, but when you want to add more software packages, you usually get an error relating to bash-doc and well, that no bueno :(. Luckily you can fix this in three easy steps.

1. Add the official raspbian repo: echo "deb http://archive.raspbian.org/raspbian stretch main contrib non-free" | sudo tee /etc/apt/sources.list.d/raspi.list

2. Add the gpg key (required to download): wget https://archive.raspbian.org/raspbian.public.key -O - | sudo apt-key add -

3. Then download bash-doc: sudo apt-get update && sudo apt-get install bash-doc

This should fix the issue with dietpi-software, if you get any more errors, try seeing if the package is installed first! ;)
User avatar
MichaIng
Site Admin
Posts: 2262
Joined: Sat Nov 18, 2017 6:21 pm

Re: Fixing the bash-doc error in dietpi-software

Post by MichaIng »

@dynomite567
Thanks for this.

Actually this should not be necessary. On every Debian APT mirror, as well on every Raspbian mirror, the bash-doc package should be available. We do this installation on every dietpi-software run just as dry-run to check if the APT mirror is available as expected. This prevents further adjustments of the installation process until the broken mirror leads to errors down the road and leave the installation process just half finished.

On RPi images, we preconfigured a mirror director instead of the official one: https://www.mirrorservice.org/sites/arc ... /raspbian/
This should lead to faster downloads, if your server is located far away from official mirror location. Normally this should work. A possible reason for the error you faced might be the recent update of the raspbarrypi-sys-mods package. This adjustes the mirror string archive.raspbian.org into raspbian.raspberrypi.org, for whatever reason, and does this in a rough way, not respecting, that this pattern might occur as well in other combinations than just deb http://archive.raspbian.org/... Also httpS://archive.raspbian.org/ got broken by this, as httpS://raspbian.raspberrypi.org is not reachable...
We fixed this in recent DietPi versions, but it might be, that if you are on earlier DietPi version and APT upgraded raspbarrypi-sys-mods, you are affected by this. Maybe you can verify that this was your case?
Post Reply