If you’ve read the previous post, you know that I consider using python with Webkit and Qt a much better solution than using GTK, so that’s what I recommend. But if you want to give it a try with GTK and need to install pywebkitgtk under Debian Lenny, this is what you need to do:

  1. Open /etc/apt/sources.list and append the following lines to the file.

    # Unstable Sid
    deb http://http.us.debian.org/debian/ unstable main contrib non-free
    # Unstable Sources
    deb-src http://http.us.debian.org/debian/ unstable main contrib non-free
    
  2. Run apt-get update in the shell, so that apt will become aware of the changes in the sources.list file
  3. Run apt-get install pywebkitgtk

Note that you have to be logged in as root or be able to sudo.