update-initramfs fails: /usr/share/initramfs-tools/hooks/fuse failed with return 1.

Bug #2035385 reported by Aleksey Volkov
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
fuse3 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

The system is not fully updated and gives the following error
Setting up initramfs-tools (0.136ubuntu6.7) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.136ubuntu6.7) ...
update-initramfs: Generating /boot/initrd.img-5.4.0-162-generic

E: /usr/share/initramfs-tools/hooks/fuse failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.4.0-162-generic with 1.
dpkg: error processing package initramfs-tools (--configure):
 installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 initramfs-tools

ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: initramfs-tools 0.136ubuntu6.7
ProcVersionSignature: Ubuntu 5.4.0-162.179-generic 5.4.246
Uname: Linux 5.4.0-162-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.27
Architecture: amd64
CasperMD5CheckResult: skip
Date: Wed Sep 13 19:39:18 2023
ErrorMessage: installed initramfs-tools package post-installation script subprocess returned error exit status 1
PackageArchitecture: all
Python3Details: /usr/bin/python3.8, Python 3.8.10, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: /usr/bin/python3.8, Python 3.8.10, python-is-python3, 3.8.2-4
RelatedPackageVersions:
 dpkg 1.19.7ubuntu3.2
 apt 2.0.9
SourcePackage: initramfs-tools
Title: package initramfs-tools 0.136ubuntu6.7 failed to install/upgrade: installed initramfs-tools package post-installation script subprocess returned error exit status 1
UpgradeStatus: Upgraded to focal on 2023-09-13 (0 days ago)

Revision history for this message
Aleksey Volkov (aleksey-volkove) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Benjamin Drung (bdrung) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. The relevant dpkg terminal log says:

E: /usr/share/initramfs-tools/hooks/fuse failed with return 1.

Sadly there is no error message explaining the exit code 1. Can you edit /usr/share/initramfs-tools/hooks/fuse and add "set -x" (without the quotes) to the script and then run update-initramfs to get more log output?

sudo nano /usr/share/initramfs-tools/hooks/fuse
sudo update-initramfs -u

Please attach the output to the bug report then.

Changed in initramfs-tools (Ubuntu):
status: New → Incomplete
summary: - package initram is not updated
+ update-initramfs fails: /usr/share/initramfs-tools/hooks/fuse failed
+ with return 1.
Revision history for this message
Matthew H McKenzie (f-launchpad-swellhunter-org) wrote :

Possibly related to DEBIAN Bug#1022252.

Revision history for this message
Matthew H McKenzie (f-launchpad-swellhunter-org) wrote :

There is a workaround described at
https://groups.google.com/g/linux.debian.bugs.dist/c/g1OZeZ_wWAU/m/eE0XZBWoBgAJ

copy_exec /sbin/mount.fuse3 /sbin || true

However the upstream maintainer should probably address this.

Affects the AWS Focal AMI, so a lot of people may be impacted but just not know.

Revision history for this message
Benjamin Drung (bdrung) wrote :

There might be multiple reasons for the bash script to exit with code 1.

The package fuse3 ships both files: /usr/share/initramfs-tools/hooks/fuse and /sbin/mount.fuse3. So /sbin/mount.fuse3 should be present.

Revision history for this message
Benjamin Drung (bdrung) wrote :

Re-assigning from initramfs-tools to fuse3.

affects: initramfs-tools (Ubuntu) → fuse3 (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for fuse3 (Ubuntu) because there has been no activity for 60 days.]

Changed in fuse3 (Ubuntu):
status: Incomplete → Expired
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.