Public bug reported:

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://bugs.debian.org/cgi-bin/bugreport.cgi?bug=932779

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/lirc_options.conf.dist /etc/lirc/lirc_options.conf
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:lsb_release -rd
Description:    Ubuntu 20.04 LTS
Release:        20.04


package information: 
user1@AthlonX2:/etc/lirc$ apt-cache policy lirc
lirc:
  Installiert:           0.10.1-6.1
  Installationskandidat: 0.10.1-6.1
  Versionstabelle:
 *** 0.10.1-6.1 500
        500 http://de.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
        100 /var/lib/dpkg/status


Terminal output during the failing installation via apt-get install:

user1@AthlonX2:/etc/lirc$ LC_ALL=C sudo apt-get install lirc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libftdi1-2 liblirc0
Suggested packages:
  lirc-compat-remotes lirc-drv-irman lirc-doc lirc-x setserial ir-keytable
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-2_1.4-2build2_amd64.deb ...
Unpacking libftdi1-2:amd64 (1.4-2build2) ...
Selecting previously unselected package liblirc0:amd64.
Preparing to unpack .../liblirc0_0.10.1-6.1_amd64.deb ...
Unpacking liblirc0:amd64 (0.10.1-6.1) ...
Selecting previously unselected package lirc.
Preparing to unpack .../lirc_0.10.1-6.1_amd64.deb ...
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/system/lircd.service; disabled; vendor 
preset: enabled)
     Active: failed (Result: core-dump) since Tue 2020-04-21 20:05:34 CEST; 
16ms ago
TriggeredBy: * lircd.socket
       Docs: man:lircd(8)
             http://lirc.org/html/configure.html
    Process: 12249 ExecStart=/usr/sbin/lircd --nodaemon (code=dumped, 
signal=SEGV)
   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/lirc_options.conf
Apr 21 20:05:33 Madlen-Zimmer lircd-0.10.1[12249]: Info: lircd:  Opening log, 
level: Info
Apr 21 20:05:33 Madlen-Zimmer lircd-0.10.1[12249]: Notice: Version: lircd 0.10.1
Apr 21 20:05:33 Madlen-Zimmer lircd-0.10.1[12249]: Notice: System info: Linux 
Madlen-Zimmer 5.4.0-25-generic #29-Ubuntu SMP Fri Apr 17 15:06:57 UTC 2020 
x86_64 x86_64 x86_64 GNU/Linux
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:/etc/lirc$ 


Terminal output during copying the file and inishing the installation:

user1@AthlonX2:/etc/lirc$ sudo cp /etc/lirc/lirc_options.conf.backup1 
/etc/lirc/lirc_options.conf
user1@AthlonX2:/etc/lirc$ sudo apt-get install lirc
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/system/multi-user.target.wants/lircd.service -> 
/lib/systemd/system/lircd.service.
Created symlink /etc/systemd/system/sockets.target.wants/lircd.socket -> 
/lib/systemd/system/lircd.socket.
user1@AthlonX2:/etc/lirc$ 


Greetings
Henry

** Affects: lirc (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: 20.04 amd64 focal lirc

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1874130

Title:
  lirc fails to install because of a missing /etc/lirc/lirc_options.conf
  - Ubuntu 20.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lirc/+bug/1874130/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to