Apt-get :: llibgtk2.0-bin error



I tried installing mozilla-firefox through apt-get, after downloading all  the packages, it tries to install libgtk2.0-bin and stops with an error.
Code Sample

Updating the IM modules list for GTK+-2.4.0.../usr/bin/gtk-query-immodules-2.0: error while loading shared libraries: libXrandr.so.2: cannot open shared object file: No such file or directory
dpkg: error processing libgtk2.0-bin (--configure):
 subprocess post-installation script returned error exit status 127
Errors were encountered while processing:
  libgtk2.0-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)

apart from packages which are dependent on libgtk2(like mozilla-firefox and gimp), apt-get installs everything else. Help is greatly appreciated


Thanks

Looks like you need libxrandr (or libxrandr2?), and probably much more.
GTK2 is not a part of DSL...in order to install gtk2 apps you need to first install gtk2.  In order to do that, you might need to install other dependencies and may also need to install gtk components in a particular order.


original here.