I have not tried this, but seems others have.
https://ubuntuforums.org/showthread....71#post9174671
This may also work:
Code:
sudo tasksel remove ubuntu-desktop
Tasksel also has a test mode the will go through the process without changing anything, using the "-t" switch.
Code:
sudo tasksel remove ubuntu-desktop -t
It would be interesting to find out if this actually works.
Edit
Taskel can be very aggresive at package removal, taking too much at times. The link above removes the desktop and installs the basic server (console) at the same time. I think a better route to go.
Bookmarks