Hi, may be this comment comes too late, but anyway. I faced the same issue on Precise Pangolin (12.04 LTS), i fixed by
apt-get remove im-switch --purge && apt-get install language-selector- gnome im-switch ubuntu-desktop No more error messages on dpkg! Hope this helps... -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to im-switch in Ubuntu. https://bugs.launchpad.net/bugs/776540 Title: package im-switch 1.20ubuntu3 failed to install/upgrade: el subproceso instalado el script post-installation devolvió el código de salida de error 2 Status in “im-switch” package in Ubuntu: New Bug description: Binary package hint: im-switch pc acer aspire m5610-1m7t, procesor intel core2Quad 2.4ghz, ram 3gb, hd 640gb, video ati radeon hd 2600 pro ProblemType: Package DistroRelease: Ubuntu 11.04 Package: im-switch 1.20ubuntu3 ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2 Uname: Linux 2.6.38-8-generic i686 AptOrdering: im-switch: Configure Architecture: i386 Date: Tue May 3 18:20:08 2011 Dependencies: DpkgTerminalLog: Configurando im-switch (1.20ubuntu3) ... update-alternatives: error: la ruta alternativa /etc/X11/xinit/xinput.d/lo-gtk no existe. dpkg: error al procesar im-switch (--configure): el subproceso instalado el script post-installation devolvió el código de salida de error 2 ErrorMessage: el subproceso instalado el script post-installation devolvió el código de salida de error 2 InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Alpha i386 (20100630.2) PackageArchitecture: all SourcePackage: im-switch Title: package im-switch 1.20ubuntu3 failed to install/upgrade: el subproceso instalado el script post-installation devolvió el código de salida de error 2 UpgradeStatus: Upgraded to natty on 2011-05-03 (0 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/im-switch/+bug/776540/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp