≡ Menu

Ubuntu Linux: Install KDE 4.2

Q. How do I install KDE version 4.2 under Ubuntu Linux using binary method?

A. Some Linux/UNIX OS vendors have kindly provided binary packages of KDE 4.2 Beta 1.

You can easily install KDE 4.2 under Ubuntu Linux by visiting launchpad.net and downloading latest packages.

Install KDE 4.2 under Ubuntu Linux 8.10

Open terminal.

Type the following command to become a root user:
$ sudo bash
Type the following command to update /etc/apt/sources.list file under Ubuntu Intrepid version 8.10, enter:
# echo 'deb http://ppa.launchpad.net/project-neon/ubuntu intrepid main' >> /etc/apt/sources.list

A note about Ubuntu Hardy Linux

Add following line to your /etc/apt/sources.list file:
# echo 'deb http://ppa.launchpad.net/project-neon/ubuntu hardy main' >>/etc/apt/sources.list

Now Install KDE 4.2

Type the following command:
$ sudo apt-get update
$ sudo apt-get install kde-nightly

Reboot the system or just logout and login into new KDE 4.2. Choose KDE Nightly (Neon) from the session menu and log in again .

Fig.01: Kde Desktop v4.2 in action

Fig.01: Kde Desktop v4.2 in action


Share this tutorial on:

Your support makes a big difference:
I have a small favor to ask. More people are reading the nixCraft. Many of you block advertising which is your right, and advertising revenues are not sufficient to cover my operating costs. So you can see why I need to ask for your help. The nixCraft, takes a lot of my time and hard work to produce. If you use nixCraft, who likes it, helps me with donations:
Become a Supporter →    Make a contribution via Paypal/Bitcoin →   

Don't Miss Any Linux and Unix Tips

Get nixCraft in your inbox. It's free:

{ 21 comments… add one }
  • Dev December 6, 2008, 6:37 pm

    Nice post i have ubuntu and i’ve try to install this. Thankyou

  • sysop December 7, 2008, 1:55 am

    I’m not getting why you want poeple to “sudo bash” first when “sudo echo ‘deb http://ppa.launchpad.net/project-neon/ubuntu intrepid main’ >> /etc/apt/sources.list” will do the same thing without leaving a root shell open

  • chatmoa December 8, 2008, 8:31 am

    This installs nightly-builds witch is sometimes unuseable.

    Using this way, this would be more stable


    Have fun with it.

  • Ilias Marinos December 13, 2008, 12:32 am


    Because “sudo echo ” will give super user perms to the command echo.It will not open the fd with superuser perms for append.Is the nickname just for fun?
    FYI, if you “don’t want an open root shell” you could do for example:

    echo ‘something’ | sudo tee -a /your/file/path/here

  • beetle December 27, 2008, 11:44 am

    i have tried to install it under ubuntu hardy and it seems the packages list is empty, Any clue?

  • Frank January 1, 2009, 12:04 am

    Unfortunately I chose to stick with Hardy for its “long term support”…
    I didn’t realize that it only applies to Ubuntu and not Kubuntu

  • JeanJean January 1, 2009, 11:01 pm


    Like bettle in previous comment I have add repo- for hardy 8.04, but it seems emtpy, any other repo- to try?
    thanks :)

  • hatsch January 29, 2009, 1:44 pm

    refering to the kubuntu website kde 4.2 is not available for ubuntu hardy. you have to use intrepid or jaunty. i use intrepid myself….

  • Toni January 30, 2009, 9:41 pm

    I get the following;

    W: GPG error: http://ppa.launchpad.net intrepid Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 778978B00F7992B0

  • Linuxman February 2, 2009, 6:07 am

    Doesn’t work on Hardy as stated above.
    Anybody knows how to install KDE 4.2 on (K)ubuntu Hardy?

  • Root February 2, 2009, 9:08 pm

    Installing the repository’s public key as root will help.
    # gpg –recv-keys 778978B00F7992B0
    # gpg –armor –export 778978B00F7992B0 | apt-key add –

  • Toni February 7, 2009, 12:23 am


    toni@~:~$ sudo gpg –recv-keys 778978B00F7992B0
    gpg: WARNING: unsafe ownership on configuration file `/home/toni/.gnupg/gpg.conf’
    usage: gpg [options] [filename]
    toni@~:~$ sudo gpg –armor –export 778978B00F7992B0 | apt-key add –
    gpg: WARNING: unsafe ownership on configuration file `/home/toni/.gnupg/gpg.conf’
    usage: gpg [options] [filename]
    gpg: no valid OpenPGP data found.

    Sorry for the potential irration, but I am at a loss as to what to do from here. Is my OpenPGP package hosed?


  • Me February 8, 2009, 7:30 pm

    The safest, leanest, best way to accomplish this is:

    sudo sh -c ‘echo deb http://ppa.launchpad.net/project-neon/ubuntu intrepid main >> /etc/apt/sources.list’

    or like Ilias mentioned is another way of many ways.

    sudo bash is just as bad as ‘sudo su -‘.

    @Sysop, dude, ummm, omg… Same thoughts as Ilias…

  • Acidzfire February 9, 2009, 5:57 pm

    Toni, as your regular user, run:
    gpg –keyserver keyserver.ubuntu.com –recv 778978B00F7992B0


    gpg –export –armor 778978B00F7992B0 | sudo apt-key add –

    and it should work

  • Acidzfire February 9, 2009, 5:59 pm

    after that run
    sudo apt-get update

    and you shouldnt get any errors

  • Acidzfire February 9, 2009, 6:02 pm

    sorry. i keep forgetting to put everything in. the reason your command fails toni, is because the /home/toni/.gnupg/gpg.conf file is owned by toni and not root. when you sudo that command it runs it as root, which does not own the file. That is why you run the gpg commands as your regular user then pipe the second using sudo for the apt-update

  • IntoDevel February 21, 2009, 10:05 pm

    I solved my problems with Ubuntu by running the following commands sequentially. The first command did the trick for me.

    sudo su –
    gpg –keyserver keyserver.ubuntu.com –recv 778978B00F7992B0
    gpg –export –armor 778978B00F7992B0 | sudo apt-key add –
    sudo apt-get install kde-nightly

  • Floh March 6, 2009, 7:37 am


    I compiled kde 4.2 for Hardy (but no backport from intrepid, its a new additonal kde that will be completely installed into /opt/kde4) and I tried to make a debian package:


    Any help with making a real repository is appreciated.

  • Juan April 6, 2009, 3:53 pm

    KDE 4.2 is not available for Hardy in porject Neon!

  • Abdur Rahman December 7, 2009, 11:45 am



    I tryied to install amarok in ubuntu 9.10

    I am unable to install the amarok player…

    please help me to install…

    mysystem configuration is

    Processor : Intel Pentium IV – 3Ghz

    Mother Board : intel desktop board D865GSA

    RAM : 512 MB (DDR2)

    rahman@rahman-desktop:~/Desktop$ cd amarok-2.2.1

    rahman@rahman-desktop:~/Desktop/amarok-2.2.1$ mkdir amarok-2.2.1-build

    rahman@rahman-desktop:~/Desktop/amarok-2.2.1$ cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config –prefix`

    The program ‘kde4-config’ is currently not installed. You can install it by typing:

    sudo apt-get install kdelibs-bin
    kde4-config: command not found

    The program ‘cmake’ is currently not installed. You can install it by typing:

    sudo apt-get install cmake

    cmake: command not found

    rahman@rahman-desktop:~/Desktop/amarok-2.2.1$ kde4-config

    The program ‘kde4-config’ is currently not installed. You can install it by typing:

    sudo apt-get install kdelibs-bin

    kde4-config: command not found

    rahman@rahman-desktop:~/Desktop/amarok-2.2.1$ sudo apt-get install kdelibs-bin

    Reading package lists… Done

    Building dependency tree

    Reading state information… Done

    E: Couldn’t find package kdelibs-bin



    If you know the procedure to install…

    Pls mail me to the Address : rahman.ssar@gmail.com




  • Johnny Buckallew Stroud February 23, 2010, 4:05 am

    gpg –keyserver keyserver.ubuntu.com –recv-keys 778978B00F7992B0 && gpg –export -a 778978B00F7992B0 | sudo apt-key add –

    and done. this will fix the PGP key error .. maybe just an epic fail.

Leave a Comment

You can use these HTML tags and attributes: <strong> <em> <pre> <code> <a href="" title="">

   Tagged with: , , , , , , , , , , , , ,