PDA

View Full Version : [SOLVED] How to remove the GUI?



latestbeats
February 9th, 2011, 01:43 PM
Hi,

I'm a new user of linux and a few weeks ago i installed Ubuntu Server 10.10. And after a few day's i installed the GUI with: apt-get install ubuntu-desktop. But now, a few weeks later i want to remove the GUI again. How can i do this and is this possible?

vortmax
February 9th, 2011, 02:26 PM
apt-get --purge remove ubuntu-desktop

latestbeats
February 9th, 2011, 02:48 PM
Alright, I used the command in the terminal, but it seems not working... After rebooting my system i still having the GUI. :(
Whats the problem or i'm doing something wrong?

vortmax
February 9th, 2011, 02:50 PM
what did it say when you ran the command ?

edit:

try:


sudo tasksel


uncheck "Ubuntu Desktop"
check "basic ubuntu-server"

latestbeats
February 9th, 2011, 02:54 PM
root@ubuntu:~# apt-get --purge remove ubuntu-desktop
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
ubuntu-desktop*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 61.4kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 222615 files and directories currently installed.)
Removing ubuntu-desktop ...
root@ubuntu:~#

Edit:

I just tried tasksel, Ubuntu desktop was already unchecked and Basic Ubuntu-Server wasn't in the list.

mcduck
February 9th, 2011, 03:02 PM
Yep, that's not gouin to remove anyhting else than the "ubuntu-desktop" metapackage itself.

Try running "sudo apt-get autoremove" to get rid of the packages installed as dependencies for "ubuntu-desktop. Meaning all the actual packages.

(you could also have ran "sudo apt-get --purge autoremove ubuntu-desktop" in the first place, but luckily autoremove should still do it's job just fine)

latestbeats
February 9th, 2011, 03:17 PM
root@ubuntu:~# sudo apt-get --purge autoremove ubuntu-desktop
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
ubuntu-desktop*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 61.4kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 222615 files and directories currently installed.)
Removing ubuntu-desktop ...
root@ubuntu:~#

After rebooting i still have the gui.
What's going wrong?:confused:

nothingspecial
February 9th, 2011, 03:28 PM
Have a look at this page

Copy and paste the remove ubuntu bit, but make sure you delete the very end bit


&& sudo apt-get install kubuntu-desktop

or you will remove ubuntu but end up with kubuntu instead.

http://www.psychocats.net/ubuntu/purekde

latestbeats
February 9th, 2011, 04:12 PM
Works great! I copied the code and pasted it in gedit, I deleted "&& sudo apt-get install kubuntu-desktop" and saved it as uninstal.sh. after that, i did "batch uninstal.sh" And it started to uninstall a lot of things. After rebooting i could login to the terminal.

Thanks a lot for helping me!:D