lirc fails to install because of a missing /etc/lirc/lirc_options.conf - Ubuntu 20.04
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lirc (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
* Impact
the lirc package fails to install, the service segfault on start
* Test case
install lirc, the installation shouldn't fail, also the service should correctly start
* Regression potential
the changes are only packaging ones to ensure a configuration is available, check new isntalls and upgrades to make sure the configuration is installed and the service works
------------------
Hello,
I have tried to install lirc on a fresh Kubuntu 20.04 Release Candidate installation on a AMD Athlon X2 system. The installation failed, with a half installed lirc package. This is leaving apt-get / apt in a state, that makes it impossible to install other packages or updates anymore, as it first tries to finish the lirc installation. This is leaving the system in a state, where further software changes or the usage of lirc are not possible.
After using Google to find a solution for the problem, I found this bug report about lirc on Debian bugs website:
https:/
The suggested workaround is to creating the file lirc_options.conf and to continue the failed installation (which worked on my system) via:
sudo cp /etc/lirc/
sudo apt-get install lirc
This worked on my installation brought the system back into a state, where further software installations or updates via apt-get / apt work again.
Ubuntu version:
user1@AthlonX2:
Description: Ubuntu 20.04 LTS
Release: 20.04
package information:
user1@AthlonX2:
lirc:
Installiert: 0.10.1-6.1
Installations
Versionstabelle:
*** 0.10.1-6.1 500
500 http://
100 /var/lib/
Terminal output during the failing installation via apt-get install:
user1@AthlonX2:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libftdi1-2 liblirc0
Suggested packages:
lirc-
Recommended packages:
gir1.2-vte
The following NEW packages will be installed:
libftdi1-2 liblirc0 lirc
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/571 kB of archives.
After this operation, 2897 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package libftdi1-2:amd64.
(Reading database ... 360984 files and directories currently installed.)
Preparing to unpack .../libftdi1-
Unpacking libftdi1-2:amd64 (1.4-2build2) ...
Selecting previously unselected package liblirc0:amd64.
Preparing to unpack .../liblirc0_
Unpacking liblirc0:amd64 (0.10.1-6.1) ...
Selecting previously unselected package lirc.
Preparing to unpack .../lirc_
Unpacking lirc (0.10.1-6.1) ...
Setting up liblirc0:amd64 (0.10.1-6.1) ...
Setting up libftdi1-2:amd64 (1.4-2build2) ...
Setting up lirc (0.10.1-6.1) ...
Job for lircd.service failed because a fatal signal was delivered causing the control process to dump core.
See "systemctl status lircd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript lircd, action "start" failed.
* lircd.service - Flexible IR remote input/output application support
Loaded: loaded (/lib/systemd/
Active: failed (Result: core-dump) since Tue 2020-04-21 20:05:34 CEST; 16ms ago
TriggeredBy: * lircd.socket
Docs: man:lircd(8)
http://
Process: 12249 ExecStart=
Main PID: 12249 (code=dumped, signal=SEGV)
Apr 21 20:05:33 Madlen-Zimmer systemd[1]: Starting Flexible IR remote input/output application support...
Apr 21 20:05:33 Madlen-Zimmer lircd[12249]: Warning: cannot open /etc/lirc/
Apr 21 20:05:33 Madlen-Zimmer lircd-0.
Apr 21 20:05:33 Madlen-Zimmer lircd-0.
Apr 21 20:05:33 Madlen-Zimmer lircd-0.
Apr 21 20:05:34 Madlen-Zimmer systemd[1]: lircd.service: Main process exited, code=dumped, status=11/SEGV
Apr 21 20:05:34 Madlen-Zimmer systemd[1]: lircd.service: Failed with result 'core-dump'.
Apr 21 20:05:34 Madlen-Zimmer systemd[1]: Failed to start Flexible IR remote input/output application support.
dpkg: error processing package lirc (--configure):
installed lirc package post-installation script subprocess returned error exit status 1
Processing triggers for systemd (245.4-4ubuntu1) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9) ...
Errors were encountered while processing:
lirc
E: Sub-process /usr/bin/dpkg returned an error code (1)
user1@AthlonX2:
Terminal output during copying the file and inishing the installation:
user1@AthlonX2:
user1@AthlonX2:
Reading package lists... Done
Building dependency tree
Reading state information... Done
lirc is already the newest version (0.10.1-6.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up lirc (0.10.1-6.1) ...
Created symlink /etc/systemd/
Created symlink /etc/systemd/
user1@AthlonX2:
Greetings
Henry
Changed in lirc (Ubuntu): | |
status: | Confirmed → In Progress |
importance: | Undecided → High |
description: | updated |
Changed in lirc (Ubuntu): | |
status: | In Progress → Fix Committed |
Status changed to 'Confirmed' because the bug affects multiple users.