Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 6052

Troubleshooting • Re: [Semi-Repaired] 'sudo apt install git-all' trashed my system

$
0
0
I can accept that, but would also suggest package installers should support some means of mitigating things when the packager hasn't.
This feature already exists. apt will refuse to remove any package tagged as essential. However, systemd isn't considered to be essential system critical as it can be swapped out. It may break various other packages but the system will (mostly) run and is recoverable. Complain to the Debian systemd packaging team if you don't agree.

Code:

$ sudo apt remove dashReading package lists... DoneBuilding dependency tree... DoneReading state information... DoneThe following packages will be REMOVED:  dashWARNING: The following essential packages will be removed.This should NOT be done unless you know exactly what you are doing!  dash0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.After this operation, 204 kB disk space will be freed.E: Removing essential system-critical packages is not permitted. This might break the system.
At least I now know what to suggest - to those Linux users I might want to cause grief to - to try if they ever ask :twisted:
Only if they're running an old Buster install. Anybody with Bullseye or newer won't be affected.

Statistics: Posted by trejan — Wed May 29, 2024 8:11 pm



Viewing all articles
Browse latest Browse all 6052

Latest Images

Trending Articles



Latest Images