Comment 7 for bug 1004239

My LIRC was working with iguanaIR on a brand new install of 12.04. I stupidly let ubuntu update, and it broke LIRC. After remove of LIRC, I get

htpc@htpc:~$ sudo apt-get install lirc
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/615 kB of archives.
After this operation, 2,908 kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously unselected package lirc.
(Reading database ... 178471 files and directories currently installed.)
Unpacking lirc (from .../lirc_0.9.0-0ubuntu1_i386.deb) ...
Processing triggers for doc-base ...
Processing 1 added doc-base file...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up lirc (0.9.0-0ubuntu1) ...
dpkg: error processing lirc (--configure):
 subprocess installed post-installation script returned error exit status 20
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

The workaround wouldn't work for me. I tried

sudo ln -s /lib/modules/3.2.0-26-generic-pae/kernel/drivers/staging/media/lirc /lib/modules/3.2.0-26-generic-pae/kernel/drivers/staging/lirc

I need build dependencies to compile iguanaIR into LIRC, but says LIRC is not fully installed.