package libdebuginfod-common 0.187-3 failed to install/upgrade: installed libdebuginfod-common package post-installation script subprocess returned error exit status 1

Bug #1990638 reported by Makis Livadas
32
This bug affects 7 people
Affects Status Importance Assigned to Milestone
elfutils (Ubuntu)
Fix Released
High
Sergio Durigan Junior

Bug Description

installer crashed while doing an update. Something with updating elf dwarf libraries, asked to modify some configuration with a dialog I replied OK and then the installation crashed.

ProblemType: Package
DistroRelease: Ubuntu 22.10
Package: libdebuginfod-common 0.187-3
ProcVersionSignature: Ubuntu 5.19.0-15.15-generic 5.19.0
Uname: Linux 5.19.0-15-generic x86_64
ApportVersion: 2.23.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: pass
Date: Fri Sep 23 09:13:00 2022
DuplicateSignature:
 package:libdebuginfod-common:0.187-3
 Setting up libdebuginfod-common (0.187-3) ...
 chmod: cannot access '/etc/profile.d/debuginfod.sh': No such file or directory
 dpkg: error processing package libdebuginfod-common (--configure):
  installed libdebuginfod-common package post-installation script subprocess returned error exit status 1
ErrorMessage: installed libdebuginfod-common package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2022-03-11 (195 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Alpha amd64 (20220310)
PackageArchitecture: all
Python3Details: /usr/bin/python3.10, Python 3.10.7, python3-minimal, 3.10.6-1
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.21.9ubuntu1
 apt 2.5.2
SourcePackage: elfutils
Title: package libdebuginfod-common 0.187-3 failed to install/upgrade: installed libdebuginfod-common package post-installation script subprocess returned error exit status 1
UpgradeStatus: Upgraded to kinetic on 2022-09-13 (9 days ago)

Revision history for this message
Makis Livadas (glivadas) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in elfutils (Ubuntu):
status: New → Confirmed
Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :

This appears to be going on under the hood, affected two kinetic installs for me:

Setting up libdebuginfod-common (0.187-3) ...
Not replacing deleted config file /etc/profile.d/debuginfod.sh
chmod: cannot access '/etc/profile.d/debuginfod.sh': No such file or directory

I suspect a broken debian/postinst

Changed in elfutils (Ubuntu):
importance: Undecided → High
Changed in elfutils (Ubuntu):
assignee: nobody → Sergio Durigan Junior (sergiodj)
Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

I've uploaded a fix to Debian, it should be ready to be sync'ed into Ubuntu by tomorrow.

Changed in elfutils (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package elfutils - 0.187-4

---------------
elfutils (0.187-4) unstable; urgency=medium

  * Fix Ubuntu upgrade path for libdebuginfod-common. (LP: #1990638)
    - d/libdebuginfod-common.postinst: Split Ubuntu-specific code into a
      separate function. Clean up ucf/ucfr configuration files when
      upgrading from libdebuginfod-common versions before 0.187-3. Create
      links for the debuginfod shell snippets directly.
    - d/libdebuginfod-common.postrm: Handle Debian and Ubuntu purge
      differently.

 -- Sergio Durigan Junior <email address hidden> Sat, 24 Sep 2022 16:34:05 -0400

Changed in elfutils (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Hadrien Mary (hadim) wrote :

I confirm the fix on Ubuntu 22.10 recently updated.

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote : Re: [Bug 1990638] Re: package libdebuginfod-common 0.187-3 failed to install/upgrade: installed libdebuginfod-common package post-installation script subprocess returned error exit status 1

On Monday, September 26 2022, Hadrien Mary wrote:

> I confirm the fix on Ubuntu 22.10 recently updated.

Thanks, Hadrien.

--
Sergio
GPG key ID: E92F D0B3 6B14 F1F4 D8E0 EB2F 106D A1C8 C3CB BF14

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.