In Ubuntu 16.04, the default wxPython is v3.0, install command is "sudo apt-get install python-wxgtk3.0" .
But in some cases, for example, we want to run "robot framework ride", it needs install wxPython2.8.
Below is how to install wxPython2.8 in Ubuntu 16.04 (other higher version Ubuntu can refer below steps) .
It may need wait a while to execute below command, please wait
echo "deb http://archive.ubuntu.com/ubuntu wily main universe" | sudo tee /etc/apt/sources.list.d/wily-copies.list
sudo apt update
sudo apt install python-wxgtk2.8
sudo rm /etc/apt/sources.list.d/wily-copies.list
sudo apt update