Try this, source: error while loading shared libraries: libgtk-1.2.so.0:
Download the following deb files ...
wget http://ca.archive.ubuntu.com/ubuntu/pool/universe/g/gtk+1.2/libgtk1.2_1.2.10-18.1build2_i386.deb
wget http://ca.archive.ubuntu.com/ubuntu/pool/universe/g/glib1.2/libglib1.2ldbl_1.2.10-19build1_i386.deb
wget http://ca.archive.ubuntu.com/ubuntu/pool/universe/g/gtk+1.2/libgtk1.2-common_1.2.10-18.1build2_all.deb
You can swap out the ‘ca’ part of the url with ‘us’ or whatever your Ubuntu repository country code might be.
Now, inside the directory you downloaded them to, run
sudo dpkg -i *.deb