MichaIng / DietPi

Lightweight justice for your single-board computer!
https://dietpi.com/
GNU General Public License v2.0
4.67k stars 492 forks source link

Dietpi-Software installs microblog.pub instead of build-essential package #7094

Open dot-mike opened 4 weeks ago

dot-mike commented 4 weeks ago

Creating a bug report/issue

Required Information

Additional Information (if applicable)

Steps to reproduce

  1. Install DietPi on RPi4 Model B
  2. Try to install build-essential using dietpi-softwarecommand: dietpi-software install 16

Expected behaviour

Actual behaviour

dietpilog.txt

MichaIng commented 4 weeks ago

With DietPi v8.15, build-essential has been removed from dietpi-software, and later the software ID has been reused with microblog.pub: https://dietpi.com/docs/releases/v8_15/#removed-software

Just install it via APT:

apt install build-essential

Or better install those compilers/tools/headers you really need for whatever you want to compile. Above package contains e.g. dpkg-dev for compiling DEB packages, which is rarely needed.

Is the software ID 16 still wrong referenced somewhere?

dot-mike commented 4 weeks ago

Appreciate the quick response! I was actually following a guide from 2023 to install RetroPie on my DietPi installation. And it so happened I could not find ID 16 in TUI for dietpi-software, so I proceeded trying to install using CLI method. It's not that the ID 16 for build-essential is referenced in DietPi, but it's still being referenced on the intewebs.

I would not recommend re-using a removed / depricated software ID for another software then. It's confusing for new users who follow an old guide where some parts still apply. If it's removed, the ID should be added to a blacklist and the user should get a warning when trying to use it. Just my 2 cents

ID 16 is first referenced her: https://github.com/MichaIng/DietPi/blob/b13c6731a1d01bb3d9179f26da1cd02dea1a9b28/.meta/dietpi-survey_report#L222 Then removed from the bash array here: https://github.com/MichaIng/DietPi/blob/b13c6731a1d01bb3d9179f26da1cd02dea1a9b28/.meta/dietpi-survey_report#L657 and ID 16 is re-used for another software here: https://github.com/MichaIng/DietPi/blob/b13c6731a1d01bb3d9179f26da1cd02dea1a9b28/.meta/dietpi-survey_report#L664

MichaIng commented 4 weeks ago

We'll think about it. Makes sense at least for libraries, build tools/stacks and such.

The survey report script needs to define per DietPi version so that uploads from older DietPi versions are interpreted correctly.

There is btw also dietpi-software list to see which software ID is what, and: https://github.com/MichaIng/DietPi/wiki/DietPi-Software-list