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


🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 21 comments so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersdf duf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Modern utilitiesbat exa
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg glances gtop jobs killall kill pidof pstree pwdx time vtop
Searchingag grep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
21 comments… add one
  • Dev Dec 6, 2008 @ 18:37

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

  • sysop Dec 7, 2008 @ 1:55

    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 Dec 8, 2008 @ 8:31

    This installs nightly-builds witch is sometimes unuseable.

    Using this way, this would be more stable


    Have fun with it.

  • Ilias Marinos Dec 13, 2008 @ 0:32


    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 Dec 27, 2008 @ 11:44

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

  • Frank Jan 1, 2009 @ 0:04

    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 Jan 1, 2009 @ 23:01


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

  • hatsch Jan 29, 2009 @ 13:44

    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 Jan 30, 2009 @ 21:41

    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 Feb 2, 2009 @ 6:07

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

  • Root Feb 2, 2009 @ 21:08

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

  • Toni Feb 7, 2009 @ 0:23


    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 Feb 8, 2009 @ 19:30

    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 Feb 9, 2009 @ 17:57

    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 Feb 9, 2009 @ 17:59

    after that run
    sudo apt-get update

    and you shouldnt get any errors

  • Acidzfire Feb 9, 2009 @ 18:02

    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 Feb 21, 2009 @ 22:05

    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 Mar 6, 2009 @ 7:37


    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 Apr 6, 2009 @ 15:53

    KDE 4.2 is not available for Hardy in porject Neon!

  • Abdur Rahman Dec 7, 2009 @ 11:45



    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 Feb 23, 2010 @ 4:05

    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 Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum