Dietpi fail to find eithernet connection at boot time

amd64

these are the 3 packages to download for amd64

https://packages.debian.org/buster/amd64/ifupdown/download
https://packages.debian.org/buster/amd64/iproute2/download
https://packages.debian.org/buster/amd64/isc-dhcp-client/download

download them on an USB stick and mount the stick on your DietPi system. Go into the mounted directory and install the packages using dpkg -i *.deb

I hope it is working this way and no other dependency are missing.

1 Like

during installation error come like this image https://pasteboard.co/JZumKhH.jpg

as unfortunately feared, you are missing some dependency.

Basically you would need to go package by package to have them all together :roll_eyes:

If you start with iproute2, you would need as well libcap2-bin

please send me the link, i will download it & put in same folder with same procedure

letā€™s do it step by step and create 3 folder. This way we can avoid conflicts between the 3 packages

first one should contain iproute2 + libcap2-bin

https://packages.debian.org/buster/amd64/iproute2/download
https://packages.debian.org/buster/amd64/libcap2-bin/download

out of four given packages three installed properly one again got error ā€œisc-dhcp-client_4ā€

https://pasteboard.co/JZuyaBQ.jpg

these 2 would be needed as well

https://packages.debian.org/buster/amd64/libdns-export1104/download
https://packages.debian.org/buster/amd64/libisc-export1100/download

Thanks @Joulinar with your guidance, i am able to install those packages & network is again up again, thanks you are always so helpful

ok good itā€™s working again. I guess it was better this way than reinstall whole system. And donā€™t forget to create a backup now :wink:

Here my guess: The Pi-hole uninstall script allows to purge all its dependency packages, looping through them one after another: https://github.com/pi-hole/pi-hole/blob/master/automated%20install/uninstall.sh#L73-L92
This includes iproute2, the very basic network package, all network capabilities are based on. That is very bad and lead already to many broken systems. Iā€™m gonna make this a topic now on the Pi-hole repository, this is long overdue.

Either packages must only be marked as ā€œautoā€, which allows them to be autoremoved afterwards, IF not other package requires them. Due to installed ā€œifupdownā€, this would not happen with iproute2 then. I guess in your case ā€œrc ifupdownā€ was in the ā€œdpkg -lā€ output, as the package got removed (as dependant of iproute2) but the config file remained (ii = installed, rc = only config files still present).

Also Pi-hole aims to make the install and grants great free user support, which addresses especially inexperienced users. But giving them an easy choice to break the system on regular uninstall works completely against that aim :open_mouth:.

wtf, how could PiHole recommend to remove essential network packages ??

MichaIng
Should we add a notification window on PiHole uninstall to inform user about the package removal and a recommendation to decalin?

They do not recommend to remove those packages. Although: pi-hole/automated install/uninstall.sh at master Ā· pi-hole/pi-hole Ā· GitHub

All dependencies are safe to remove on Raspbian

That statement is dramatically wrong :thinking:.

Iā€™ll open a PR to change this statement into basically the opposite. As I regularly read issues with this in the Pi-hole forum as well, I think it makes much more sense to support/contribute a fix at Pi-hole itself instead of adding another warning only in our (un)installer, especially since users would be faced with two contradicting statements on RPi then.

what a dangerous statement. Letā€™s try to convince PiHole guys to rework this behaviour :roll_eyes:

Done: https://github.com/pi-hole/pi-hole/issues/3929
I hope it was not to harsh :slight_smile:. So issue is known and Dan from Pi-hole sees it like us: ā€œShotgun loaded and handed to userā€

Iā€™ll open a PR about the sentence, the thing with the dependency package (best solution I can think of) is a little larger and Iā€™m not sure how big the motivation is to integrate this into Pi-hole v5 while Pi-hole v6 branch is already there and would cause merge conflicts.

thx MichaIng
ok best we can do for the moment. And good to keep in mind if some of our users will run into it again.

Next time someone else should open the PR. Itā€™s impossible for me to succeed with any reasonable commit as fast as Dan is involved :frowning:. Hopefully the other Pi-hole devs override his request to turn my PR into a no-op, while on the issue, everyone agreed on much more alreadyā€¦ Iā€™m not gonna contribute the extra free spare time to change one PR, open another one, open both against the v6 branch, and still have only the very minimal short-term solution :roll_eyes:.

I see a close friendship coming :stuck_out_tongue:

I have asked for changes as the maintainer of this repo. Iā€™m not expecting pushback for my requests.

well open minded :rofl:

Long story already. Also weā€™re both stubborn, that doesnā€™t make it easier. Heā€™s like that to others as well, but at least my impression is that itā€™s becoming very unreasonable when itā€™s about a PR or topic started by me.

I think the matter is now on the table and Iā€™ll wait for at least another maintainers statement before thinking about a degraded PR, as then itā€™s nearly not worth the effort, same with little one time coding changes, that are either part of another commit or simply not done (which is totally fine, just hurts my eyes :roll_eyes:).

we have something similar on my company. They call it change management. Each change on a system require an own change ticket :roll_eyes: