As a workaround, I killed setupcon which was hanging, then it retried at the end, and I killed it again. Then I went into /usr/bin/setupcon as root and wrote in "exit 0" at the top, so it would exit without doing its evil work.
Then: $ sudo dpkg --configure -a at the end. And things seems fixed. So in other words, you can do this change to /usr/bin/setupcon (and just miss whatever changes it does) after you've killed it the first time. Then the last time it tries, things will succeed. Or you can just fix things after the fact. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to console-setup in Ubuntu. https://bugs.launchpad.net/bugs/989396 Title: Package keyboard-configuration post-installation script. Hang on /bin/setupcon --force --save for 10 min then killed Status in console-setup package in Ubuntu: Confirmed Bug description: I am was in update bunch of packages today on ubuntu 12.04 beta2. While update keyboard-configuration package i get a window which ask how i would like to switch keyboard layout. I choose one an click OK. Than window closed and process hangs for about 30 min. Than i kill it. ProblemType: Package DistroRelease: Ubuntu 12.04 Package: keyboard-configuration 1.70ubuntu5 ProcVersionSignature: Ubuntu 3.2.0-20.33-generic 3.2.12 Uname: Linux 3.2.0-20-generic x86_64 NonfreeKernelModules: nvidia ApportVersion: 2.0.1-0ubuntu6 Architecture: amd64 Date: Fri Apr 27 11:37:05 2012 DuplicateSignature: Setting up keyboard-configuration (1.70ubuntu5) ... Terminated dpkg: error processing keyboard-configuration (--configure): subprocess installed post-installation script returned error exit status 143 ErrorMessage: subprocess installed post-installation script returned error exit status 143 InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta amd64 (20120328) PackageArchitecture: all SourcePackage: console-setup Title: package keyboard-configuration 1.70ubuntu5 failed to install/upgrade: subprocess installed post-installation script returned error exit status 143 UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/console-setup/+bug/989396/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp