I want to have both KDE and Gnome shells on Ubuntu. Ubuntu only has Gnome installed by default. How do I install KDE?
You need to install the
kubuntu-desktop package for the full install.
The GUI method would be to click this button:
The command line method would be:
sudo apt-get install kubuntu-desktop
Then the next time you login you can choose what to use from the login screen (under Session).
To install KDE on Ubuntu (12.04,14.04,14.10,15.04,15.10) (plasma 5.3)
sudo add-apt-repository ppa:kubuntu-ppa/backports sudo apt-get update && sudo apt-get dist-upgrade sudo apt-get install kubuntu-desktop
To install KDE on Ubuntu (15.04,15.10) (plasma 5.4)
sudo add-apt-repository ppa:kubuntu-ci/stable sudo apt-get update && sudo apt-get dist-upgrade sudo apt-get install kubuntu-desktop
Note: To install plasma 5.4,you need to remove backports ppa.
I think the most complete answer is here. According to what you want to install (only the GUI or GUI+some packages).
Citing the content of the answer:
plasma-desktopdiffer only by whether they install the netbook or the desktop interface.
kde-workspaceis identical to
kde-plasma-desktopwill install a few KDE programs: Dolphin, Konqueror, kde-baseapps, konsole, kwrite, and kde-passwd.
kde-standardinstalls a bunch of stuff on top of
kde-desktop: Akregator, Ark, Dragonplayer, gnupg, Kaddressbook, Kate, KDE wallpapers, Kmail, etc.
kubuntu-desktopinstalls even more than
kubuntu-desktopis the package you would download from the Ubuntu website if you wanted Kubuntu, but if you only want the Plasma interface, not any of the default programs,
plasma-desktopmight be sufficient.
Choose the package you want and then run
sudo apt-get install package-name