Your problem is related to the fact that removing lirc still leaves its configuration files in place for the case you need them later. In order to remove the package completely together with the config files you need to run 'apt-get purge <packet name>'. The better alternative for you should be just re-running the package reconfiguration. So try to run 'apt-get reconfigure lirc'.
Hope this helps.