Install python-wxgtk2.8 on Ubuntu 16.04

Does anybody know how to install python-wxgtk2.8 on Ubuntu 16.04?

Is needed for ride (robot framework)

Thank you in advance!


Solution 1:

Take a turn, you are in the wrong direction!

The correct way is move on with newer release. But for side packages like this one, you can always install builds from older releases. If APT didn't raise any unmet dependencies.

A rule that may help you in future with other packages: See python-wxgtk2.8, The upstream version 2.8 is part of Debian package name. Ubuntu (dpkg/apt) allows installation of multiple copies of a package if they don't have same package name.

Tested on VBox with Ubuntu 16.04.

  1. Add needed repository and update package list

     echo "deb http://archive.ubuntu.com/ubuntu wily main universe" | sudo tee /etc/apt/sources.list.d/wily-copies.list
     sudo apt update
    
  2. Install it

     sudo apt install python-wxgtk2.8
    
  3. Remove repository entry and update package list again

     sudo rm /etc/apt/sources.list.d/wily-copies.list
     sudo apt update
    

Note:

Following this method on large scale can lead to unmet dependency hell. So keep in mind this is similar to PPA's. To solve issues with following packages, purge them:

libgstreamer-plugins-base0.10-0
libgstreamer0.10-0
libwxbase2.8-0
libwxgtk-media2.8-0
libwxgtk2.8-0
python-wxgtk2.8
python-wxversion

Solution 2:

You can download packages from previous version at http://packages.ubuntu.com/, in this case you need http://packages.ubuntu.com/trusty/python-wxgtk2.8.

I usually choose the closest Ubuntu distro version that has the needed packages and download those. It's better to avoid it, but sometimes one can't.