So, just few days ago I installed debian to a laptop. During setup I chose GNOME as desktop environment but I later came to the conclusion that I didn't really want a desktop. So I tried to uninstall it. I ran sudo tasksel
, unchecked "Desktop Environment: GNOME" and selected OK. It did something... Can't remember the output but it was not obvious.
After that sudo
and reboot
were not recognized as valid commands anymore. I could reboot by executing /sbin/reboot
as root though. After that, I was still greeted by GNOME and sudo
and reboot
were still broken. tasksel
showed no desktop selected.
Long story short: It failed uninstalling GNOME and messed up my system. I don't know what it all messed up so I consider just completely reinstalling debian again.
But I really want to understand what I did wrong. Whenever I touch Linux I mess it up pretty quick :/
which sudo
to your question.which su
it's/usr/bin/su
. Also$PATH
is fine (/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
)su - && apt install sudo
? Looks like we have to rebuild what you took out then properly remove the Desktop Environment.reboot
can still not be found. The point of my question is - what when wrong in general? I didn't do anything besides unselecting GNOME. I didn't install and uninstall a ton of packages in between. The system was installed just a few days ago. I really only installed docker.